Package com.adobe.xfa

Class 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.
    • 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:
        isSchemaAttr in class Attribute
        Returns:
        returns false.
      • getNS

        public java.lang.String getNS()
        Gets this attribute's namespace.
        Overrides:
        getNS in class Attribute
        Returns:
        the namespace.
      • 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 class Attribute
        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
        internSymbols - 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)