Package com.sun.xml.ws.streaming
Class XMLStreamReaderUtil.AttributesImpl
- java.lang.Object
-
- com.sun.xml.ws.streaming.XMLStreamReaderUtil.AttributesImpl
-
- All Implemented Interfaces:
Attributes
- Enclosing class:
- XMLStreamReaderUtil
public static class XMLStreamReaderUtil.AttributesImpl extends Object implements Attributes
AttributesImpl class copied from old StAXReader. This class is used to implement getAttributes() on a StAX Reader.
-
-
Constructor Summary
Constructors Constructor Description AttributesImpl(XMLStreamReader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
getIndex(QName name)
Look up the index of an attribute by QName.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(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.String
getValue(QName name)
Look up the value of an attribute by QName.boolean
isNamespaceDeclaration(int index)
Return true if the attribute at the given index is a namespace declaration.
-
-
-
Constructor Detail
-
AttributesImpl
public AttributesImpl(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 interfaceAttributes
-
getLocalName
public 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 interfaceAttributes
-
getName
public QName getName(int index)
Description copied from interface:Attributes
Look up an attribute's QName by index.- Specified by:
getName
in interfaceAttributes
-
getPrefix
public String getPrefix(int index)
Description copied from interface:Attributes
Look up an attribute's prefix by index.- Specified by:
getPrefix
in interfaceAttributes
-
getURI
public String getURI(int index)
Description copied from interface:Attributes
Look up an attribute's URI by index.- Specified by:
getURI
in interfaceAttributes
-
getValue
public String getValue(int index)
Description copied from interface:Attributes
Look up an attribute's value by index.- Specified by:
getValue
in interfaceAttributes
-
getValue
public String getValue(QName name)
Description copied from interface:Attributes
Look up the value of an attribute by QName.- Specified by:
getValue
in interfaceAttributes
-
getValue
public String getValue(String localName)
Description copied from interface:Attributes
Look up the value of an attribute by local name.- Specified by:
getValue
in interfaceAttributes
-
getValue
public String getValue(String uri, String localName)
Description copied from interface:Attributes
Look up the value of an attribute by URI and local name.- Specified by:
getValue
in interfaceAttributes
-
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 interfaceAttributes
-
getIndex
public int getIndex(QName name)
Description copied from interface:Attributes
Look up the index of an attribute by QName.- Specified by:
getIndex
in interfaceAttributes
-
getIndex
public int getIndex(String localName)
Description copied from interface:Attributes
Look up the index of an attribute by local name.- Specified by:
getIndex
in interfaceAttributes
-
getIndex
public int getIndex(String uri, String localName)
Description copied from interface:Attributes
Look up the index of an attribute by URI and local name.- Specified by:
getIndex
in interfaceAttributes
-
-