|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis.message.NullAttributes
Null implementation of the Attributes interface.
Field Summary | |
static NullAttributes |
singleton
|
Constructor Summary | |
NullAttributes()
|
Method Summary | |
int |
getIndex(java.lang.String qName)
Look up an attribute's index by qualified (prefixed) name. |
int |
getIndex(java.lang.String uri,
java.lang.String localName)
Look up an attribute's index by Namespace name. |
int |
getLength()
Return the number of attributes in the list. |
java.lang.String |
getLocalName(int index)
Return an attribute's local name. |
java.lang.String |
getQName(int index)
Return an attribute's qualified (prefixed) name. |
java.lang.String |
getType(int index)
Return an attribute's type by index. |
java.lang.String |
getType(java.lang.String qName)
Look up an attribute's type by qualified (prefixed) name. |
java.lang.String |
getType(java.lang.String uri,
java.lang.String localName)
Look up an attribute's type by Namespace-qualified name. |
java.lang.String |
getURI(int index)
Return an attribute's Namespace URI. |
java.lang.String |
getValue(int index)
Return an attribute's value by index. |
java.lang.String |
getValue(java.lang.String qName)
Look up an attribute's value by qualified (prefixed) name. |
java.lang.String |
getValue(java.lang.String uri,
java.lang.String localName)
Look up an attribute's value by Namespace-qualified name. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final NullAttributes singleton
Constructor Detail |
public NullAttributes()
Method Detail |
public int getLength()
getLength
in interface org.xml.sax.Attributes
Attributes.getLength()
public java.lang.String getURI(int index)
getURI
in interface org.xml.sax.Attributes
index
- The attribute's index (zero-based).
Attributes.getURI(int)
public java.lang.String getLocalName(int index)
getLocalName
in interface org.xml.sax.Attributes
index
- The attribute's index (zero-based).
Attributes.getLocalName(int)
public java.lang.String getQName(int index)
getQName
in interface org.xml.sax.Attributes
index
- The attribute's index (zero-based).
Attributes.getQName(int)
public java.lang.String getType(int index)
getType
in interface org.xml.sax.Attributes
index
- The attribute's index (zero-based).
Attributes.getType(int)
public java.lang.String getValue(int index)
getValue
in interface org.xml.sax.Attributes
index
- The attribute's index (zero-based).
Attributes.getValue(int)
public int getIndex(java.lang.String uri, java.lang.String localName)
In many cases, it will be more efficient to look up the name once and use the index query methods rather than using the name query methods repeatedly.
getIndex
in interface org.xml.sax.Attributes
uri
- The attribute's Namespace URI, or the empty
string if none is available.localName
- The attribute's local name.
Attributes.getIndex(java.lang.String,java.lang.String)
public int getIndex(java.lang.String qName)
getIndex
in interface org.xml.sax.Attributes
qName
- The qualified name.
Attributes.getIndex(java.lang.String)
public java.lang.String getType(java.lang.String uri, java.lang.String localName)
getType
in interface org.xml.sax.Attributes
uri
- The Namespace URI, or the empty string for a name
with no explicit Namespace URI.localName
- The local name.
Attributes.getType(java.lang.String,java.lang.String)
public java.lang.String getType(java.lang.String qName)
getType
in interface org.xml.sax.Attributes
qName
- The qualified name.
Attributes.getType(java.lang.String)
public java.lang.String getValue(java.lang.String uri, java.lang.String localName)
getValue
in interface org.xml.sax.Attributes
uri
- The Namespace URI, or the empty string for a name
with no explicit Namespace URI.localName
- The local name.
Attributes.getValue(java.lang.String,java.lang.String)
public java.lang.String getValue(java.lang.String qName)
getValue
in interface org.xml.sax.Attributes
qName
- The qualified name.
Attributes.getValue(java.lang.String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |