org.exolab.castor.xml.util
Class AttributeListWrapper
java.lang.Object
org.exolab.castor.xml.util.AttributeListWrapper
- AttributeList
public class AttributeListWrapper
extends java.lang.Object
implements AttributeList
A class which implements AttributeList by "wrapping" a DOM
NamedNodeMap.
XSLReader when reading an XSLT stylsheet.
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:47 $(package private) NamedNodeMap | _map
|
int | getLength() - Returns the number of attributes in the list.
|
String | getName(int i) - Returns the name of the attribute at the given index.
|
String | getType(String name) - Return the type of the attribute with the given name.
|
String | getType(int i) - Returns the type of the attribute at the specified index.
|
String | getValue(String name) - Get the value of an attribute (by name).
|
String | getValue(int i) - Return the value of the attribute at the specified index
|
_map
(package private) NamedNodeMap _map
AttributeListWrapper
public AttributeListWrapper(NamedNodeMap namedNodeMap)
getLength
public int getLength()
Returns the number of attributes in the list.
- The number of attributes in the list.
getName
public String getName(int i)
Returns the name of the attribute at the given index.
i
- The position of the attribute in the list.
- The attribute name as a string, or null if there
is no attribute at that position.
getType
public String getType(String name)
Return the type of the attribute with the given name.
name
- The attribute name.
- The attribute type as a string ("NMTOKEN" for an
enumeration, and "CDATA" if no declaration was
read).
Note: Not supported, will simply return null.
getType
public String getType(int i)
Returns the type of the attribute at the specified index.
i
- The position of the attribute in the list.
- 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.
getValue
public String getValue(String name)
Get the value of an attribute (by name).
name
- The attribute name.
org.xml.sax.AttributeList.getValue(java.lang.String)
getValue
public String getValue(int i)
Return the value of the attribute at the specified index
i
- The position of the attribute in the list.
- The attribute value as a string, or null if
there is no attribute at that position.
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com