public final class AttributesHolder extends Object implements Attributes
Attributes, this class follows the SAX convention
of using "" instead of null.| Constructor and Description |
|---|
AttributesHolder() |
| Modifier and Type | Method and 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) |
public final int getLength()
getLength in interface Attributespublic final String getPrefix(int index)
public final String getLocalName(int index)
getLocalName in interface Attributespublic final String getQName(int index)
getQName in interface Attributespublic final String getType(int index)
getType in interface Attributespublic final String getURI(int index)
getURI in interface Attributespublic final String getValue(int index)
getValue in interface Attributespublic final int getIndex(String qName)
getIndex in interface Attributespublic final String getType(String qName)
getType in interface Attributespublic final String getValue(String qName)
getValue in interface Attributespublic final int getIndex(String uri, String localName)
getIndex in interface Attributespublic final String getType(String uri, String localName)
getType in interface Attributespublic final String getValue(String uri, String localName)
getValue in interface Attributespublic final void clear()
public final void addAttributeWithQName(String uri, String localName, String qName, String type, String value)
uri - This can be empty but not null, just like everywhere else in SAX.public final void addAttributeWithPrefix(String prefix, String uri, String localName, String type, String value)
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–2017 Oracle Corporation. All rights reserved.