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 void
addAttributeWithPrefix(String prefix, String uri, String localName, String type, String value)
Add an attribute using a prefix.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.void
clear()
int
getIndex(String qName)
int
getIndex(String uri, String localName)
int
getLength()
String
getLocalName(int index)
String
getPrefix(int index)
String
getQName(int index)
String
getType(int index)
String
getType(String qName)
String
getType(String uri, String localName)
String
getURI(int index)
String
getValue(int index)
String
getValue(String qName)
String
getValue(String uri, String localName)
-
-
-
Method Detail
-
getLength
public final int getLength()
- Specified by:
getLength
in interfaceAttributes
-
getPrefix
public final String getPrefix(int index)
-
getLocalName
public final String getLocalName(int index)
- Specified by:
getLocalName
in interfaceAttributes
-
getQName
public final String getQName(int index)
- Specified by:
getQName
in interfaceAttributes
-
getType
public final String getType(int index)
- Specified by:
getType
in interfaceAttributes
-
getURI
public final String getURI(int index)
- Specified by:
getURI
in interfaceAttributes
-
getValue
public final String getValue(int index)
- Specified by:
getValue
in interfaceAttributes
-
getIndex
public final int getIndex(String qName)
- Specified by:
getIndex
in interfaceAttributes
-
getType
public final String getType(String qName)
- Specified by:
getType
in interfaceAttributes
-
getValue
public final String getValue(String qName)
- Specified by:
getValue
in interfaceAttributes
-
getIndex
public final int getIndex(String uri, String localName)
- Specified by:
getIndex
in interfaceAttributes
-
getType
public final String getType(String uri, String localName)
- Specified by:
getType
in interfaceAttributes
-
getValue
public final String getValue(String uri, String localName)
- Specified by:
getValue
in 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.
-
-