Package com.sun.xml.ws.streaming
Interface Attributes
-
- All Known Implementing Classes:
XMLStreamReaderUtil.AttributesImpl
public interface AttributesThe Attributes interface is essentially a version of the org.xml.sax.Attributes interface modified to use the JAX-WS QName class.
Although namespace declarations can appear in the attribute list, the actual values of the local name and URI properties are implementation-specific.
Applications that need to iterate through all the attributes can use the
isNamespaceDeclaration(int)method to identify namespace declarations and skip them.Also, the URI property of an attribute will never be null. The value "" (empty string) is used for the URI of non-qualified attributes.
- Author:
- WS Development Team
-
-
Method Summary
All Methods Instance Methods Abstract 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
int getLength()
Return the number of attributes in the list.
-
isNamespaceDeclaration
boolean isNamespaceDeclaration(int index)
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.
-
getName
QName getName(int index)
Look up an attribute's QName by index.
-
getURI
String getURI(int index)
Look up an attribute's URI by index.
-
getLocalName
String getLocalName(int index)
Look up an attribute's local name by index. If attribute is a namespace declaration, result is expected including "xmlns:".
-
getPrefix
String getPrefix(int index)
Look up an attribute's prefix by index.
-
getValue
String getValue(int index)
Look up an attribute's value by index.
-
getIndex
int getIndex(QName name)
Look up the index of an attribute by QName.
-
getIndex
int getIndex(String uri, String localName)
Look up the index of an attribute by URI and local name.
-
getIndex
int getIndex(String localName)
Look up the index of an attribute by local name.
-
getValue
String getValue(String uri, String localName)
Look up the value of an attribute by URI and local name.
-
-