org.apache.batik.dom
public abstract class AbstractElement extends AbstractParentChildNode implements Element
Nested Class Summary | |
---|---|
class | AbstractElement.ElementTypeInfo
Inner class to hold type information about this element. |
protected static class | AbstractElement.Entry
To manage collisions in the attributes map.
|
class | AbstractElement.NamedNodeHashMap
An implementation of the {@link org.w3c.dom.NamedNodeMap}.
|
Field Summary | |
---|---|
protected NamedNodeMap | attributes
The attributes of this element. |
protected TypeInfo | typeInfo
The element type information. |
Constructor Summary | |
---|---|
protected | AbstractElement()
Creates a new AbstractElement object. |
protected | AbstractElement(String name, AbstractDocument owner)
Creates a new AbstractElement object. |
Method Summary | |
---|---|
protected void | attrAdded(Attr node, String newv)
Called when an attribute has been added. |
protected void | attrModified(Attr node, String oldv, String newv)
Called when an attribute has been modified. |
protected void | attrRemoved(Attr node, String oldv)
Called when an attribute has been removed. |
protected void | checkChildType(Node n, boolean replace)
Checks the validity of a node to be inserted. |
protected Node | copyInto(Node n)
Copy the fields of the current node into the given node. |
protected NamedNodeMap | createAttributes()
Creates the attribute list. |
protected Node | deepCopyInto(Node n)
Deeply copy the fields of the current node into the given node. |
protected Node | deepExport(Node n, AbstractDocument d)
Deeply exports this node to the given document. |
protected Node | export(Node n, AbstractDocument d)
Exports this node to the given document. |
void | fireDOMAttrModifiedEvent(String name, Attr node, String oldv, String newv, short change)
Fires a DOMAttrModified event.
|
String | getAttribute(String name)
DOM: Implements {@link org.w3c.dom.Element#getAttribute(String)}. |
Attr | getAttributeNode(String name)
DOM: Implements {@link
org.w3c.dom.Element#getAttributeNode(String)}. |
Attr | getAttributeNodeNS(String namespaceURI, String localName)
DOM: Implements {@link
org.w3c.dom.Element#getAttributeNodeNS(String,String)}. |
String | getAttributeNS(String namespaceURI, String localName)
DOM: Implements {@link
org.w3c.dom.Element#getAttributeNS(String,String)}. |
NamedNodeMap | getAttributes()
DOM: Implements {@link org.w3c.dom.Node#getAttributes()}. |
protected String | getId()
Get the ID of this element. |
protected Attr | getIdAttribute()
Get an ID attribute. |
short | getNodeType()
DOM: Implements {@link org.w3c.dom.Node#getNodeType()}.
|
TypeInfo | getSchemaTypeInfo()
DOM: Implements {@link org.w3c.dom.Element#getSchemaTypeInfo()}. |
String | getTagName()
DOM: Implements {@link org.w3c.dom.Element#getTagName()}.
|
boolean | hasAttribute(String name)
DOM: Implements {@link org.w3c.dom.Element#hasAttribute(String)}. |
boolean | hasAttributeNS(String namespaceURI, String localName)
DOM: Implements {@link
org.w3c.dom.Element#hasAttributeNS(String,String)}. |
boolean | hasAttributes()
DOM: Implements {@link org.w3c.dom.Node#hasAttributes()}. |
protected void | nodeAdded(Node node)
Called when a child node has been added. |
protected void | nodeToBeRemoved(Node node)
Called when a child node is going to be removed. |
void | normalize()
DOM: Implements {@link org.w3c.dom.Node#normalize()}. |
void | removeAttribute(String name)
DOM: Implements {@link
org.w3c.dom.Element#removeAttribute(String)}. |
Attr | removeAttributeNode(Attr oldAttr)
DOM: Implements {@link
org.w3c.dom.Element#removeAttributeNode(Attr)}. |
void | removeAttributeNS(String namespaceURI, String localName)
DOM: Implements {@link
org.w3c.dom.Element#removeAttributeNS(String,String)}. |
void | setAttribute(String name, String value)
DOM: Implements {@link
org.w3c.dom.Element#setAttribute(String,String)}. |
Attr | setAttributeNode(Attr newAttr)
DOM: Implements {@link
org.w3c.dom.Element#setAttributeNode(Attr)}. |
Attr | setAttributeNodeNS(Attr newAttr)
DOM: Implements {@link
org.w3c.dom.Element#setAttributeNodeNS(Attr)}. |
void | setAttributeNS(String namespaceURI, String qualifiedName, String value)
DOM: Implements {@link
org.w3c.dom.Element#setAttributeNS(String,String,String)}. |
void | setIdAttribute(String name, boolean isId)
DOM: Implements
{@link org.w3c.dom.Element#setIdAttribute(String,boolean)}. |
void | setIdAttributeNode(Attr attr, boolean isId)
DOM: Implements
{@link org.w3c.dom.Element#setIdAttributeNode(Attr,boolean)}. |
void | setIdAttributeNS(String ns, String ln, boolean isId)
DOM: Implements
{@link org.w3c.dom.Element#setIdAttributeNS(String,String,boolean)}. |
Parameters: name The element name for validation purposes. owner The owner document.
Throws: DOMException INVALID_CHARACTER_ERR: if name contains invalid characters,
Parameters: n The node to be inserted.
Parameters: n a node of the type of this.
Parameters: n a node of the type of this.
Parameters: n The clone node. d The destination document.
Parameters: n The clone node. d The destination document.
Parameters: name The attribute's name. node The attribute's node. oldv The old value of the attribute. newv The new value of the attribute. change The modification type.
Returns: {@link org.w3c.dom.Node#ELEMENT_NODE}
Returns: {@link #getNodeName()}.