|
fop 1.1 | |||||||||
| 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 NumericgetEnum in class Propertypublic java.lang.String getString()
getString in class Propertypublic java.lang.Object getObject()
getObject in class Propertypublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int getDimension()
getDimension in interface Numericpublic boolean isAbsolute()
true for instances of this type
isAbsolute in interface Numeric
public double getNumericValue(PercentBaseContext context)
throws PropertyException
getNumericValue in interface Numericcontext - The context for the length calculation (for percentage based lengths)
PropertyException - if a property exception occurspublic int getValue(PercentBaseContext context)
getValue in interface Numericcontext - the context for the length calculation (for percentage based lengths)
public int getValue()
getValue in interface Numericpublic double getNumericValue()
getNumericValue in interface Numericpublic Numeric getNumeric()
getNumeric in class Property
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||