Package org.apache.fop.fo.properties
Class EnumProperty
java.lang.Object
org.apache.fop.fo.properties.Property
org.apache.fop.fo.properties.EnumProperty
Superclass for properties that wrap an enumeration value
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Inner class for creating EnumProperty instances -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final PropertyCache
<EnumProperty> cache holding all canonical EnumProperty instancesprivate final String
private final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getEnum()
This method expects to be overridden by subclassesstatic EnumProperty
getInstance
(int explicitValue, String text) Construct an enumeration property.This method expects to be overridden by subclassesint
hashCode()
Methods inherited from class org.apache.fop.fo.properties.Property
getCharacter, getColor, getCondLength, getKeep, getLength, getLengthPair, getLengthRange, getList, getNCname, getNumber, getNumeric, getSpace, getSpecifiedValue, getString, isAuto, setSpecifiedValue, toString
-
Field Details
-
CACHE
cache holding all canonical EnumProperty instances -
value
private final int value -
text
-
-
Constructor Details
-
EnumProperty
- Parameters:
explicitValue
- enumerated value to be set for this propertytext
- the string value of the enum.
-
-
Method Details
-
getInstance
Construct an enumeration property.- Parameters:
explicitValue
- the valuetext
- the text- Returns:
- an enumeration property
-
getEnum
public int getEnum()Description copied from class:Property
This method expects to be overridden by subclasses -
getObject
Description copied from class:Property
This method expects to be overridden by subclasses -
equals
-
hashCode
public int hashCode()
-