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 classInner class for creating EnumProperty instances -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final PropertyCache<EnumProperty> cache holding all canonical EnumProperty instancesprivate final Stringprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetEnum()This method expects to be overridden by subclassesstatic EnumPropertygetInstance(int explicitValue, String text) Construct an enumeration property.This method expects to be overridden by subclassesinthashCode()Methods inherited from class 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
-
getObject
-
equals
-
hashCode
-