Package com.adobe.xfa
Class GenericAttribute
- java.lang.Object
-
- com.adobe.xfa.Attribute
-
- com.adobe.xfa.GenericAttribute
-
public final class GenericAttribute extends Attribute
A class to represents plain XML attributes, i.e., attributes that do not fit into an XFA schema.Generic attributes are more expensive than XFA attributes, because they must include all possible properties.
-
-
Constructor Summary
Constructors Constructor Description GenericAttribute(String NS, String localName, String qName, String value)
Instantiates an attribute with the given attribute parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getNS()
Gets this attribute's namespace.boolean
isSchemaAttr()
Determines if this attribute is a schema attribute.Attribute
newAttribute(String value)
Create a new attribute, given a new valueAttribute
newAttribute(String NS, String localName, String qName, String value)
Create a new attribute, given all attribute parametersAttribute
newAttribute(String NS, String localName, String qName, 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, isXSINilAttr, normalize, toString
-
-
-
-
Constructor Detail
-
GenericAttribute
public GenericAttribute(String NS, String localName, String qName, String value)
Instantiates an attribute with the given attribute parameters.- Parameters:
NS
- the namespace for this attribute.localName
- the local name for this attribute.qName
- the qualified name for this attribute .value
- the string to use to create the new attribute.
-
-
Method Detail
-
isSchemaAttr
public boolean isSchemaAttr()
Determines if this attribute is a schema attribute.- Overrides:
isSchemaAttr
in classAttribute
- Returns:
- returns false.
-
getNS
public String getNS()
Gets this attribute's namespace.
-
newAttribute
public Attribute newAttribute(String NS, String localName, String qName, 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)
-
newAttribute
public Attribute newAttribute(String NS, String localName, String qName, 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(java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean)
-
newAttribute
public Attribute newAttribute(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(java.lang.String)
-
-