org.exolab.castor.xml.util
public class AttributeSetImpl extends Object implements AttributeSet
Version: $Revision: 5951 $ $Date: 2006-04-13 06:47:36 -0600 (Thu, 13 Apr 2006) $
Nested Class Summary | |
---|---|
class | AttributeSetImpl.Attribute
A representation of an Attribute
|
Field Summary | |
---|---|
static String | XMLNS
The XML namespace declaration prefix.
|
Constructor Summary | |
---|---|
AttributeSetImpl()
Creates a new AttributeSetImpl
| |
AttributeSetImpl(int size)
Creates a new AttributeSetImpl
|
Method Summary | |
---|---|
void | clear()
Removes all Attributes in this AttributeSetImpl
|
int | getIndex(String name, String namespace)
Returns the index of the attribute associated with the given name
and namespace.
|
String | getName(int index)
Returns the name of the attribute located at the given index.
|
String | getNamespace(int index)
Returns the namespace of the attribute located at the given index.
|
int | getSize()
Returns the number of Attributes within this AttributeSet.
|
String | getValue(int index)
Returns the value of the attribute located at the given index
within this AttributeSet.
|
String | getValue(String name)
Returns the value of the attribute associated with the given name.
|
String | getValue(String name, String namespace)
Returns the value of the attribute associated with the given name.
|
void | setAttribute(String name, String value)
Adds or replaces the attribute with the given name.
|
void | setAttribute(String name, String value, String namespace)
Adds or replaces the attribute with the given name.
|
Parameters: size the default size for this AttributeSetImpl
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.
Parameters: index the index of the attribute whose name should be returned.
Returns: the name of the attribute located at the given index.
Returns: the namespace of the attribute located at the given index.
Returns: the number of Attributes within this AttributeSet.
Parameters: index the index of the attribute whose value should be returned.
Parameters: name the name of the attribute whose value should be returned.
Parameters: name the name of the attribute whose value should be returned. namespace the namespace of the attribute
Parameters: name the name of the attribute value the attribute value.
Parameters: name the name of the attribute value the attribute value.