Package com.sun.xml.stream.buffer
Class AttributesHolder
java.lang.Object
com.sun.xml.stream.buffer.AttributesHolder
- All Implemented Interfaces:
Attributes
Class for holding attributes.
Since it implements
Attributes, this class follows the SAX convention
of using "" instead of null.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidAdd an attribute using a prefix.final voidAdd an attribute using a qualified name that contains the prefix and local name.final voidclear()final intfinal intfinal intfinal StringgetLocalName(int index) final StringgetPrefix(int index) final StringgetQName(int index) final StringgetType(int index) final Stringfinal Stringfinal StringgetURI(int index) final StringgetValue(int index) final Stringfinal String
-
Constructor Details
-
AttributesHolder
public AttributesHolder()
-
-
Method Details
-
getLength
public final int getLength()- Specified by:
getLengthin interfaceAttributes
-
getPrefix
-
getLocalName
- Specified by:
getLocalNamein interfaceAttributes
-
getQName
- Specified by:
getQNamein interfaceAttributes
-
getType
- Specified by:
getTypein interfaceAttributes
-
getURI
- Specified by:
getURIin interfaceAttributes
-
getValue
- Specified by:
getValuein interfaceAttributes
-
getIndex
- Specified by:
getIndexin interfaceAttributes
-
getType
- Specified by:
getTypein interfaceAttributes
-
getValue
- Specified by:
getValuein interfaceAttributes
-
getIndex
- Specified by:
getIndexin interfaceAttributes
-
getType
- Specified by:
getTypein interfaceAttributes
-
getValue
- Specified by:
getValuein interfaceAttributes
-
clear
public final void clear() -
addAttributeWithQName
public final void addAttributeWithQName(String uri, String localName, String qName, String type, String value) Add an attribute using a qualified name that contains the prefix and local name.- Parameters:
uri- This can be empty but not null, just like everywhere else in SAX.
-
addAttributeWithPrefix
public final void addAttributeWithPrefix(String prefix, String uri, String localName, String type, String value) Add an attribute using a prefix.- Parameters:
prefix- This can be empty but not null, just like everywhere else in SAX.uri- This can be empty but not null, just like everywhere else in SAX.
-