Package com.sun.xml.rpc.streaming
Class XmlTreeReader.AttributesAdapter
- java.lang.Object
-
- com.sun.xml.rpc.streaming.XmlTreeReader.AttributesAdapter
-
- All Implemented Interfaces:
Attributes
- Enclosing class:
- XmlTreeReader
public class XmlTreeReader.AttributesAdapter extends Object implements Attributes
-
-
Constructor Summary
Constructors Constructor Description AttributesAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIndex(String localName)Look up the index of an attribute by local name.intgetIndex(String uri, String localName)Look up the index of an attribute by URI and local name.intgetIndex(QName name)Look up the index of an attribute by QName.intgetLength()Return the number of attributes in the list.StringgetLocalName(int index)Look up an attribute's local name by index.QNamegetName(int index)Look up an attribute's QName by index.StringgetPrefix(int index)Look up an attribute's prefix by index.StringgetURI(int index)Look up an attribute's URI by index.StringgetValue(int index)Look up an attribute's value by index.StringgetValue(String localName)Look up the value of an attribute by local name.StringgetValue(String uri, String localName)Look up the value of an attribute by URI and local name.StringgetValue(QName 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.
-
-
-
Method Detail
-
getLength
public int getLength()
Description copied from interface:AttributesReturn the number of attributes in the list.- Specified by:
getLengthin 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
-
getName
public QName getName(int index)
Description copied from interface:AttributesLook up an attribute's QName by index.- Specified by:
getNamein interfaceAttributes
-
getURI
public String getURI(int index)
Description copied from interface:AttributesLook up an attribute's URI by index.- Specified by:
getURIin interfaceAttributes
-
getLocalName
public String getLocalName(int index)
Description copied from interface:AttributesLook up an attribute's local name by index.- Specified by:
getLocalNamein interfaceAttributes
-
getPrefix
public String getPrefix(int index)
Description copied from interface:AttributesLook up an attribute's prefix by index.- Specified by:
getPrefixin interfaceAttributes
-
getValue
public String getValue(int index)
Description copied from interface:AttributesLook up an attribute's value by index.- Specified by:
getValuein interfaceAttributes
-
getIndex
public int getIndex(QName name)
Description copied from interface:AttributesLook up the index of an attribute by QName.- Specified by:
getIndexin interfaceAttributes
-
getIndex
public int getIndex(String uri, String localName)
Description copied from interface:AttributesLook up the index of an attribute by URI and local name.- Specified by:
getIndexin interfaceAttributes
-
getIndex
public int getIndex(String localName)
Description copied from interface:AttributesLook up the index of an attribute by local name.- Specified by:
getIndexin interfaceAttributes
-
getValue
public String getValue(QName name)
Description copied from interface:AttributesLook up the value of an attribute by QName.- Specified by:
getValuein interfaceAttributes
-
getValue
public String getValue(String uri, String localName)
Description copied from interface:AttributesLook up the value of an attribute by URI and local name.- Specified by:
getValuein interfaceAttributes
-
getValue
public String getValue(String localName)
Description copied from interface:AttributesLook up the value of an attribute by local name.- Specified by:
getValuein interfaceAttributes
-
-