Public Member Functions | Package Attributes

org.exolab.castor.xml.util.AttributeListWrapper Class Reference

Inherits org::xml::sax::AttributeList.

List of all members.

Public Member Functions

 AttributeListWrapper (NamedNodeMap namedNodeMap)
int getLength ()
String getName (int i)
String getType (int i)
String getValue (int i)
String getType (String name)
String getValue (String name)

Package Attributes

NamedNodeMap _map = null

Detailed Description

A class which implements AttributeList by "wrapping" a DOM NamedNodeMap. XSLReader when reading an XSLT stylsheet.

Author:
Keith Visco
Version:
Revision:
1.1.1.1
Date:
2003/03/03 07:09:47

Constructor & Destructor Documentation

org.exolab.castor.xml.util.AttributeListWrapper.AttributeListWrapper ( NamedNodeMap  namedNodeMap  ) 

Member Function Documentation

int org.exolab.castor.xml.util.AttributeListWrapper.getLength (  ) 

Returns the number of attributes in the list.

Returns:
The number of attributes in the list.

References org.exolab.castor.xml.util.AttributeListWrapper._map.

String org.exolab.castor.xml.util.AttributeListWrapper.getName ( int  i  ) 

Returns the name of the attribute at the given index.

Parameters:
i The position of the attribute in the list.
Returns:
The attribute name as a string, or null if there is no attribute at that position.

References org.exolab.castor.xml.util.AttributeListWrapper._map.

String org.exolab.castor.xml.util.AttributeListWrapper.getType ( String  name  ) 

Return the type of the attribute with the given name.

Parameters:
name The attribute name.
Returns:
The attribute type as a string ("NMTOKEN" for an enumeration, and "CDATA" if no declaration was read).
Note: Not supported, will simply return null.
String org.exolab.castor.xml.util.AttributeListWrapper.getType ( int  i  ) 

Returns the type of the attribute at the specified index.

Parameters:
i The position of the attribute in the list.
Returns:
The attribute type as a string ("NMTOKEN" for an enumeration, and "CDATA" if no declaration was read), or null if there is no attribute at that position.
Note: Not supported, will simply return null.
String org.exolab.castor.xml.util.AttributeListWrapper.getValue ( int  i  ) 

Return the value of the attribute at the specified index

Parameters:
i The position of the attribute in the list.
Returns:
The attribute value as a string, or null if there is no attribute at that position.

References org.exolab.castor.xml.util.AttributeListWrapper._map.

String org.exolab.castor.xml.util.AttributeListWrapper.getValue ( String  name  ) 

Get the value of an attribute (by name).

Parameters:
name The attribute name.
See also:
org.xml.sax.AttributeList.getValue(java.lang.String)

References org.exolab.castor.xml.util.AttributeListWrapper._map.


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties