Class AttributesImpl

  • All Implemented Interfaces:
    org.xml.sax.Attributes

    @Deprecated
    public class AttributesImpl
    extends org.xml.sax.helpers.AttributesImpl
    Deprecated.
    Use the Apache Cocoon XML utilities instead.
    A helper Class creating SAX Attributes
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CDATA
      Deprecated.
       
      static org.xml.sax.Attributes EMPTY_ATTRIBUTES
      Deprecated.
       
      static java.lang.String ENTITIES
      Deprecated.
       
      static java.lang.String ENTITY
      Deprecated.
       
      static java.lang.String ID
      Deprecated.
       
      static java.lang.String IDREF
      Deprecated.
       
      static java.lang.String IDREFS
      Deprecated.
       
      static java.lang.String NAME
      Deprecated.
       
      static java.lang.String NAMES
      Deprecated.
       
      static java.lang.String NMTOKEN
      Deprecated.
       
      static java.lang.String NMTOKENS
      Deprecated.
       
      static java.lang.String NOTATION
      Deprecated.
       
      static java.lang.String NUMBER
      Deprecated.
       
      static java.lang.String NUMBERS
      Deprecated.
       
      static java.lang.String NUTOKEN
      Deprecated.
       
      static java.lang.String NUTOKENS
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      AttributesImpl()
      Deprecated.
      Constructor
      AttributesImpl​(org.xml.sax.Attributes attr)
      Deprecated.
      Constructor
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void addCDATAAttribute​(java.lang.String localName, java.lang.String value)
      Deprecated.
      Add an attribute of type CDATA with empty Namespace to the end of the list.
      void addCDATAAttribute​(java.lang.String namespace, java.lang.String localName, java.lang.String value)
      Deprecated.
      Add an attribute of type CDATA with the namespace to the end of the list.
      void addCDATAAttribute​(java.lang.String uri, java.lang.String localName, java.lang.String qName, java.lang.String value)
      Deprecated.
      Add an attribute of type CDATA to the end of the list.
      void removeAttribute​(java.lang.String localName)
      Deprecated.
      Remove an attribute
      void removeAttribute​(java.lang.String uri, java.lang.String localName)
      Deprecated.
      Remove an attribute
      static org.xml.sax.Attributes update​(org.xml.sax.Attributes attributes, java.lang.String name, java.lang.String value)
      Deprecated.
      Utility method to update the value of the named attribute.
      • Methods inherited from class org.xml.sax.helpers.AttributesImpl

        addAttribute, clear, getIndex, getIndex, getLength, getLocalName, getQName, getType, getType, getType, getURI, getValue, getValue, getValue, removeAttribute, setAttribute, setAttributes, setLocalName, setQName, setType, setURI, setValue
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AttributesImpl

        public AttributesImpl()
        Deprecated.
        Constructor
      • AttributesImpl

        public AttributesImpl​(org.xml.sax.Attributes attr)
        Deprecated.
        Constructor
        Parameters:
        attr - Attributes
    • Method Detail

      • update

        public static org.xml.sax.Attributes update​(org.xml.sax.Attributes attributes,
                                                    java.lang.String name,
                                                    java.lang.String value)
        Deprecated.
        Utility method to update the value of the named attribute. Returns an updated set of attributes instead of modifying the given attribute set as the given value may be read-only.
        Parameters:
        attributes - original set of attributes
        name - attribute name
        value - new attribute value
        Returns:
        updated set of attributes
      • addCDATAAttribute

        public void addCDATAAttribute​(java.lang.String localName,
                                      java.lang.String value)
        Deprecated.
        Add an attribute of type CDATA with empty Namespace to the end of the list.

        For the sake of speed, this method does no checking to see if the attribute is already in the list: that is the responsibility of the application.

        Parameters:
        localName - The local name.
        value - The attribute value.
      • addCDATAAttribute

        public void addCDATAAttribute​(java.lang.String namespace,
                                      java.lang.String localName,
                                      java.lang.String value)
        Deprecated.
        Add an attribute of type CDATA with the namespace to the end of the list.

        For the sake of speed, this method does no checking to see if the attribute is already in the list: that is the responsibility of the application.

        Parameters:
        namespace - The namespace.
        localName - The local name.
        value - The attribute value.
      • addCDATAAttribute

        public void addCDATAAttribute​(java.lang.String uri,
                                      java.lang.String localName,
                                      java.lang.String qName,
                                      java.lang.String value)
        Deprecated.
        Add an attribute of type CDATA to the end of the list.

        For the sake of speed, this method does no checking to see if the attribute is already in the list: that is the responsibility of the application.

        Parameters:
        uri - The Namespace URI, or the empty string if none is available or Namespace processing is not being performed.
        localName - The local name, or the empty string if Namespace processing is not being performed.
        qName - The qualified (prefixed) name, or the empty string if qualified names are not available.
        value - The attribute value.
      • removeAttribute

        public void removeAttribute​(java.lang.String localName)
        Deprecated.
        Remove an attribute
        Parameters:
        localName - The attribute's local name.
      • removeAttribute

        public void removeAttribute​(java.lang.String uri,
                                    java.lang.String localName)
        Deprecated.
        Remove an attribute
        Parameters:
        uri - The attribute's Namespace URI, or the empty string if none is available.
        localName - The attribute's local name.