public class AttributesImpl
extends org.xml.sax.helpers.AttributesImpl
Constructor and Description |
---|
AttributesImpl()
Constructor
|
AttributesImpl(org.xml.sax.Attributes attr)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addCDATAAttribute(java.lang.String localName,
java.lang.String value)
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)
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)
Add an attribute of type CDATA to the end of the list.
|
void |
removeAttribute(java.lang.String localName)
Remove an attribute
|
void |
removeAttribute(java.lang.String uri,
java.lang.String localName)
Remove an attribute
|
static org.xml.sax.Attributes |
update(org.xml.sax.Attributes attributes,
java.lang.String name,
java.lang.String value)
Utility method to update the value of the named attribute.
|
void |
updateCDATAAttribute(java.lang.String localName,
java.lang.String value)
Update or add an attribute of type CDATA with empty Namespace.
|
addAttribute, clear, getIndex, getIndex, getLength, getLocalName, getQName, getType, getType, getType, getURI, getValue, getValue, getValue, removeAttribute, setAttribute, setAttributes, setLocalName, setQName, setType, setURI, setValue
public AttributesImpl()
public AttributesImpl(org.xml.sax.Attributes attr)
public void addCDATAAttribute(java.lang.String localName, java.lang.String value)
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.
localName
- The local name.value
- The attribute value.public void addCDATAAttribute(java.lang.String namespace, java.lang.String localName, java.lang.String value)
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.
namespace
- The namespace.localName
- The local name.value
- The attribute value.public void addCDATAAttribute(java.lang.String uri, java.lang.String localName, java.lang.String qName, java.lang.String value)
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.
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.public void removeAttribute(java.lang.String localName)
public void removeAttribute(java.lang.String uri, java.lang.String localName)
public static org.xml.sax.Attributes update(org.xml.sax.Attributes attributes, java.lang.String name, java.lang.String value)
attributes
- original set of attributesname
- attribute namevalue
- new attribute valuepublic void updateCDATAAttribute(java.lang.String localName, java.lang.String value)
localName
- The local name.value
- The attribute value.Copyright © 2010 - 2020 Adobe. All Rights Reserved