org.apache.fop.fo.properties

Class EnumNumber

Implemented Interfaces:
Numeric

public class EnumNumber
extends NumberProperty

A number quantity in XSL which is specified as an enum, such as "no-limit".

Nested Class Summary

Nested classes/interfaces inherited from class org.apache.fop.fo.properties.NumberProperty

NumberProperty.Maker

Field Summary

Fields inherited from class org.apache.fop.fo.properties.Property

log

Method Summary

boolean
equals(Object obj)
int
getEnum()
Return the enum value that is stored in this numeric.
static EnumNumber
getInstance(Property enumProperty)
Returns the canonical EnumNumber instance corresponding to the given Property
double
getNumericValue()
Returns the value as numeric.
Object
getObject()
String
getString()
int
getValue()
Returns the length in 1/1000ths of a point (millipoints)
int
hashCode()

Methods inherited from class org.apache.fop.fo.properties.NumberProperty

equals, getColor, getDimension, getInstance, getInstance, getInstance, getLength, getNumber, getNumeric, getNumericValue, getNumericValue, getObject, getValue, getValue, hashCode, isAbsolute

Methods inherited from class org.apache.fop.fo.properties.Property

getCharacter, getColor, getCondLength, getEnum, getKeep, getLength, getLengthPair, getLengthRange, getList, getNCname, getNumber, getNumeric, getObject, getSpace, getSpecifiedValue, getString, isAuto, setSpecifiedValue, toString

Method Details

equals

public boolean equals(Object obj)
Overrides:
equals in interface NumberProperty
See Also:
java.lang.Object.equals(Object)

getEnum

public int getEnum()
Return the enum value that is stored in this numeric.
Specified by:
getEnum in interface Numeric
Overrides:
getEnum in interface Property

getInstance

public static EnumNumber getInstance(Property enumProperty)
Returns the canonical EnumNumber instance corresponding to the given Property
Parameters:
enumProperty - the base EnumProperty
Returns:
the canonical instance

getNumericValue

public double getNumericValue()
Returns the value as numeric.
Specified by:
getNumericValue in interface Numeric
Overrides:
getNumericValue in interface NumberProperty
Returns:
the length in millipoints

getObject

public Object getObject()
Overrides:
getObject in interface NumberProperty

getString

public String getString()
Overrides:
getString in interface Property

getValue

public int getValue()
Returns the length in 1/1000ths of a point (millipoints)
Specified by:
getValue in interface Numeric
Overrides:
getValue in interface NumberProperty
Returns:
the length in millipoints

hashCode

public int hashCode()
Overrides:
hashCode in interface NumberProperty
See Also:
java.lang.Object.hashCode()

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.