git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194123
13f79535-47bb-0310-9956-
ffa450edef68
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)
*/
public Property getLength() {
return this.length;
}
+
+ public boolean isDiscard() {
+ return this.conditionality.getEnum() == Constants.DISCARD ;
+ }
+
+ public int mvalue() {
+ return this.length.getLength().mvalue();
+ }
}