Class AttributeInitializer
java.lang.Object
org.apache.batik.anim.dom.AttributeInitializer
This class is used by elements to initialize and reset their attributes.
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]The list of namespaces, prefixes and names.protected intThe length of keys.protected DoublyIndexedTableThe attribute values table. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(String ns, String prefix, String ln, String val) Adds a default attribute value to the initializer.voidInitializes the attributes of the given element.booleanresetAttribute(AbstractElement elt, String ns, String prefix, String ln) Resets an attribute of the given element to its default value.
-
Field Details
-
keys
The list of namespaces, prefixes and names. -
length
protected int lengthThe length of keys. -
values
The attribute values table.
-
-
Constructor Details
-
AttributeInitializer
public AttributeInitializer(int capacity) Creates a new AttributeInitializer.
-
-
Method Details
-
addAttribute
-
initializeAttributes
Initializes the attributes of the given element. -
resetAttribute
Resets an attribute of the given element to its default value.- Parameters:
elt- The element to modify.ns- The attribute namespace URI.prefix- The attribute's name prefix.ln- The attribute's local name.- Returns:
- true if a default value is known for the given attribute and if it was resetted.
-