Package com.adobe.xfa
Class StringAttr
java.lang.Object
com.adobe.xfa.Attribute
com.adobe.xfa.StringAttr
An immutable class to represent any attribute defined by a simple string.
-
Constructor Summary
ConstructorsConstructorDescriptionStringAttr(String qName, String value) Instantiates an attribute with the given value.StringAttr(String NS, String localName, String qName, String value) Instantiates an attribute with the given attribute parameters.StringAttr(String NS, String localName, String qName, String value, boolean internSymbols) Create a new StringAttr, given all attribute parameters -
Method Summary
Modifier and TypeMethodDescriptiongetNS()Gets this attribute's namespace.newAttribute(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, getPrefix, getQName, isEmpty, isNameSpaceAttr, isSchemaAttr, isXSINilAttr, normalize, toString
-
Constructor Details
-
StringAttr
Instantiates an attribute with the given attribute parameters.- Parameters:
NS- the namespace.localName- the local name.qName- the qualified name.value- the attribute value.
-
StringAttr
Instantiates an attribute with the given value.- Parameters:
qName- the attribute name.value- the attribute value.
-
StringAttr
Create a new StringAttr, given all attribute parameters- 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.
-
-
Method Details
-
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
- See Also:
-
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
- See Also:
-
getNS
Gets this attribute's namespace. -
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
- See Also:
-