Class AttributesHolder

java.lang.Object
com.sun.xml.stream.buffer.AttributesHolder
All Implemented Interfaces:
Attributes

public final class AttributesHolder extends Object implements Attributes
Class for holding attributes. Since it implements Attributes, this class follows the SAX convention of using "" instead of null.
  • Constructor Details

    • AttributesHolder

      public AttributesHolder()
  • Method Details

    • getLength

      public final int getLength()
      Specified by:
      getLength in interface Attributes
    • getPrefix

      public final String getPrefix(int index)
    • getLocalName

      public final String getLocalName(int index)
      Specified by:
      getLocalName in interface Attributes
    • getQName

      public final String getQName(int index)
      Specified by:
      getQName in interface Attributes
    • getType

      public final String getType(int index)
      Specified by:
      getType in interface Attributes
    • getURI

      public final String getURI(int index)
      Specified by:
      getURI in interface Attributes
    • getValue

      public final String getValue(int index)
      Specified by:
      getValue in interface Attributes
    • getIndex

      public final int getIndex(String qName)
      Specified by:
      getIndex in interface Attributes
    • getType

      public final String getType(String qName)
      Specified by:
      getType in interface Attributes
    • getValue

      public final String getValue(String qName)
      Specified by:
      getValue in interface Attributes
    • getIndex

      public final int getIndex(String uri, String localName)
      Specified by:
      getIndex in interface Attributes
    • getType

      public final String getType(String uri, String localName)
      Specified by:
      getType in interface Attributes
    • getValue

      public final String getValue(String uri, String localName)
      Specified by:
      getValue in interface Attributes
    • clear

      public final void clear()
    • addAttributeWithQName

      public final void addAttributeWithQName(String uri, String localName, String qName, String type, String value)
      Add an attribute using a qualified name that contains the prefix and local name.
      Parameters:
      uri - This can be empty but not null, just like everywhere else in SAX.
    • addAttributeWithPrefix

      public final void addAttributeWithPrefix(String prefix, String uri, String localName, String type, String value)
      Add an attribute using a prefix.
      Parameters:
      prefix - This can be empty but not null, just like everywhere else in SAX.
      uri - This can be empty but not null, just like everywhere else in SAX.