org.apache.xml.serializer
public final class AttributesImplSerializer extends AttributesImpl
See Also: org.xml.sax.Attributes
UNKNOWN: internal
Method Summary | |
---|---|
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). |
void | clear()
This method clears the accumulated attributes.
|
int | getIndex(String qname)
This method gets the index of an attribute given its qName. |
int | getIndex(String uri, 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). |
Parameters: uri the URI of the attribute local the local name of the attribute qname the qualified name of the attribute type the type of the attribute val the value of the attribute
See Also: org.xml.sax.helpers.AttributesImpl#addAttribute(String, String, String, String, String) getIndex
See Also: org.xml.sax.helpers.AttributesImpl#clear()
Parameters: qname the qualified name of the attribute, e.g. "prefix1:locName1"
Returns: the integer index of the attribute.
See Also: org.xml.sax.Attributes#getIndex(String)
Parameters: uri the URI of the attribute name. localName the local namer (after the ':' ) of the attribute name.
Returns: the integer index of the attribute.
See Also: org.xml.sax.Attributes#getIndex(String)
Parameters: atts the attributes to copy into these attributes.
See Also: org.xml.sax.helpers.AttributesImpl#setAttributes(Attributes) getIndex