AttributeSet
public class AttributeSetImpl extends java.lang.Object implements AttributeSet
Modifier and Type | Class | Description |
---|---|---|
(package private) class |
AttributeSetImpl.Attribute |
A representation of an Attribute
|
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
XMLNS |
The XML namespace declaration prefix.
|
Constructor | Description |
---|---|
AttributeSetImpl() |
Creates a new AttributeSetImpl.
|
AttributeSetImpl(int size) |
Creates a new AttributeSetImpl.
|
Modifier and Type | Method | Description |
---|---|---|
void |
clear() |
Removes all Attributes in this AttributeSetImpl
|
int |
getIndex(java.lang.String name,
java.lang.String namespace) |
Returns the index of the attribute associated with the given name and
namespace.
|
java.lang.String |
getName(int index) |
Returns the name of the attribute located at the given index.
|
java.lang.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.
|
java.lang.String |
getValue(int index) |
Returns the value of the attribute located at the given index within this
AttributeSet.
|
java.lang.String |
getValue(java.lang.String name) |
Returns the value of the attribute associated with the given name.
|
java.lang.String |
getValue(java.lang.String name,
java.lang.String namespace) |
Returns the value of the attribute associated with the given name.
|
void |
setAttribute(java.lang.String name,
java.lang.String value) |
Adds or replaces the attribute with the given name.
|
void |
setAttribute(java.lang.String name,
java.lang.String value,
java.lang.String namespace) |
Adds or replaces the attribute with the given name.
|
public static final java.lang.String XMLNS
public AttributeSetImpl()
public AttributeSetImpl(int size)
size
- the default size for this AttributeSetImplpublic void clear()
public int getIndex(java.lang.String name, java.lang.String namespace)
getIndex
in interface AttributeSet
name
- the name of the attribute whose value should be returned.namespace
- the namespace of the attributepublic java.lang.String getName(int index)
getName
in interface AttributeSet
index
- the index of the attribute whose name should be returned.public java.lang.String getNamespace(int index)
getNamespace
in interface AttributeSet
public int getSize()
getSize
in interface AttributeSet
public java.lang.String getValue(int index)
getValue
in interface AttributeSet
index
- the index of the attribute whose value should be returned.public java.lang.String getValue(java.lang.String name)
getValue
in interface AttributeSet
name
- the name of the attribute whose value should be returned.public java.lang.String getValue(java.lang.String name, java.lang.String namespace)
getValue
in interface AttributeSet
name
- the name of the attribute whose value should be returned.namespace
- the namespace of the attributepublic void setAttribute(java.lang.String name, java.lang.String value)
name
- the name of the attributevalue
- the attribute value.public void setAttribute(java.lang.String name, java.lang.String value, java.lang.String namespace)
name
- the name of the attributevalue
- the attribute value.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com