public final class EnumValue extends Attribute
| Modifier and Type | Method and Description |
|---|---|
EnumAttr |
getAttr()
Get the attribute value of the stored enum
|
int |
getAttrTag()
get the tag that corresponds to this enum value.
|
static EnumValue |
getEnum(int eAttrTag,
EnumAttr value)
get a canonical instance of an attribute, given an attribute tag and value.
|
static EnumValue |
getEnum(int eAttrTag,
int value)
Get a canonical instance of an attribute, given an attribute tag and an enumerated value.
|
int |
getInt()
Get the integer value of the stored enum
|
EnumType |
getType()
Get the type of the stored enum
|
Attribute |
newAttribute(String value)
Create a new attribute, given a new value
|
Attribute |
newAttribute(String NS,
String localName,
String qName,
String value)
Create a new attribute, given all attribute parameters
|
Attribute |
newAttribute(String NS,
String localName,
String qName,
String value,
boolean internSymbols)
Create a new attribute, given all attribute parameters
|
getAttrValue, getLocalName, getName, getNS, getPrefix, getQName, isEmpty, isNameSpaceAttr, isSchemaAttr, isXSINilAttr, normalize, toStringpublic EnumAttr getAttr()
public int getInt()
public EnumType getType()
public Attribute newAttribute(String value)
AttributenewAttribute in class Attributevalue - the string to use to create the new attributepublic Attribute newAttribute(String NS, String localName, String qName, String value)
AttributenewAttribute in class AttributeNS - 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 attributepublic Attribute newAttribute(String NS, String localName, String qName, String value, boolean internSymbols)
AttributenewAttribute in class AttributeNS - 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.public int getAttrTag()
public static EnumValue getEnum(int eAttrTag, EnumAttr value)
eAttrTag - - the attribute tagvalue - - the enumerated valuepublic static EnumValue getEnum(int eAttrTag, int value)
eAttrTag - - the attribute tagvalue - - the enumerated value from EnumAttrCopyright © 2010 - 2020 Adobe. All Rights Reserved