public static class StAXReader.AttributesImpl extends Object implements Attributes
| Constructor and Description |
|---|
AttributesImpl(XMLStreamReader reader) |
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex(QName name)
Look up the index of an attribute by QName.
|
int |
getIndex(String localName)
Look up the index of an attribute by local name.
|
int |
getIndex(String uri,
String localName)
Look up the index of an attribute by URI and local name.
|
int |
getLength()
Return the number of attributes in the list.
|
String |
getLocalName(int index)
Look up an attribute's local name by index.
|
QName |
getName(int index)
Look up an attribute's QName by index.
|
String |
getPrefix(int index)
Look up an attribute's prefix by index.
|
String |
getURI(int index)
Look up an attribute's URI by index.
|
String |
getValue(int index)
Look up an attribute's value by index.
|
String |
getValue(QName name)
Look up the value of an attribute by QName.
|
String |
getValue(String localName)
Look up the value of an attribute by local name.
|
String |
getValue(String uri,
String localName)
Look up the value of an attribute by URI and local name.
|
boolean |
isNamespaceDeclaration(int index)
Return true if the attribute at the given index is a namespace
declaration.
|
public AttributesImpl(XMLStreamReader reader)
public int getLength()
AttributesgetLength in interface Attributespublic String getLocalName(int index)
AttributesgetLocalName in interface Attributespublic QName getName(int index)
AttributesgetName in interface Attributespublic String getPrefix(int index)
AttributesgetPrefix in interface Attributespublic String getURI(int index)
AttributesgetURI in interface Attributespublic String getValue(int index)
AttributesgetValue in interface Attributespublic String getValue(QName name)
AttributesgetValue in interface Attributespublic String getValue(String localName)
AttributesgetValue in interface Attributespublic String getValue(String uri, String localName)
AttributesgetValue in interface Attributespublic boolean isNamespaceDeclaration(int index)
AttributesImplementations are encouraged to optimize this method by taking into account their internal representations of attributes.
isNamespaceDeclaration in interface Attributespublic int getIndex(QName name)
AttributesgetIndex in interface Attributespublic int getIndex(String localName)
AttributesgetIndex in interface Attributespublic int getIndex(String uri, String localName)
AttributesgetIndex in interface AttributesCopyright © 2017–2019 Eclipse Foundation. All rights reserved.