Class AttributesImpl

java.lang.Object
org.xml.sax.helpers.AttributesImpl
org.apache.cocoon.xml.sax.AttributesImpl
All Implemented Interfaces:
Attributes
Direct Known Subclasses:
ImmutableAttributesImpl

@Deprecated(since="2022-01-27") public class AttributesImpl extends AttributesImpl
Deprecated.
This API is deprecated, migrate code to the XML APIs provided by the JDK.
A helper Class creating SAX Attributes
  • Constructor Details

    • AttributesImpl

      public AttributesImpl()
      Deprecated.
      Constructor
    • AttributesImpl

      public AttributesImpl(Attributes attr)
      Deprecated.
      Constructor
  • Method Details

    • addCDATAAttribute

      public void addCDATAAttribute(String localName, 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(String namespace, String localName, 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(String uri, String localName, String qName, 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(String localName)
      Deprecated.
      Remove an attribute
    • removeAttribute

      public void removeAttribute(String uri, String localName)
      Deprecated.
      Remove an attribute
    • update

      public static Attributes update(Attributes attributes, String name, 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
    • updateCDATAAttribute

      public void updateCDATAAttribute(String localName, String value)
      Deprecated.
      Update or add an attribute of type CDATA with empty Namespace.
      Parameters:
      localName - The local name.
      value - The attribute value.