public static class XMLStreamReaderUtil.AttributesImpl extends Object implements Attributes
Modifier and Type | Class and Description |
---|---|
(package private) static class |
XMLStreamReaderUtil.AttributesImpl.AttributeInfo |
Modifier and Type | Field and Description |
---|---|
(package private) XMLStreamReaderUtil.AttributesImpl.AttributeInfo[] |
atInfos |
(package private) static String |
XMLNS_NAMESPACE_URI |
Constructor and Description |
---|
XMLStreamReaderUtil.AttributesImpl(javax.xml.stream.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.
|
static final String XMLNS_NAMESPACE_URI
XMLStreamReaderUtil.AttributesImpl.AttributeInfo[] atInfos
public XMLStreamReaderUtil.AttributesImpl(javax.xml.stream.XMLStreamReader reader)
public int getLength()
Attributes
getLength
in interface Attributes
public String getLocalName(int index)
Attributes
getLocalName
in interface Attributes
public QName getName(int index)
Attributes
getName
in interface Attributes
public String getPrefix(int index)
Attributes
getPrefix
in interface Attributes
public String getURI(int index)
Attributes
getURI
in interface Attributes
public String getValue(int index)
Attributes
getValue
in interface Attributes
public String getValue(QName name)
Attributes
getValue
in interface Attributes
public String getValue(String localName)
Attributes
getValue
in interface Attributes
public String getValue(String uri, String localName)
Attributes
getValue
in interface Attributes
public boolean isNamespaceDeclaration(int index)
Attributes
Implementations are encouraged to optimize this method by taking into account their internal representations of attributes.
isNamespaceDeclaration
in interface Attributes
public int getIndex(QName name)
Attributes
getIndex
in interface Attributes
public int getIndex(String localName)
Attributes
getIndex
in interface Attributes
public int getIndex(String uri, String localName)
Attributes
getIndex
in interface Attributes
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.