Package org.apache.axis.message
Class NullAttributes
java.lang.Object
org.apache.axis.message.NullAttributes
- All Implemented Interfaces:
Attributes
Null implementation of the Attributes interface.
- Author:
- David Megginson, Sam Ruby <rubys@us.ibm.com>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Look up an attribute's index by qualified (prefixed) name.int
Look up an attribute's index by Namespace name.int
Return the number of attributes in the list.getLocalName
(int index) Return an attribute's local name.getQName
(int index) Return an attribute's qualified (prefixed) name.getType
(int index) Return an attribute's type by index.Look up an attribute's type by qualified (prefixed) name.Look up an attribute's type by Namespace-qualified name.getURI
(int index) Return an attribute's Namespace URI.getValue
(int index) Return an attribute's value by index.Look up an attribute's value by qualified (prefixed) name.Look up an attribute's value by Namespace-qualified name.
-
Field Details
-
singleton
-
-
Constructor Details
-
NullAttributes
public NullAttributes()
-
-
Method Details
-
getLength
public int getLength()Return the number of attributes in the list.- Specified by:
getLength
in interfaceAttributes
- Returns:
- The number of attributes in the list.
- See Also:
-
getURI
Return an attribute's Namespace URI.- Specified by:
getURI
in interfaceAttributes
- Parameters:
index
- The attribute's index (zero-based).- Returns:
- The Namespace URI, the empty string if none is available, or null if the index is out of range.
- See Also:
-
getLocalName
Return an attribute's local name.- Specified by:
getLocalName
in interfaceAttributes
- Parameters:
index
- The attribute's index (zero-based).- Returns:
- The attribute's local name, the empty string if none is available, or null if the index if out of range.
- See Also:
-
getQName
Return an attribute's qualified (prefixed) name.- Specified by:
getQName
in interfaceAttributes
- Parameters:
index
- The attribute's index (zero-based).- Returns:
- The attribute's qualified name, the empty string if none is available, or null if the index is out of bounds.
- See Also:
-
getType
Return an attribute's type by index.- Specified by:
getType
in interfaceAttributes
- Parameters:
index
- The attribute's index (zero-based).- Returns:
- The attribute's type, "CDATA" if the type is unknown, or null if the index is out of bounds.
- See Also:
-
getValue
Return an attribute's value by index.- Specified by:
getValue
in interfaceAttributes
- Parameters:
index
- The attribute's index (zero-based).- Returns:
- The attribute's value or null if the index is out of bounds.
- See Also:
-
getIndex
Look up an attribute's index by Namespace name.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.
- Specified by:
getIndex
in interfaceAttributes
- Parameters:
uri
- The attribute's Namespace URI, or the empty string if none is available.localName
- The attribute's local name.- Returns:
- The attribute's index, or -1 if none matches.
- See Also:
-
getIndex
Look up an attribute's index by qualified (prefixed) name.- Specified by:
getIndex
in interfaceAttributes
- Parameters:
qName
- The qualified name.- Returns:
- The attribute's index, or -1 if none matches.
- See Also:
-
getType
Look up an attribute's type by Namespace-qualified name.- Specified by:
getType
in interfaceAttributes
- Parameters:
uri
- The Namespace URI, or the empty string for a name with no explicit Namespace URI.localName
- The local name.- Returns:
- The attribute's type, or null if there is no matching attribute.
- See Also:
-
getType
Look up an attribute's type by qualified (prefixed) name.- Specified by:
getType
in interfaceAttributes
- Parameters:
qName
- The qualified name.- Returns:
- The attribute's type, or null if there is no matching attribute.
- See Also:
-
getValue
Look up an attribute's value by Namespace-qualified name.- Specified by:
getValue
in interfaceAttributes
- Parameters:
uri
- The Namespace URI, or the empty string for a name with no explicit Namespace URI.localName
- The local name.- Returns:
- The attribute's value, or null if there is no matching attribute.
- See Also:
-
getValue
Look up an attribute's value by qualified (prefixed) name.- Specified by:
getValue
in interfaceAttributes
- Parameters:
qName
- The qualified name.- Returns:
- The attribute's value, or null if there is no matching attribute.
- See Also:
-