com.sun.xml.ws.streaming
Class XMLStreamReaderUtil.AttributesImpl

java.lang.Object
  extended by com.sun.xml.ws.streaming.XMLStreamReaderUtil.AttributesImpl
All Implemented Interfaces:
Attributes
Enclosing class:
XMLStreamReaderUtil

public static class XMLStreamReaderUtil.AttributesImpl
extends java.lang.Object
implements Attributes

AttributesImpl class copied from old StAXReader. This class is used to implement getAttributes() on a StAX Reader.


Constructor Summary
XMLStreamReaderUtil.AttributesImpl(javax.xml.stream.XMLStreamReader reader)
           
 
Method Summary
 int getIndex(javax.xml.namespace.QName name)
          Look up the index of an attribute by QName.
 int getIndex(java.lang.String localName)
          Look up the index of an attribute by local name.
 int getIndex(java.lang.String uri, java.lang.String localName)
          Look up the index of an attribute by URI and local name.
 int getLength()
          Return the number of attributes in the list.
 java.lang.String getLocalName(int index)
          Look up an attribute's local name by index.
 javax.xml.namespace.QName getName(int index)
          Look up an attribute's QName by index.
 java.lang.String getPrefix(int index)
          Look up an attribute's prefix by index.
 java.lang.String getURI(int index)
          Look up an attribute's URI by index.
 java.lang.String getValue(int index)
          Look up an attribute's value by index.
 java.lang.String getValue(javax.xml.namespace.QName name)
          Look up the value of an attribute by QName.
 java.lang.String getValue(java.lang.String localName)
          Look up the value of an attribute by local name.
 java.lang.String getValue(java.lang.String uri, java.lang.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
 

Constructor Detail

XMLStreamReaderUtil.AttributesImpl

public XMLStreamReaderUtil.AttributesImpl(javax.xml.stream.XMLStreamReader reader)
Method Detail

getLength

public int getLength()
Description copied from interface: Attributes
Return the number of attributes in the list.

Specified by:
getLength in interface Attributes

getLocalName

public java.lang.String getLocalName(int index)
Description copied from interface: Attributes
Look up an attribute's local name by index. If attribute is a namespace declaration, result is expected including "xmlns:".

Specified by:
getLocalName in interface Attributes

getName

public javax.xml.namespace.QName getName(int index)
Description copied from interface: Attributes
Look up an attribute's QName by index.

Specified by:
getName in interface Attributes

getPrefix

public java.lang.String getPrefix(int index)
Description copied from interface: Attributes
Look up an attribute's prefix by index.

Specified by:
getPrefix in interface Attributes

getURI

public java.lang.String getURI(int index)
Description copied from interface: Attributes
Look up an attribute's URI by index.

Specified by:
getURI in interface Attributes

getValue

public java.lang.String getValue(int index)
Description copied from interface: Attributes
Look up an attribute's value by index.

Specified by:
getValue in interface Attributes

getValue

public java.lang.String getValue(javax.xml.namespace.QName name)
Description copied from interface: Attributes
Look up the value of an attribute by QName.

Specified by:
getValue in interface Attributes

getValue

public java.lang.String getValue(java.lang.String localName)
Description copied from interface: Attributes
Look up the value of an attribute by local name.

Specified by:
getValue in interface Attributes

getValue

public java.lang.String getValue(java.lang.String uri,
                                 java.lang.String localName)
Description copied from interface: Attributes
Look up the value of an attribute by URI and local name.

Specified by:
getValue in interface Attributes

isNamespaceDeclaration

public boolean isNamespaceDeclaration(int index)
Description copied from interface: Attributes
Return true if the attribute at the given index is a namespace declaration.

Implementations are encouraged to optimize this method by taking into account their internal representations of attributes.

Specified by:
isNamespaceDeclaration in interface Attributes

getIndex

public int getIndex(javax.xml.namespace.QName name)
Description copied from interface: Attributes
Look up the index of an attribute by QName.

Specified by:
getIndex in interface Attributes

getIndex

public int getIndex(java.lang.String localName)
Description copied from interface: Attributes
Look up the index of an attribute by local name.

Specified by:
getIndex in interface Attributes

getIndex

public int getIndex(java.lang.String uri,
                    java.lang.String localName)
Description copied from interface: Attributes
Look up the index of an attribute by URI and local name.

Specified by:
getIndex in interface Attributes


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.