|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.streaming.XMLStreamReaderUtil.AttributesImpl
public static class XMLStreamReaderUtil.AttributesImpl
AttributesImpl class copied from old StAXReader. This class is used to implement getAttributes() on a StAX Reader.
| Nested Class Summary | |
|---|---|
(package private) static class |
XMLStreamReaderUtil.AttributesImpl.AttributeInfo
|
| Field Summary | |
|---|---|
(package private) XMLStreamReaderUtil.AttributesImpl.AttributeInfo[] |
atInfos
|
(package private) static String |
XMLNS_NAMESPACE_URI
|
| Constructor Summary | |
|---|---|
XMLStreamReaderUtil.AttributesImpl(javax.xml.stream.XMLStreamReader reader)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final String XMLNS_NAMESPACE_URI
XMLStreamReaderUtil.AttributesImpl.AttributeInfo[] atInfos
| Constructor Detail |
|---|
public XMLStreamReaderUtil.AttributesImpl(javax.xml.stream.XMLStreamReader reader)
| Method Detail |
|---|
public int getLength()
Attributes
getLength in interface Attributespublic String getLocalName(int index)
Attributes
getLocalName in interface Attributespublic QName getName(int index)
Attributes
getName in interface Attributespublic String getPrefix(int index)
Attributes
getPrefix in interface Attributespublic String getURI(int index)
Attributes
getURI in interface Attributespublic String getValue(int index)
Attributes
getValue in interface Attributespublic String getValue(QName name)
Attributes
getValue in interface Attributespublic String getValue(String localName)
Attributes
getValue in interface Attributes
public String getValue(String uri,
String localName)
Attributes
getValue 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)
Attributes
getIndex in interface Attributespublic int getIndex(String localName)
Attributes
getIndex in interface Attributes
public int getIndex(String uri,
String localName)
Attributes
getIndex in interface Attributes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||