Package com.adobe.xfa
Class GenericAttribute
java.lang.Object
com.adobe.xfa.Attribute
com.adobe.xfa.GenericAttribute
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
ConstructorsConstructorDescriptionGenericAttribute(String NS, String localName, String qName, String value) Instantiates an attribute with the given attribute parameters. -
Method Summary
Modifier and TypeMethodDescriptiongetNS()Gets this attribute's namespace.booleanDetermines if this attribute is a schema attribute.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, isXSINilAttr, normalize, toString
-
Constructor Details
-
GenericAttribute
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 Details
-
isSchemaAttr
public boolean isSchemaAttr()Determines if this attribute is a schema attribute.- Overrides:
isSchemaAttrin classAttribute- Returns:
- returns false.
-
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:
-
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:
-
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:
-