| Modifier and Type | Method and Description |
|---|---|
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.
|
getCharacter, getColor, getCondLength, getKeep, getLength, getLengthPair, getLengthRange, getList, getNCname, getNumber, getSpace, getSpecifiedValue, isAuto, setSpecifiedValue, toStringpublic static EnumNumber getInstance(Property enumProperty)
enumProperty - the base EnumPropertypublic int getEnum()
public java.lang.String getString()
public java.lang.Object getObject()
public 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 typeisAbsolute in interface Numericpublic double getNumericValue(PercentBaseContext context)
getNumericValue in interface Numericcontext - The context for the length calculation (for percentage based lengths)public int getValue(PercentBaseContext context)
public int getValue()
public double getNumericValue()
getNumericValue in interface Numericpublic Numeric getNumeric()
getNumeric in class PropertyCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.