org.xml.sax.helpers
Class XMLReaderAdapter.AttributesAdapter

java.lang.Object
  |
  +--org.xml.sax.helpers.XMLReaderAdapter.AttributesAdapter
All Implemented Interfaces:
AttributeList
Enclosing class:
XMLReaderAdapter

final class XMLReaderAdapter.AttributesAdapter
extends java.lang.Object
implements AttributeList

Internal class to wrap a SAX2 Attributes object for SAX1.


Constructor Summary
(package private) XMLReaderAdapter.AttributesAdapter()
           
 
Method Summary
 int getLength()
          Return the number of attributes.
 java.lang.String getName(int i)
          Return the qualified (prefixed) name of an attribute by position.
 java.lang.String getType(int i)
          Return the type of an attribute by position.
 java.lang.String getType(java.lang.String qName)
          Return the type of an attribute by qualified (prefixed) name.
 java.lang.String getValue(int i)
          Return the value of an attribute by position.
 java.lang.String getValue(java.lang.String qName)
          Return the value of an attribute by qualified (prefixed) name.
(package private)  void setAttributes(Attributes attributes)
          Set the embedded Attributes object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLReaderAdapter.AttributesAdapter

XMLReaderAdapter.AttributesAdapter()
Method Detail

setAttributes

void setAttributes(Attributes attributes)
Set the embedded Attributes object.


getLength

public int getLength()
Return the number of attributes.

Specified by:
getLength in interface AttributeList
Returns:
The length of the attribute list.
See Also:
AttributeList.getLength()

getName

public java.lang.String getName(int i)
Return the qualified (prefixed) name of an attribute by position.

Specified by:
getName in interface AttributeList
Parameters:
i - The index of the attribute in the list (starting at 0).
Returns:
The qualified name.
See Also:
AttributeList.getName(int)

getType

public java.lang.String getType(int i)
Return the type of an attribute by position.

Specified by:
getType in interface AttributeList
Parameters:
i - The index of the attribute in the list (starting at 0).
Returns:
The type.
See Also:
AttributeList.getType(int)

getValue

public java.lang.String getValue(int i)
Return the value of an attribute by position.

Specified by:
getValue in interface AttributeList
Parameters:
i - The index of the attribute in the list (starting at 0).
Returns:
The value.
See Also:
AttributeList.getValue(int)

getType

public java.lang.String getType(java.lang.String qName)
Return the type of an attribute by qualified (prefixed) name.

Specified by:
getType in interface AttributeList
Parameters:
qName - The name of the attribute.
Returns:
The type.
See Also:
AttributeList.getType(java.lang.String)

getValue

public java.lang.String getValue(java.lang.String qName)
Return the value of an attribute by qualified (prefixed) name.

Specified by:
getValue in interface AttributeList
Returns:
The value.
See Also:
AttributeList.getValue(java.lang.String)


Copyright © 1999 The Apache Software Foundation. All Rights reserved.