站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 jaxrpc API Documentation 英文版文档

NullAttributes (JAXRPC API) - JBoss 3.2.7 jaxrpc API Documentation 英文版文档


org.apache.axis.message
Class NullAttributes

java.lang.Object
  extended byorg.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

Field Summary
static NullAttributes singleton
           
 
Constructor Summary
NullAttributes()
           
 
Method Summary
 int getIndex(String qName)
          Look up an attribute's index by qualified (prefixed) name.
 int getIndex(String uri, String localName)
          Look up an attribute's index by Namespace name.
 int getLength()
          Return the number of attributes in the list.
 String getLocalName(int index)
          Return an attribute's local name.
 String getQName(int index)
          Return an attribute's qualified (prefixed) name.
 String getType(int index)
          Return an attribute's type by index.
 String getType(String qName)
          Look up an attribute's type by qualified (prefixed) name.
 String getType(String uri, String localName)
          Look up an attribute's type by Namespace-qualified name.
 String getURI(int index)
          Return an attribute's Namespace URI.
 String getValue(int index)
          Return an attribute's value by index.
 String getValue(String qName)
          Look up an attribute's value by qualified (prefixed) name.
 String getValue(String uri, String localName)
          Look up an attribute's value by Namespace-qualified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleton

public static final NullAttributes singleton
Constructor Detail

NullAttributes

public NullAttributes()
Method Detail

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:
Attributes.getLength()

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:
Attributes.getURI(int)

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:
Attributes.getLocalName(int)

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:
Attributes.getQName(int)

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:
Attributes.getType(int)

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:
Attributes.getValue(int)

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:
Attributes.getIndex(java.lang.String,java.lang.String)

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:
Attributes.getIndex(java.lang.String)

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:
Attributes.getType(java.lang.String,java.lang.String)

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:
Attributes.getType(java.lang.String)

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:
Attributes.getValue(java.lang.String,java.lang.String)

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:
Attributes.getValue(java.lang.String)


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.