Package org.exolab.castor.xml
Interface AttributeSet
- All Known Implementing Classes:
AttributeSetImpl
public interface AttributeSet
A simple interface for handling Attributes in the Marshalling
Framework.
- Version:
- $Revision: 5951 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
- Author:
- Keith Visco
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the index of the attribute associated with the given name and namespace.getName
(int index) Returns the name of the attribute located at the given index.getNamespace
(int index) Returns the namespace of the attribute located at the given index.int
getSize()
Returns the number of Attributes within this AttributeSet.getValue
(int index) Returns the value of the attribute located at the given index within this AttributeSet.Returns the value of the attribute associated with the given name.Returns the value of the attribute associated with the given name.
-
Method Details
-
getIndex
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.namespace
- the namespace of the attribute- Returns:
- the index of the attribute, or -1 if not found.
-
getName
Returns the name of the attribute located at the given index.- Parameters:
index
- the index of the attribute whose name should be returned.- Returns:
- the name of the attribute located at the given index.
-
getNamespace
Returns the namespace of the attribute located at the given index.- Returns:
- the namespace of the attribute located at the given index.
-
getSize
int getSize()Returns the number of Attributes within this AttributeSet.- Returns:
- the number of Attributes within this AttributeSet.
-
getValue
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
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
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.namespace
- the namespace of the attribute
-