org.apache.batik.dom.svg
public abstract class AbstractElement extends AbstractElement implements NodeEventTarget, CSSNavigableNode, SVGConstants
Nested Class Summary | |
---|---|
protected class | AbstractElement.ExtendedNamedNodeHashMap
An implementation of the NamedNodeMap. |
Field Summary | |
---|---|
protected DoublyIndexedTable | liveAttributeValues
The live attribute values. |
Constructor Summary | |
---|---|
protected | AbstractElement()
Creates a new Element object. |
protected | AbstractElement(String prefix, AbstractDocument owner)
Creates a new Element 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 NamedNodeMap | createAttributes()
Creates the attribute list. |
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) |
protected AttributeInitializer | getAttributeInitializer()
Returns the AttributeInitializer for this element type. |
Node | getCSSFirstChild()
Returns the CSS first child node of this node. |
Node | getCSSLastChild()
Returns the CSS last child of this node. |
Node | getCSSNextSibling()
Returns the CSS next sibling node of this node. |
Node | getCSSParentNode()
Returns the CSS parent node of this node. |
Node | getCSSPreviousSibling()
Returns the CSS previous sibling node of this node. |
LiveAttributeValue | getLiveAttributeValue(String ns, String ln)
Returns the live attribute value associated with given
attribute, if any. |
protected void | initializeAttributes()
Initializes the attributes of this element to their default value. |
boolean | isHiddenFromSelectors()
Returns whether this node is the root of a (conceptual) hidden tree
that selectors will not work across. |
void | putLiveAttributeValue(String ns, String ln, LiveAttributeValue val)
Associates a live attribute value to this element. |
protected boolean | resetAttribute(String ns, String prefix, String ln)
Resets an attribute to the default value. |
void | setUnspecifiedAttribute(String nsURI, String name, String value)
Sets an unspecified attribute. |
Parameters: prefix The namespace prefix. owner The owner document.
Returns: null if this element has no attribute with a default value.
Parameters: ns The attribute's namespace. ln The attribute's local name.
Parameters: ns The attribute's namespace. ln The attribute's local name. val The live value.
Returns: true if a default value is known for the given attribute.
Parameters: nsURI The attribute namespace URI. name The attribute's qualified name. value The attribute's default value.