|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.anim.dom.AttributeInitializer
public class AttributeInitializer
This class is used by elements to initialize and reset their attributes.
| Field Summary | |
|---|---|
protected String[] |
keys
The list of namespaces, prefixes and names. |
protected int |
length
The length of keys. |
protected DoublyIndexedTable |
values
The attribute values table. |
| Constructor Summary | |
|---|---|
AttributeInitializer(int capacity)
Creates a new AttributeInitializer. |
|
| Method Summary | |
|---|---|
void |
addAttribute(String ns,
String prefix,
String ln,
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,
String ns,
String prefix,
String ln)
Resets an attribute of the given element to its default value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String[] keys
protected int length
protected DoublyIndexedTable values
| Constructor Detail |
|---|
public AttributeInitializer(int capacity)
| Method Detail |
|---|
public void addAttribute(String ns,
String prefix,
String ln,
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,
String ns,
String prefix,
String ln)
elt - The element to modify.ns - The attribute namespace URI.prefix - The attribute's name prefix.ln - The attribute's local name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||