public final class StringAttr extends Attribute
| Constructor and Description |
|---|
StringAttr(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
|
| Modifier and Type | Method and Description |
|---|---|
String |
getNS()
Gets this attribute's namespace.
|
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, getPrefix, getQName, isEmpty, isNameSpaceAttr, isSchemaAttr, isXSINilAttr, normalize, toStringpublic StringAttr(String NS, String localName, String qName, String value)
NS - the namespace.localName - the local name.qName - the qualified name.value - the attribute value.public StringAttr(String qName, String value)
qName - the attribute name.value - the attribute value.public StringAttr(String NS, String localName, String qName, String value, boolean internSymbols)
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.public Attribute newAttribute(String value)
AttributenewAttribute in class Attributevalue - the string to use to create the new attributeAttribute.newAttribute(String)public 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.Attribute.newAttribute(String, String, String, String, boolean)public String getNS()
public 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 attributeAttribute.newAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String)Copyright © 2010 - 2020 Adobe. All Rights Reserved