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(java.lang.String NS, java.lang.String localName, java.lang.String qName, java.lang.String value)Instantiates an attribute with the given attribute parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetNS()Gets this attribute's namespace.booleanisSchemaAttr()Determines if this attribute is a schema attribute.AttributenewAttribute(java.lang.String value)Create a new attribute, given a new valueAttributenewAttribute(java.lang.String NS, java.lang.String localName, java.lang.String qName, java.lang.String value)Create a new attribute, given all attribute parametersAttributenewAttribute(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, isXSINilAttr, normalize, toString
-
-
-
-
Constructor Detail
-
GenericAttribute
public GenericAttribute(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 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:
isSchemaAttrin classAttribute- Returns:
- returns false.
-
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: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:
Attribute.newAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.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: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:
Attribute.newAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean)
-
newAttribute
public Attribute newAttribute(java.lang.String value)
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:
Attribute.newAttribute(java.lang.String)
-
-