Package com.adobe.xfa

Class 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
    • 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 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.
    • Method Detail

      • 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(String, String, String, String, boolean)
      • getNS

        public java.lang.String getNS()
        Gets this attribute's namespace.
        Overrides:
        getNS in class Attribute
        Returns:
        the namespace.