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 implements Attributes, this class follows the SAX convention
of using "" instead of null.
|
Method Summary |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CAPACITY
protected static final int DEFAULT_CAPACITY
- See Also:
- Constant Field Values
ITEM_SIZE
protected static final int ITEM_SIZE
- See Also:
- Constant Field Values
PREFIX
protected static final int PREFIX
- See Also:
- Constant Field Values
URI
protected static final int URI
- See Also:
- Constant Field Values
LOCAL_NAME
protected static final int LOCAL_NAME
- See Also:
- Constant Field Values
QNAME
protected static final int QNAME
- See Also:
- Constant Field Values
TYPE
protected static final int TYPE
- See Also:
- Constant Field Values
VALUE
protected static final int VALUE
- See Also:
- Constant Field Values
_attributeCount
protected int _attributeCount
_strings
protected String[] _strings
AttributesHolder
public AttributesHolder()
getLength
public final int getLength()
- Specified by:
getLength in interface Attributes
getPrefix
public final String getPrefix(int index)
getLocalName
public final String getLocalName(int index)
- Specified by:
getLocalName in interface Attributes
getQName
public final String getQName(int index)
- Specified by:
getQName in interface Attributes
getType
public final String getType(int index)
- Specified by:
getType in interface Attributes
getURI
public final String getURI(int index)
- Specified by:
getURI in interface Attributes
getValue
public final String getValue(int index)
- Specified by:
getValue in interface Attributes
getIndex
public final int getIndex(String qName)
- Specified by:
getIndex in interface Attributes
getType
public final String getType(String qName)
- Specified by:
getType in interface Attributes
getValue
public final String getValue(String qName)
- Specified by:
getValue in interface Attributes
getIndex
public final int getIndex(String uri,
String localName)
- Specified by:
getIndex in interface Attributes
getType
public final String getType(String uri,
String localName)
- Specified by:
getType in interface Attributes
getValue
public final String getValue(String uri,
String localName)
- Specified by:
getValue in interface Attributes
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.
Copyright © 2005-2013 Oracle Corporation. All Rights Reserved.