Class 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 Detail

      • AttributesHolder

        public AttributesHolder()
    • Method Detail

      • getPrefix

        public final String getPrefix​(int index)
      • 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.