Package com.adobe.xfa
Class EnumValue
java.lang.Object
com.adobe.xfa.Attribute
com.adobe.xfa.EnumValue
This class represents an XFA attribute whose value is one of an enumerated set.
The contents of this class are an attribute name and enumerated value (EnumAttr) combination.
This class ensures that there is only one canonical representation of each attribute/value combination.
-
Method Summary
Modifier and TypeMethodDescriptiongetAttr()Get the attribute value of the stored enumintget the tag that corresponds to this enum value.static EnumValuegetEnum(int eAttrTag, int value) Get a canonical instance of an attribute, given an attribute tag and an enumerated value.static EnumValueget a canonical instance of an attribute, given an attribute tag and value.intgetInt()Get the integer value of the stored enumgetType()Get the type of the stored enumnewAttribute(String value) Create a new attribute, given a new valuenewAttribute(String NS, String localName, String qName, String value) Create a new attribute, given all attribute parametersnewAttribute(String NS, String localName, String qName, String value, boolean internSymbols) Create a new attribute, given all attribute parametersMethods inherited from class com.adobe.xfa.Attribute
getAttrValue, getLocalName, getName, getNS, getPrefix, getQName, isEmpty, isNameSpaceAttr, isSchemaAttr, isXSINilAttr, normalize, toString
-
Method Details
-
getAttr
Get the attribute value of the stored enum- Returns:
- the integer enumerated value
-
getInt
public int getInt()Get the integer value of the stored enum- Returns:
- the integer enumerated value
-
getType
Get the type of the stored enum- Returns:
- the enumerated type.
-
newAttribute
Description copied from class:AttributeCreate a new attribute, given a new value- Specified by:
newAttributein classAttribute- Parameters:
value- the string to use to create the new attribute- Returns:
- a new attribute
-
newAttribute
Description copied from class:AttributeCreate a new attribute, given all attribute parameters- Specified by:
newAttributein classAttribute- Parameters:
NS- the namespace for this attributelocalName- the local name for this attributeqName- the qualified name for this attributevalue- the string to use to create the new attribute- Returns:
- a new attribute
-
newAttribute
public Attribute newAttribute(String NS, String localName, String qName, String value, boolean internSymbols) Description copied from class:AttributeCreate a new attribute, given all attribute parameters- Specified by:
newAttributein classAttribute- Parameters:
NS- the namespace for this attributelocalName- the local name for this attributeqName- the qualified name for this attributevalue- the string to use to create the new attributeinternSymbols- indicates whether the symbols in other parameters need to be interned.- Returns:
- a new attribute
-
getAttrTag
public int getAttrTag()get the tag that corresponds to this enum value.- Returns:
- the attribute tag.
-
getEnum
get a canonical instance of an attribute, given an attribute tag and value.- Parameters:
eAttrTag- - the attribute tagvalue- - the enumerated value- Returns:
- the canonical attribute
-
getEnum
Get a canonical instance of an attribute, given an attribute tag and an enumerated value.- Parameters:
eAttrTag- - the attribute tagvalue- - the enumerated value from EnumAttr- Returns:
- the canonical attribute
-