|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fo.properties.Property
org.apache.fop.fo.properties.EnumNumber
public final class EnumNumber
A number quantity in XSL which is specified as an enum, such as "no-limit".
Field Summary |
---|
Fields inherited from class org.apache.fop.fo.properties.Property |
---|
log |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getDimension()
Return the dimension of this numeric. |
int |
getEnum()
This method expects to be overridden by subclasses |
static EnumNumber |
getInstance(Property enumProperty)
Returns the canonical EnumNumber instance corresponding to the given Property |
Numeric |
getNumeric()
This method expects to be overridden by subclasses |
double |
getNumericValue()
Return the value of this Numeric |
double |
getNumericValue(PercentBaseContext context)
Return the value of this Numeric |
java.lang.Object |
getObject()
This method expects to be overridden by subclasses |
java.lang.String |
getString()
This method expects to be overridden by subclasses. |
int |
getValue()
Returns the value of this numeric as an int. |
int |
getValue(PercentBaseContext context)
Returns the value of this numeric as an int. |
int |
hashCode()
|
boolean |
isAbsolute()
Return true if the numeric is an absolute value. |
Methods inherited from class org.apache.fop.fo.properties.Property |
---|
getCharacter, getColor, getCondLength, getKeep, getLength, getLengthPair, getLengthRange, getList, getNCname, getNumber, getSpace, getSpecifiedValue, isAuto, setSpecifiedValue, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static EnumNumber getInstance(Property enumProperty)
enumProperty
- the base EnumProperty
public int getEnum()
getEnum
in interface Numeric
getEnum
in class Property
public java.lang.String getString()
getString
in class Property
public java.lang.Object getObject()
getObject
in class Property
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int getDimension()
getDimension
in interface Numeric
public boolean isAbsolute()
true
for instances of this type
isAbsolute
in interface Numeric
public double getNumericValue(PercentBaseContext context) throws PropertyException
getNumericValue
in interface Numeric
context
- The context for the length calculation (for percentage based lengths)
PropertyException
public int getValue(PercentBaseContext context)
getValue
in interface Numeric
context
- the context for the length calculation (for percentage based lengths)
public int getValue()
getValue
in interface Numeric
public double getNumericValue()
getNumericValue
in interface Numeric
public Numeric getNumeric()
getNumeric
in class Property
|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |