Class NullAttributes

java.lang.Object
org.apache.axis.message.NullAttributes
All Implemented Interfaces:
Attributes

public class NullAttributes extends Object implements Attributes
Null implementation of the Attributes interface.
Author:
David Megginson, Sam Ruby invalid input: '<'rubys@us.ibm.com>
  • Field Details

  • Constructor Details

    • NullAttributes

      public NullAttributes()
  • Method Details

    • getLength

      public int getLength()
      Return the number of attributes in the list.
      Specified by:
      getLength in interface Attributes
      Returns:
      The number of attributes in the list.
      See Also:
    • getURI

      public String getURI(int index)
      Return an attribute's Namespace URI.
      Specified by:
      getURI in interface Attributes
      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

      public String getLocalName(int index)
      Return an attribute's local name.
      Specified by:
      getLocalName in interface Attributes
      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

      public String getQName(int index)
      Return an attribute's qualified (prefixed) name.
      Specified by:
      getQName in interface Attributes
      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

      public String getType(int index)
      Return an attribute's type by index.
      Specified by:
      getType in interface Attributes
      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

      public String getValue(int index)
      Return an attribute's value by index.
      Specified by:
      getValue in interface Attributes
      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

      public int getIndex(String uri, String localName)
      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 interface Attributes
      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

      public int getIndex(String qName)
      Look up an attribute's index by qualified (prefixed) name.
      Specified by:
      getIndex in interface Attributes
      Parameters:
      qName - The qualified name.
      Returns:
      The attribute's index, or -1 if none matches.
      See Also:
    • getType

      public String getType(String uri, String localName)
      Look up an attribute's type by Namespace-qualified name.
      Specified by:
      getType in interface Attributes
      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

      public String getType(String qName)
      Look up an attribute's type by qualified (prefixed) name.
      Specified by:
      getType in interface Attributes
      Parameters:
      qName - The qualified name.
      Returns:
      The attribute's type, or null if there is no matching attribute.
      See Also:
    • getValue

      public String getValue(String uri, String localName)
      Look up an attribute's value by Namespace-qualified name.
      Specified by:
      getValue in interface Attributes
      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

      public String getValue(String qName)
      Look up an attribute's value by qualified (prefixed) name.
      Specified by:
      getValue in interface Attributes
      Parameters:
      qName - The qualified name.
      Returns:
      The attribute's value, or null if there is no matching attribute.
      See Also: