Package org.apache.fop.fo.properties
Class EnumProperty
- java.lang.Object
-
- org.apache.fop.fo.properties.Property
-
- org.apache.fop.fo.properties.EnumProperty
-
public final class EnumProperty extends Property
Superclass for properties that wrap an enumeration value
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEnumProperty.MakerInner class for creating EnumProperty instances
-
Field Summary
Fields Modifier and Type Field Description private static PropertyCache<EnumProperty>CACHEcache holding all canonical EnumProperty instancesprivate java.lang.Stringtextprivate intvalue
-
Constructor Summary
Constructors Modifier Constructor Description privateEnumProperty(int explicitValue, java.lang.String text)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)intgetEnum()This method expects to be overridden by subclassesstatic EnumPropertygetInstance(int explicitValue, java.lang.String text)Construct an enumeration property.java.lang.ObjectgetObject()This method expects to be overridden by subclassesinthashCode()-
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 Detail
-
CACHE
private static final PropertyCache<EnumProperty> CACHE
cache holding all canonical EnumProperty instances
-
value
private final int value
-
text
private final java.lang.String text
-
-
Method Detail
-
getInstance
public static EnumProperty getInstance(int explicitValue, java.lang.String text)
Construct an enumeration property.- Parameters:
explicitValue- the valuetext- the text- Returns:
- an enumeration property
-
getEnum
public int getEnum()
Description copied from class:PropertyThis method expects to be overridden by subclasses
-
getObject
public java.lang.Object getObject()
Description copied from class:PropertyThis method expects to be overridden by subclasses
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-