public class AttributeInitializer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String[] |
keys
The list of namespaces, prefixes and names.
|
protected int |
length
The length of keys.
|
protected DoublyIndexedTable |
values
The attribute values table.
|
| Constructor and Description |
|---|
AttributeInitializer(int capacity)
Creates a new AttributeInitializer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(java.lang.String ns,
java.lang.String prefix,
java.lang.String ln,
java.lang.String val)
Adds a default attribute value to the initializer.
|
void |
initializeAttributes(AbstractElement elt)
Initializes the attributes of the given element.
|
boolean |
resetAttribute(AbstractElement elt,
java.lang.String ns,
java.lang.String prefix,
java.lang.String ln)
Resets an attribute of the given element to its default value.
|
protected java.lang.String[] keys
protected int length
protected DoublyIndexedTable values
public AttributeInitializer(int capacity)
public void addAttribute(java.lang.String ns,
java.lang.String prefix,
java.lang.String ln,
java.lang.String val)
ns - The attribute namespace URI.prefix - The attribute's name prefix, or null.ln - The attribute's local name.val - The attribute's default value.public void initializeAttributes(AbstractElement elt)
public boolean resetAttribute(AbstractElement elt, java.lang.String ns, java.lang.String prefix, java.lang.String ln)
elt - The element to modify.ns - The attribute namespace URI.prefix - The attribute's name prefix.ln - The attribute's local name.Copyright ? 2009 Apache Software Foundation. All Rights Reserved.