You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by kl...@apache.org on 2001/03/04 22:27:10 UTC
cvs commit: xml-fop/src/org/apache/fop/datatypes CondLength.java
klease 01/03/04 13:27:10
Modified: src/org/apache/fop/datatypes CondLength.java
Log:
Add some utility accessors
Revision Changes Path
1.4 +11 -1 xml-fop/src/org/apache/fop/datatypes/CondLength.java
Index: CondLength.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/datatypes/CondLength.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- CondLength.java 2001/01/02 21:32:19 1.3
+++ CondLength.java 2001/03/04 21:27:10 1.4
@@ -1,4 +1,4 @@
-/*-- $Id: CondLength.java,v 1.3 2001/01/02 21:32:19 klease Exp $ --
+/*-- $Id: CondLength.java,v 1.4 2001/03/04 21:27:10 klease Exp $ --
============================================================================
The Apache Software License, Version 1.1
@@ -51,6 +51,8 @@
package org.apache.fop.datatypes;
import org.apache.fop.fo.Property;
+import org.apache.fop.fo.properties.Constants;
+
/**
* a space quantity in XSL (space-before, space-after)
*/
@@ -82,5 +84,13 @@
public Property getLength() {
return this.length;
+ }
+
+ public boolean isDiscard() {
+ return this.conditionality.getEnum() == Constants.DISCARD ;
+ }
+
+ public int mvalue() {
+ return this.length.getLength().mvalue();
}
}