Package com.sun.xml.stream.buffer
Class AttributesHolder
- java.lang.Object
-
- com.sun.xml.stream.buffer.AttributesHolder
-
- All Implemented Interfaces:
Attributes
public final class AttributesHolder extends Object implements Attributes
Class for holding attributes. Since it implementsAttributes, this class follows the SAX convention of using "" instead of null.
-
-
Constructor Summary
Constructors Constructor Description AttributesHolder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttributeWithPrefix(String prefix, String uri, String localName, String type, String value)Add an attribute using a prefix.voidaddAttributeWithQName(String uri, String localName, String qName, String type, String value)Add an attribute using a qualified name that contains the prefix and local name.voidclear()intgetIndex(String qName)intgetIndex(String uri, String localName)intgetLength()StringgetLocalName(int index)StringgetPrefix(int index)StringgetQName(int index)StringgetType(int index)StringgetType(String qName)StringgetType(String uri, String localName)StringgetURI(int index)StringgetValue(int index)StringgetValue(String qName)StringgetValue(String uri, String localName)
-
-
-
Method Detail
-
getLength
public final int getLength()
- Specified by:
getLengthin interfaceAttributes
-
getPrefix
public final String getPrefix(int index)
-
getLocalName
public final String getLocalName(int index)
- Specified by:
getLocalNamein interfaceAttributes
-
getQName
public final String getQName(int index)
- Specified by:
getQNamein interfaceAttributes
-
getType
public final String getType(int index)
- Specified by:
getTypein interfaceAttributes
-
getURI
public final String getURI(int index)
- Specified by:
getURIin interfaceAttributes
-
getValue
public final String getValue(int index)
- Specified by:
getValuein interfaceAttributes
-
getIndex
public final int getIndex(String qName)
- Specified by:
getIndexin interfaceAttributes
-
getType
public final String getType(String qName)
- Specified by:
getTypein interfaceAttributes
-
getValue
public final String getValue(String qName)
- Specified by:
getValuein interfaceAttributes
-
getIndex
public final int getIndex(String uri, String localName)
- Specified by:
getIndexin interfaceAttributes
-
getType
public final String getType(String uri, String localName)
- Specified by:
getTypein interfaceAttributes
-
getValue
public final String getValue(String uri, String localName)
- 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.
-
-