Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.batik.dom.svg
Class AbstractElement  view AbstractElement download AbstractElement.java

java.lang.Object
  extended byorg.apache.batik.dom.AbstractNode
      extended byorg.apache.batik.dom.AbstractParentNode
          extended byorg.apache.batik.dom.AbstractParentChildNode
              extended byorg.apache.batik.dom.AbstractElement
                  extended byorg.apache.batik.dom.svg.AbstractElement
All Implemented Interfaces:
org.w3c.dom.Element, org.w3c.dom.events.EventTarget, org.apache.batik.dom.ExtendedNode, org.w3c.dom.Node, org.apache.batik.dom.events.NodeEventTarget, java.io.Serializable
Direct Known Subclasses:
SVGOMElement

public abstract class AbstractElement
extends org.apache.batik.dom.AbstractElement
implements org.apache.batik.dom.events.NodeEventTarget

This class provides a superclass to implement an SVG element, or an element interoperable with the SVG elements.

Version:
$Id: AbstractElement.java,v 1.11 2004/08/18 07:13:13 vhardy Exp $

Nested Class Summary
protected  class AbstractElement.ExtendedNamedNodeHashMap
          An implementation of the org.w3c.dom.NamedNodeMap.
 
Nested classes inherited from class org.apache.batik.dom.AbstractElement
org.apache.batik.dom.AbstractElement.Entry, org.apache.batik.dom.AbstractElement.NamedNodeHashMap
 
Nested classes inherited from class org.apache.batik.dom.AbstractParentNode
org.apache.batik.dom.AbstractParentNode.ChildNodes, org.apache.batik.dom.AbstractParentNode.ElementsByTagName, org.apache.batik.dom.AbstractParentNode.ElementsByTagNameNS
 
Field Summary
protected  org.apache.batik.util.SoftDoublyIndexedTable liveAttributeValues
          The live attribute values.
 
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_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
protected AbstractElement()
          Creates a new Element object.
protected AbstractElement(java.lang.String prefix, org.apache.batik.dom.AbstractDocument owner)
          Creates a new Element object.
 
Method Summary
protected  void attrAdded(org.w3c.dom.Attr node, java.lang.String newv)
          Called when an attribute has been added.
protected  void attrModified(org.w3c.dom.Attr node, java.lang.String oldv, java.lang.String newv)
          Called when an attribute has been modified.
protected  void attrRemoved(org.w3c.dom.Attr node, java.lang.String oldv)
          Called when an attribute has been removed.
protected  org.w3c.dom.NamedNodeMap createAttributes()
          Creates the attribute list.
protected  org.w3c.dom.Node deepExport(org.w3c.dom.Node n, org.apache.batik.dom.AbstractDocument d)
          Deeply exports this node to the given document.
protected  org.w3c.dom.Node export(org.w3c.dom.Node n, org.apache.batik.dom.AbstractDocument d)
          Exports this node to the given document.
protected  AttributeInitializer getAttributeInitializer()
          Returns the AttributeInitializer for this element type.
private  LiveAttributeValue getLiveAttributeValue(org.w3c.dom.Attr node)
          Gets Returns the live attribute value associated with given attribute, if any.
 LiveAttributeValue getLiveAttributeValue(java.lang.String ns, java.lang.String ln)
          Returns the live attribute value associated with given attribute, if any.
 org.apache.batik.dom.events.NodeEventTarget getParentNodeEventTarget()
          Implements NodeEventTarget.getParentNodeEventTarget()>NodeEventTarget.getParentNodeEventTarget() 55 .
protected  void initializeAttributes()
          Initializes the attributes of this element to their default value.
 void putLiveAttributeValue(java.lang.String ns, java.lang.String ln, LiveAttributeValue val)
          Associates a live attribute value to this element.
protected  boolean resetAttribute(java.lang.String ns, java.lang.String prefix, java.lang.String ln)
          Resets an attribute to the default value.
 void setUnspecifiedAttribute(java.lang.String nsURI, java.lang.String name, java.lang.String value)
          Sets an unspecified attribute.
 
Methods inherited from class org.apache.batik.dom.AbstractElement
checkChildType, copyInto, deepCopyInto, fireDOMAttrModifiedEvent, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getNodeType, getTagName, hasAttribute, hasAttributeNS, hasAttributes, nodeAdded, nodeToBeRemoved, 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, 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.apache.batik.dom.events.NodeEventTarget
getEventSupport
 
Methods inherited from interface org.w3c.dom.events.EventTarget
addEventListener, dispatchEvent, removeEventListener
 
Methods inherited from interface org.w3c.dom.Element
getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, setIdAttribute, setIdAttributeNode, setIdAttributeNS
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 
Methods inherited from interface org.apache.batik.dom.ExtendedNode
isReadonly, setReadonly
 

Field Detail

liveAttributeValues

protected transient org.apache.batik.util.SoftDoublyIndexedTable liveAttributeValues
The live attribute values.

Constructor Detail

AbstractElement

protected AbstractElement()
Creates a new Element object.


AbstractElement

protected AbstractElement(java.lang.String prefix,
                          org.apache.batik.dom.AbstractDocument owner)
Creates a new Element object.

Method Detail

getParentNodeEventTarget

public org.apache.batik.dom.events.NodeEventTarget getParentNodeEventTarget()
Implements NodeEventTarget.getParentNodeEventTarget()>NodeEventTarget.getParentNodeEventTarget() 55 .

Specified by:
getParentNodeEventTarget in interface org.apache.batik.dom.events.NodeEventTarget

getLiveAttributeValue

public LiveAttributeValue getLiveAttributeValue(java.lang.String ns,
                                                java.lang.String ln)
Returns the live attribute value associated with given attribute, if any.


putLiveAttributeValue

public void putLiveAttributeValue(java.lang.String ns,
                                  java.lang.String ln,
                                  LiveAttributeValue val)
Associates a live attribute value to this element.


getAttributeInitializer

protected AttributeInitializer getAttributeInitializer()
Returns the AttributeInitializer for this element type.


initializeAttributes

protected void initializeAttributes()
Initializes the attributes of this element to their default value.


resetAttribute

protected boolean resetAttribute(java.lang.String ns,
                                 java.lang.String prefix,
                                 java.lang.String ln)
Resets an attribute to the default value.


createAttributes

protected org.w3c.dom.NamedNodeMap createAttributes()
Creates the attribute list.


setUnspecifiedAttribute

public void setUnspecifiedAttribute(java.lang.String nsURI,
                                    java.lang.String name,
                                    java.lang.String value)
Sets an unspecified attribute.


attrAdded

protected void attrAdded(org.w3c.dom.Attr node,
                         java.lang.String newv)
Called when an attribute has been added.


attrModified

protected void attrModified(org.w3c.dom.Attr node,
                            java.lang.String oldv,
                            java.lang.String newv)
Called when an attribute has been modified.


attrRemoved

protected void attrRemoved(org.w3c.dom.Attr node,
                           java.lang.String oldv)
Called when an attribute has been removed.


getLiveAttributeValue

private LiveAttributeValue getLiveAttributeValue(org.w3c.dom.Attr node)
Gets Returns the live attribute value associated with given attribute, if any.


export

protected org.w3c.dom.Node export(org.w3c.dom.Node n,
                                  org.apache.batik.dom.AbstractDocument d)
Exports this node to the given document.


deepExport

protected org.w3c.dom.Node deepExport(org.w3c.dom.Node n,
                                      org.apache.batik.dom.AbstractDocument d)
Deeply exports this node to the given document.