Package com.adobe.xfa
Class StringAttr
- java.lang.Object
-
- com.adobe.xfa.Attribute
-
- com.adobe.xfa.StringAttr
-
public final class StringAttr extends Attribute
An immutable class to represent any attribute defined by a simple string.
-
-
Constructor Summary
Constructors Constructor Description StringAttr(java.lang.String qName, java.lang.String value)
Instantiates an attribute with the given value.StringAttr(java.lang.String NS, java.lang.String localName, java.lang.String qName, java.lang.String value)
Instantiates an attribute with the given attribute parameters.StringAttr(java.lang.String NS, java.lang.String localName, java.lang.String qName, java.lang.String value, boolean internSymbols)
Create a new StringAttr, given all attribute parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getNS()
Gets this attribute's namespace.Attribute
newAttribute(java.lang.String value)
Create a new attribute, given a new valueAttribute
newAttribute(java.lang.String NS, java.lang.String localName, java.lang.String qName, java.lang.String value)
Create a new attribute, given all attribute parametersAttribute
newAttribute(java.lang.String NS, java.lang.String localName, java.lang.String qName, java.lang.String value, boolean internSymbols)
Create a new attribute, given all attribute parameters-
Methods inherited from class com.adobe.xfa.Attribute
getAttrValue, getLocalName, getName, getPrefix, getQName, isEmpty, isNameSpaceAttr, isSchemaAttr, isXSINilAttr, normalize, toString
-
-
-
-
Constructor Detail
-
StringAttr
public StringAttr(java.lang.String NS, java.lang.String localName, java.lang.String qName, java.lang.String value)
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
public StringAttr(java.lang.String qName, java.lang.String value)
Instantiates an attribute with the given value.- Parameters:
qName
- the attribute name.value
- the attribute value.
-
StringAttr
public StringAttr(java.lang.String NS, java.lang.String localName, java.lang.String qName, java.lang.String value, boolean internSymbols)
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 Detail
-
newAttribute
public Attribute newAttribute(java.lang.String value)
Description copied from class:Attribute
Create a new attribute, given a new value- Specified by:
newAttribute
in classAttribute
- Parameters:
value
- the string to use to create the new attribute- Returns:
- a new attribute
- See Also:
Attribute.newAttribute(String)
-
newAttribute
public Attribute newAttribute(java.lang.String NS, java.lang.String localName, java.lang.String qName, java.lang.String value, boolean internSymbols)
Description copied from class:Attribute
Create a new attribute, given all attribute parameters- Specified by:
newAttribute
in 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:
Attribute.newAttribute(String, String, String, String, boolean)
-
getNS
public java.lang.String getNS()
Gets this attribute's namespace.
-
newAttribute
public Attribute newAttribute(java.lang.String NS, java.lang.String localName, java.lang.String qName, java.lang.String value)
Description copied from class:Attribute
Create a new attribute, given all attribute parameters- Specified by:
newAttribute
in 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:
Attribute.newAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
-
-