org.objectweb.proactive.core.xml.io
Class DefaultHandlerAdapter.EmptyAttributesImpl

java.lang.Object
  |
  +--org.objectweb.proactive.core.xml.io.DefaultHandlerAdapter.EmptyAttributesImpl
All Implemented Interfaces:
Attributes
Enclosing class:
DefaultHandlerAdapter

protected class DefaultHandlerAdapter.EmptyAttributesImpl
extends java.lang.Object
implements Attributes


Method Summary
 int getLength()
          Returns the number of attributes in the list.
 java.lang.String getValue(int index)
          Looks up an attribute's value by index.
 java.lang.String getValue(java.lang.String qName)
          Looks up an attribute's value by XML 1.0 qualified name.
 java.lang.String getValue(java.lang.String uri, java.lang.String localPart)
          Looks up the index of an attribute by Namespace name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getValue

public java.lang.String getValue(int index)
Description copied from interface: Attributes
Looks up an attribute's value by index.

Specified by:
getValue in interface Attributes
Parameters:
index - The attribute index (zero-based).
Returns:
The attribute's value as a string, or null if the index is out of range.

getValue

public java.lang.String getValue(java.lang.String qName)
Description copied from interface: Attributes
Looks up an attribute's value by XML 1.0 qualified name.

Specified by:
getValue in interface Attributes
Parameters:
qName - The qualified (prefixed) name.
Returns:
The attribute value as a string, or null if the attribute is not in the list or if qualified names are not available.

getValue

public java.lang.String getValue(java.lang.String uri,
                                 java.lang.String localPart)
Description copied from interface: Attributes
Looks up the index of an attribute by Namespace name.

Specified by:
getValue in interface Attributes
Parameters:
uri - The Namespace URI, or the empty string if the name has no Namespace URI.
Returns:
The attribute value as a string, or null if the attribute is not in the list.

getLength

public int getLength()
Description copied from interface: Attributes
Returns the number of attributes in the list.

Specified by:
getLength in interface Attributes


Copyright © April 2004 INRIA All Rights Reserved.