Package org.apache.fop.traits
Class TraitEnum
java.lang.Object
org.apache.fop.traits.TraitEnum
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BorderStyle
,Direction
,RuleStyle
,Visibility
,WritingMode
Base class for enumeration classes representing traits.
- See Also:
-
Constructor Details
-
TraitEnum
Constructor to add a new named item.- Parameters:
name
- Name of the item.enumValue
- theConstants
.EN_* value
-
-
Method Details
-
getName
Returns the name of the enumeration.- Returns:
- the name of the enumeration
-
getEnumValue
public int getEnumValue()Returns the enumeration value (one ofConstants
.EN_*).- Returns:
- the enumeration value
-