org.exolab.castor.xml

Interface AttributeSet

public interface AttributeSet

A simple interface for handling Attributes in the Marshalling Framework.

Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:08 $

Author: Keith Visco

Method Summary
intgetIndex(String name, String namespace)
Returns the index of the attribute associated with the given name and namespace.
StringgetName(int index)
Returns the name of the attribute located at the given index.
StringgetNamespace(int index)
Returns the namespace of the attribute located at the given index.
intgetSize()
Returns the number of Attributes within this AttributeSet.
StringgetValue(int index)
Returns the value of the attribute located at the given index within this AttributeSet.
StringgetValue(String name)
Returns the value of the attribute associated with the given name.
StringgetValue(String name, String namespace)
Returns the value of the attribute associated with the given name.

Method Detail

getIndex

public int getIndex(String name, String namespace)
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

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.

Returns: the name of the attribute located at the given index.

getNamespace

public String getNamespace(int index)
Returns the namespace of the attribute located at the given index.

Returns: the namespace of the attribute located at the given index.

getSize

public int getSize()
Returns the number of Attributes within this AttributeSet.

Returns: the number of Attributes within this AttributeSet.

getValue

public String getValue(int index)
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)
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)
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

Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com