| java.lang.Object org.xml.sax.helpers.AttributesImpl org.apache.xml.serializer.AttributesImplSerializer
AttributesImplSerializer | final public class AttributesImplSerializer extends AttributesImpl (Code) | | This class extends org.xml.sax.helpers.AttributesImpl which implements org.
xml.sax.Attributes. But for optimization this class adds a Hashtable for
faster lookup of an index by qName, which is commonly done in the stream
serializer.
See Also: org.xml.sax.Attributes |
Method Summary | |
final public void | addAttribute(String uri, String local, String qname, String type, String val) This method adds the attribute, but also records its qName/index pair in
the hashtable for fast lookup by getIndex(qName). | final public void | clear() This method clears the accumulated attributes. | final public int | getIndex(String qname) This method gets the index of an attribute given its qName.
Parameters: qname - the qualified name of the attribute, e.g. | final public int | getIndex(String uri, String localName) This method gets the index of an attribute given its uri and locanName.
Parameters: uri - the URI of the attribute name. Parameters: localName - the local namer (after the ':' ) of the attribute name. | final public 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). |
getIndex | final public int getIndex(String qname)(Code) | | This method gets the index of an attribute given its qName.
Parameters: qname - the qualified name of the attribute, e.g. "prefix1:locName1" the integer index of the attribute. See Also: org.xml.sax.Attributes.getIndex(String) |
getIndex | final public int getIndex(String uri, String localName)(Code) | | This method gets the index of an attribute given its uri and locanName.
Parameters: uri - the URI of the attribute name. Parameters: localName - the local namer (after the ':' ) of the attribute name. the integer index of the attribute. See Also: org.xml.sax.Attributes.getIndex(String) |
Methods inherited from org.xml.sax.helpers.AttributesImpl | public void addAttribute(String uri, String localName, String qName, String type, String value)(Code)(Java Doc) public void clear()(Code)(Java Doc) public int getIndex(String uri, String localName)(Code)(Java Doc) public int getIndex(String qName)(Code)(Java Doc) public int getLength()(Code)(Java Doc) public String getLocalName(int index)(Code)(Java Doc) public String getQName(int index)(Code)(Java Doc) public String getType(int index)(Code)(Java Doc) public String getType(String uri, String localName)(Code)(Java Doc) public String getType(String qName)(Code)(Java Doc) public String getURI(int index)(Code)(Java Doc) public String getValue(int index)(Code)(Java Doc) public String getValue(String uri, String localName)(Code)(Java Doc) public String getValue(String qName)(Code)(Java Doc) public void removeAttribute(int index)(Code)(Java Doc) public void setAttribute(int index, String uri, String localName, String qName, String type, String value)(Code)(Java Doc) public void setAttributes(Attributes atts)(Code)(Java Doc) public void setLocalName(int index, String localName)(Code)(Java Doc) public void setQName(int index, String qName)(Code)(Java Doc) public void setType(int index, String type)(Code)(Java Doc) public void setURI(int index, String uri)(Code)(Java Doc) public void setValue(int index, String value)(Code)(Java Doc)
|
|
|