org.apache.batik.extension
Class ExtensionElement

java.lang.Object
  |
  +--org.apache.batik.dom.AbstractNode
        |
        +--org.apache.batik.dom.AbstractParentNode
              |
              +--org.apache.batik.dom.AbstractParentChildNode
                    |
                    +--org.apache.batik.dom.AbstractElement
                          |
                          +--org.apache.batik.extension.ExtensionElement
All Implemented Interfaces:
Element, ElementWithID, ElementWithPseudoClass, EventTarget, ExtendedNode, HiddenChildElement, Node, NodeEventTarget, java.io.Serializable
Direct Known Subclasses:
StylableExtensionElement

public abstract class ExtensionElement
extends AbstractElement
implements ElementWithID, ElementWithPseudoClass, HiddenChildElement

This class implements the basic features an element must have in order to be usable as a foreign element within an SVGOMDocument.

See Also:
Serialized Form

Inner classes inherited from class org.apache.batik.dom.AbstractElement
AbstractElement.Entry, AbstractElement.NamedNodeHashMap
 
Inner classes inherited from class org.apache.batik.dom.AbstractParentNode
AbstractParentNode.ChildNodes, AbstractParentNode.Nodes
 
Field Summary
protected static java.lang.String ID_NAME
          The element ID attribute name.
protected  Element parentElement
          The parent element.
 
Fields inherited from class org.apache.batik.dom.AbstractElement
attributes
 
Fields inherited from class org.apache.batik.dom.AbstractParentChildNode
nextSibling, parentNode, previousSibling
 
Fields inherited from class org.apache.batik.dom.AbstractParentNode
childNodes
 
Fields inherited from class org.apache.batik.dom.AbstractNode
EMPTY_NODE_LIST, eventSupport, ownerDocument
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
protected ExtensionElement()
          Creates a new Element object.
protected ExtensionElement(java.lang.String name, AbstractDocument owner)
          Creates a new Element object.
 
Method Summary
 java.lang.String getID()
          Returns the ID of this element or the empty string.
 Element getParentElement()
          The parent element of this element.
 boolean isReadonly()
          Tests whether this node is readonly.
 boolean matchPseudoClass(java.lang.String pseudoClass)
          Whether this element matches the given pseudo-class.
 void setIDName(java.lang.String uri, java.lang.String s)
          Sets the element ID attribute name.
 void setParentElement(Element elt)
          Sets the parent element.
 void setReadonly(boolean v)
          Sets this node readonly attribute.
 
Methods inherited from class org.apache.batik.dom.AbstractElement
checkChildType, copyInto, createAttributes, deepCopyInto, deepExport, export, fireDOMAttrModifiedEvent, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeType, getTagName, hasAttribute, hasAttributeNS, hasAttributes, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS
 
Methods inherited from class org.apache.batik.dom.AbstractParentChildNode
getNextSibling, getParentNode, getPreviousSibling, setNextSibling, setParentNode, setPreviousSibling
 
Methods inherited from class org.apache.batik.dom.AbstractParentNode
appendChild, checkAndRemove, fireDOMNodeInsertedEvent, fireDOMNodeInsertedIntoDocumentEvent, fireDOMNodeRemovedEvent, fireDOMNodeRemovedFromDocumentEvent, fireDOMSubtreeModifiedEvent, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getLastChild, hasChildNodes, insertBefore, removeChild, replaceChild
 
Methods inherited from class org.apache.batik.dom.AbstractNode
addEventListener, cloneNode, createDOMException, dispatchEvent, fireDOMCharacterDataModifiedEvent, getCurrentDocument, getEventSupport, getLocalName, getNamespaceURI, getNodeValue, getOwnerDocument, getParentNodeEventTarget, getPrefix, isSupported, newNode, removeEventListener, setNodeName, setNodeValue, setOwnerDocument, setPrefix, setSpecified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasChildNodes, insertBefore, isSupported, removeChild, replaceChild, setNodeValue, setPrefix
 

Field Detail

ID_NAME

protected static final java.lang.String ID_NAME
The element ID attribute name.

parentElement

protected transient Element parentElement
The parent element.
Constructor Detail

ExtensionElement

protected ExtensionElement()
Creates a new Element object.

ExtensionElement

protected ExtensionElement(java.lang.String name,
                           AbstractDocument owner)
Creates a new Element object.
Parameters:
name - The element name, for validation purposes.
owner - The owner document.
Method Detail

getParentElement

public Element getParentElement()
The parent element of this element.
Specified by:
getParentElement in interface HiddenChildElement

setParentElement

public void setParentElement(Element elt)
Sets the parent element.
Specified by:
setParentElement in interface HiddenChildElement

isReadonly

public boolean isReadonly()
Tests whether this node is readonly.

setReadonly

public void setReadonly(boolean v)
Sets this node readonly attribute.

setIDName

public void setIDName(java.lang.String uri,
                      java.lang.String s)
Sets the element ID attribute name.
Specified by:
setIDName in interface ElementWithID
Parameters:
uri - The namespace uri.
s - The attribute local name.

getID

public java.lang.String getID()
Returns the ID of this element or the empty string.
Specified by:
getID in interface ElementWithID

matchPseudoClass

public boolean matchPseudoClass(java.lang.String pseudoClass)
Whether this element matches the given pseudo-class. This methods supports the :first-child pseudo class.
Specified by:
matchPseudoClass in interface ElementWithPseudoClass


Copyright © 2001 Apache Software Foundation. All Rights Reserved.