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
AttributesImpl class copied from old StAXReader. This class is used to implement
getAttributes() on a StAX Reader.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintLook up the index of an attribute by local name.intLook up the index of an attribute by URI and local name.intLook up the index of an attribute by QName.intReturn the number of attributes in the list.getLocalName(int index) Look up an attribute's local name by index.getName(int index) Look up an attribute's QName by index.getPrefix(int index) Look up an attribute's prefix by index.getURI(int index) Look up an attribute's URI by index.getValue(int index) Look up an attribute's value by index.Look up the value of an attribute by local name.Look up the value of an attribute by URI and local name.Look up the value of an attribute by QName.booleanisNamespaceDeclaration(int index) Return true if the attribute at the given index is a namespace declaration.
-
Constructor Details
-
AttributesImpl
-
-
Method Details
-
getLength
public int getLength()Description copied from interface:AttributesReturn the number of attributes in the list.- Specified by:
getLengthin interfaceAttributes
-
getLocalName
Description copied from interface:AttributesLook up an attribute's local name by index. If attribute is a namespace declaration, result is expected including "xmlns:".- Specified by:
getLocalNamein interfaceAttributes
-
getName
Description copied from interface:AttributesLook up an attribute's QName by index.- Specified by:
getNamein interfaceAttributes
-
getPrefix
Description copied from interface:AttributesLook up an attribute's prefix by index.- Specified by:
getPrefixin interfaceAttributes
-
getURI
Description copied from interface:AttributesLook up an attribute's URI by index.- Specified by:
getURIin interfaceAttributes
-
getValue
Description copied from interface:AttributesLook up an attribute's value by index.- Specified by:
getValuein interfaceAttributes
-
getValue
Description copied from interface:AttributesLook up the value of an attribute by QName.- Specified by:
getValuein interfaceAttributes
-
getValue
Description copied from interface:AttributesLook up the value of an attribute by local name.- Specified by:
getValuein interfaceAttributes
-
getValue
Description copied from interface:AttributesLook up the value of an attribute by URI and local name.- Specified by:
getValuein interfaceAttributes
-
isNamespaceDeclaration
public boolean isNamespaceDeclaration(int index) Description copied from interface:AttributesReturn 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:
isNamespaceDeclarationin interfaceAttributes
-
getIndex
Description copied from interface:AttributesLook up the index of an attribute by QName.- Specified by:
getIndexin interfaceAttributes
-
getIndex
Description copied from interface:AttributesLook up the index of an attribute by local name.- Specified by:
getIndexin interfaceAttributes
-
getIndex
Description copied from interface:AttributesLook up the index of an attribute by URI and local name.- Specified by:
getIndexin interfaceAttributes
-