Package com.day.cq.rewriter.pipeline
Class AttributesImpl
- java.lang.Object
-
- org.xml.sax.helpers.AttributesImpl
-
- com.day.cq.rewriter.pipeline.AttributesImpl
-
- All Implemented Interfaces:
Attributes
@Deprecated public class AttributesImpl extends AttributesImpl
Deprecated.Use the Apache Cocoon XML utilities instead.A helper Class creating SAX Attributes
-
-
Field Summary
Fields Modifier and Type Field Description static String
CDATA
Deprecated.static Attributes
EMPTY_ATTRIBUTES
Deprecated.static String
ENTITIES
Deprecated.static String
ENTITY
Deprecated.static String
ID
Deprecated.static String
IDREF
Deprecated.static String
IDREFS
Deprecated.static String
NAME
Deprecated.static String
NAMES
Deprecated.static String
NMTOKEN
Deprecated.static String
NMTOKENS
Deprecated.static String
NOTATION
Deprecated.static String
NUMBER
Deprecated.static String
NUMBERS
Deprecated.static String
NUTOKEN
Deprecated.static String
NUTOKENS
Deprecated.
-
Constructor Summary
Constructors Constructor Description AttributesImpl()
Deprecated.ConstructorAttributesImpl(Attributes attr)
Deprecated.Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addCDATAAttribute(String localName, String value)
Deprecated.Add an attribute of type CDATA with empty Namespace to the end of the list.void
addCDATAAttribute(String namespace, String localName, String value)
Deprecated.Add an attribute of type CDATA with the namespace to the end of the list.void
addCDATAAttribute(String uri, String localName, String qName, String value)
Deprecated.Add an attribute of type CDATA to the end of the list.void
removeAttribute(String localName)
Deprecated.Remove an attributevoid
removeAttribute(String uri, String localName)
Deprecated.Remove an attributestatic Attributes
update(Attributes attributes, String name, 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
-
-
-
-
Field Detail
-
EMPTY_ATTRIBUTES
public static final Attributes EMPTY_ATTRIBUTES
Deprecated.
-
CDATA
public static final String CDATA
Deprecated.- See Also:
- Constant Field Values
-
ENTITY
public static final String ENTITY
Deprecated.- See Also:
- Constant Field Values
-
ENTITIES
public static final String ENTITIES
Deprecated.- See Also:
- Constant Field Values
-
ID
public static final String ID
Deprecated.- See Also:
- Constant Field Values
-
IDREF
public static final String IDREF
Deprecated.- See Also:
- Constant Field Values
-
IDREFS
public static final String IDREFS
Deprecated.- See Also:
- Constant Field Values
-
NAME
public static final String NAME
Deprecated.- See Also:
- Constant Field Values
-
NAMES
public static final String NAMES
Deprecated.- See Also:
- Constant Field Values
-
NMTOKEN
public static final String NMTOKEN
Deprecated.- See Also:
- Constant Field Values
-
NMTOKENS
public static final String NMTOKENS
Deprecated.- See Also:
- Constant Field Values
-
NOTATION
public static final String NOTATION
Deprecated.- See Also:
- Constant Field Values
-
NUMBER
public static final String NUMBER
Deprecated.- See Also:
- Constant Field Values
-
NUMBERS
public static final String NUMBERS
Deprecated.- See Also:
- Constant Field Values
-
NUTOKEN
public static final String NUTOKEN
Deprecated.- See Also:
- Constant Field Values
-
NUTOKENS
public static final String NUTOKENS
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AttributesImpl
public AttributesImpl()
Deprecated.Constructor
-
AttributesImpl
public AttributesImpl(Attributes attr)
Deprecated.Constructor- Parameters:
attr
-Attributes
-
-
Method Detail
-
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 attributesname
- attribute namevalue
- new attribute value- Returns:
- updated set of attributes
-
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- Parameters:
localName
- The attribute's local name.
-
-