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, toString
public 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.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 typeisAbsolute
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)
public int getValue()
public double getNumericValue()
getNumericValue
in interface Numeric
public Numeric getNumeric()
getNumeric
in class Property
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.