| org.exolab.castor.xml.AttributeSet
All known Subclasses: org.exolab.castor.xml.util.AttributeSetImpl,
AttributeSet | public interface AttributeSet (Code) | | A simple interface for handling Attributes in the Marshalling
Framework.
author: Keith Visco version: $Revision: 5951 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $ |
Method Summary | |
public int | getIndex(String name, String namespace) Returns the index of the attribute associated with the given name
and namespace. | public String | getName(int index) Returns the name of the attribute located at the given index.
Parameters: index - the index of the attribute whose name should be returned. | public String | getNamespace(int index) Returns the namespace of the attribute located at the given index. | public int | getSize() Returns the number of Attributes within this AttributeSet. | public String | getValue(int index) Returns the value of the attribute located at the given index
within this AttributeSet. | public String | getValue(String name) Returns the value of the attribute associated with the given name. | public String | getValue(String name, String namespace) Returns the value of the attribute associated with the given name. |
getIndex | public int getIndex(String name, String namespace)(Code) | | Returns the index of the attribute associated with the given name
and namespace.
Parameters: name - the name of the attribute whose value should be returned. Parameters: namespace - the namespace of the attribute the index of the attribute, or -1 if not found. |
getName | public String getName(int index)(Code) | | Returns the name of the attribute located at the given index.
Parameters: index - the index of the attribute whose name should be returned. the name of the attribute located at the given index. |
getNamespace | public String getNamespace(int index)(Code) | | Returns the namespace of the attribute located at the given index.
the namespace of the attribute located at the given index. |
getSize | public int getSize()(Code) | | Returns the number of Attributes within this AttributeSet.
the number of Attributes within this AttributeSet. |
getValue | public String getValue(int index)(Code) | | Returns the value of the attribute located at the given index
within this AttributeSet.
Parameters: index - the index of the attribute whose value should be returned. |
getValue | public String getValue(String name)(Code) | | Returns the value of the attribute associated with the given name.
This method is equivalent to call #getValue(name, null);
Parameters: name - the name of the attribute whose value should be returned. |
getValue | public String getValue(String name, String namespace)(Code) | | Returns the value of the attribute associated with the given name.
This method is equivalent to call #getValue(name, null);
Parameters: name - the name of the attribute whose value should be returned. Parameters: namespace - the namespace of the attribute |
|
|