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 Attributes
public final String getPrefix(int index)
public final String getLocalName(int index)
getLocalName
in interface Attributes
public final String getQName(int index)
getQName
in interface Attributes
public final String getType(int index)
getType
in interface Attributes
public final String getURI(int index)
getURI
in interface Attributes
public final String getValue(int index)
getValue
in interface Attributes
public final int getIndex(String qName)
getIndex
in interface Attributes
public final String getType(String qName)
getType
in interface Attributes
public final String getValue(String qName)
getValue
in interface Attributes
public final int getIndex(String uri, String localName)
getIndex
in interface Attributes
public final String getType(String uri, String localName)
getType
in interface Attributes
public final String getValue(String uri, String localName)
getValue
in interface Attributes
public 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 © 2006–2024. All rights reserved.