Package org.exolab.castor.xml.util
Class AttributeListWrapper
java.lang.Object
org.exolab.castor.xml.util.AttributeListWrapper
- All Implemented Interfaces:
AttributeList
A class which implements AttributeList by "wrapping" a DOM NamedNodeMap.
XSLReader when reading an XSLT stylsheet.
- Version:
- $Revision: 6671 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
- Author:
- Keith Visco
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of attributes in the list.getName
(int i) Returns the name of the attribute at the given index.getType
(int i) Returns the type of the attribute at the specified index.Return the type of the attribute with the given name.getValue
(int i) Return the value of the attribute at the specified indexGet the value of an attribute (by name).
-
Constructor Details
-
AttributeListWrapper
-
-
Method Details
-
getLength
public int getLength()Returns the number of attributes in the list.- Specified by:
getLength
in interfaceAttributeList
- Returns:
- The number of attributes in the list.
-
getName
Returns the name of the attribute at the given index.- Specified by:
getName
in interfaceAttributeList
- 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.
-
getType
Returns the type of the attribute at the specified index.- Specified by:
getType
in interfaceAttributeList
- 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.
-
getValue
Return the value of the attribute at the specified index- Specified by:
getValue
in interfaceAttributeList
- 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.
-
getType
Return the type of the attribute with the given name.- Specified by:
getType
in interfaceAttributeList
- 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.
-
getValue
Get the value of an attribute (by name).- Specified by:
getValue
in interfaceAttributeList
- Parameters:
name
- The attribute name.- See Also:
-