public final class AttributesImplSerializer extends AttributesImpl
Attributes| Constructor and Description |
|---|
AttributesImplSerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(java.lang.String uri,
java.lang.String local,
java.lang.String qname,
java.lang.String type,
java.lang.String val)
This method adds the attribute, but also records its qName/index pair in
the hashtable for fast lookup by getIndex(qName).
|
void |
clear()
This method clears the accumulated attributes.
|
int |
getIndex(java.lang.String qname)
This method gets the index of an attribute given its qName.
|
int |
getIndex(java.lang.String uri,
java.lang.String localName)
This method gets the index of an attribute given its uri and locanName.
|
void |
setAttributes(Attributes atts)
This method sets the attributes, previous attributes are cleared,
it also keeps the hashtable up to date for quick lookup via
getIndex(qName).
|
getLength, getLocalName, getQName, getType, getType, getType, getURI, getValue, getValue, getValue, removeAttribute, setAttribute, setLocalName, setQName, setType, setURI, setValuepublic final int getIndex(java.lang.String qname)
getIndex in interface AttributesgetIndex in class AttributesImplqname - the qualified name of the attribute, e.g. "prefix1:locName1"Attributes.getIndex(String)public final void addAttribute(java.lang.String uri,
java.lang.String local,
java.lang.String qname,
java.lang.String type,
java.lang.String val)
addAttribute in class AttributesImpluri - the URI of the attributelocal - the local name of the attributeqname - the qualified name of the attributetype - the type of the attributeval - the value of the attributeAttributesImpl.addAttribute(String, String, String, String, String),
getIndex(String)public final void clear()
clear in class AttributesImplAttributesImpl.clear()public final void setAttributes(Attributes atts)
setAttributes in class AttributesImplatts - the attributes to copy into these attributes.AttributesImpl.setAttributes(Attributes),
getIndex(String)public final int getIndex(java.lang.String uri,
java.lang.String localName)
getIndex in interface AttributesgetIndex in class AttributesImpluri - the URI of the attribute name.localName - the local namer (after the ':' ) of the attribute name.Attributes.getIndex(String)Copyright © 2014 Apache XML Project. All Rights Reserved.