|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.dom.AbstractNode
org.apache.batik.dom.AbstractParentNode
org.apache.batik.dom.AbstractDocument
This class implements the Document
interface.
Nested Class Summary |
Nested classes inherited from class org.apache.batik.dom.AbstractParentNode |
AbstractParentNode.ChildNodes, AbstractParentNode.ElementsByTagName, AbstractParentNode.ElementsByTagNameNS |
Field Summary | |
protected DocumentEventSupport |
documentEventSupport
The DocumentEventSupport. |
protected java.util.WeakHashMap |
elementsByTagNames
The ElementsByTagName lists. |
protected java.util.WeakHashMap |
elementsByTagNamesNS
The ElementsByTagNameNS lists. |
protected boolean |
eventsEnabled
Whether the event dispatching must be done. |
protected org.w3c.dom.DOMImplementation |
implementation
The DOM implementation. |
protected LocalizableSupport |
localizableSupport
The localizable support for the error messages. |
protected static java.lang.String |
RESOURCES
The error messages bundle class name. |
protected TraversalSupport |
traversalSupport
The traversal support. |
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 |
AbstractDocument()
Creates a new document. |
protected |
AbstractDocument(org.w3c.dom.DOMImplementation impl)
Creates a new document. |
Method Summary | |
protected void |
checkChildType(org.w3c.dom.Node n,
boolean replace)
Checks the validity of a node to be inserted. |
org.w3c.dom.Node |
cloneNode(boolean deep)
DOM: Implements Node.cloneNode(boolean) . |
protected org.w3c.dom.Node |
copyInto(org.w3c.dom.Node n)
Copy the fields of the current node into the given node. |
org.w3c.dom.events.Event |
createEvent(java.lang.String eventType)
DOM: Implements DocumentEvent.createEvent(String) . |
org.w3c.dom.traversal.NodeIterator |
createNodeIterator(org.w3c.dom.Node root,
int whatToShow,
org.w3c.dom.traversal.NodeFilter filter,
boolean entityReferenceExpansion)
DOM: Implements DocumentTraversal.createNodeIterator(Node,int,NodeFilter,boolean) . |
org.w3c.dom.traversal.TreeWalker |
createTreeWalker(org.w3c.dom.Node root,
int whatToShow,
org.w3c.dom.traversal.NodeFilter filter,
boolean entityReferenceExpansion)
DOM: Implements DocumentTraversal.createTreeWalker(Node,int,NodeFilter,boolean) . |
protected org.w3c.dom.Node |
deepCopyInto(org.w3c.dom.Node n)
Deeply copy the fields of the current node into the given node. |
protected org.w3c.dom.Node |
deepExport(org.w3c.dom.Node n,
org.w3c.dom.Document d)
Deeply exports this node to the given document. |
void |
detachNodeIterator(org.w3c.dom.traversal.NodeIterator it)
Detaches the given node iterator from this document. |
protected org.w3c.dom.Node |
export(org.w3c.dom.Node n,
org.w3c.dom.Document d)
Exports this node to the given document. |
java.lang.String |
formatMessage(java.lang.String key,
java.lang.Object[] args)
Implements Localizable.formatMessage(String,Object[]) . |
protected AbstractDocument |
getCurrentDocument()
Returns the current document. |
org.w3c.dom.DocumentType |
getDoctype()
DOM: Implements Document.getDoctype() . |
org.w3c.dom.Element |
getDocumentElement()
DOM: Implements Document.getDocumentElement() . |
AbstractParentNode.ElementsByTagName |
getElementsByTagName(org.w3c.dom.Node n,
java.lang.String ln)
Returns an ElementsByTagName object from the cache, if any. |
AbstractParentNode.ElementsByTagNameNS |
getElementsByTagNameNS(org.w3c.dom.Node n,
java.lang.String ns,
java.lang.String ln)
Returns an ElementsByTagNameNS object from the cache, if any. |
boolean |
getEventsEnabled()
Tests whether the event dispatching must be done. |
org.w3c.dom.DOMImplementation |
getImplementation()
DOM: Implements Document.getImplementation() . |
java.util.Locale |
getLocale()
Implements Localizable.getLocale() . |
java.lang.String |
getNodeName()
DOM: Implements Node.getNodeName() . |
short |
getNodeType()
DOM: Implements Node.getNodeType() . |
org.w3c.dom.Node |
importNode(org.w3c.dom.Node importedNode,
boolean deep)
DOM: Implements Document.importNode(Node,boolean) . |
void |
nodeToBeRemoved(org.w3c.dom.Node node)
Notifies this document that a node will be removed. |
void |
putElementsByTagName(org.w3c.dom.Node n,
java.lang.String ln,
AbstractParentNode.ElementsByTagName l)
Puts an ElementsByTagName object in the cache. |
void |
putElementsByTagNameNS(org.w3c.dom.Node n,
java.lang.String ns,
java.lang.String ln,
AbstractParentNode.ElementsByTagNameNS l)
Puts an ElementsByTagNameNS object in the cache. |
void |
setDoctype(org.w3c.dom.DocumentType dt)
Sets the document type node. |
void |
setEventsEnabled(boolean b)
Sets the eventsEnabled property. |
void |
setLocale(java.util.Locale l)
Implements Localizable.setLocale(Locale) . |
Methods inherited from class org.apache.batik.dom.AbstractParentNode |
appendChild, checkAndRemove, deepExport, fireDOMNodeInsertedEvent, fireDOMNodeInsertedIntoDocumentEvent, fireDOMNodeRemovedEvent, fireDOMNodeRemovedFromDocumentEvent, fireDOMSubtreeModifiedEvent, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getLastChild, hasChildNodes, insertBefore, nodeAdded, normalize, removeChild, replaceChild |
Methods inherited from class org.apache.batik.dom.AbstractNode |
addEventListener, createDOMException, dispatchEvent, export, fireDOMCharacterDataModifiedEvent, getAttributes, getEventSupport, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getParentNodeEventTarget, getPrefix, getPreviousSibling, hasAttributes, isSupported, newNode, removeEventListener, setNextSibling, setNodeName, setNodeValue, setOwnerDocument, setParentNode, setPrefix, setPreviousSibling, 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.Document |
createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, getElementById, getElementsByTagName, getElementsByTagNameNS |
Methods inherited from interface org.w3c.dom.Node |
appendChild, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Methods inherited from interface org.apache.batik.dom.ExtendedNode |
isReadonly, setReadonly |
Field Detail |
protected static final java.lang.String RESOURCES
protected transient LocalizableSupport localizableSupport
protected transient org.w3c.dom.DOMImplementation implementation
protected transient TraversalSupport traversalSupport
protected transient DocumentEventSupport documentEventSupport
protected transient boolean eventsEnabled
protected transient java.util.WeakHashMap elementsByTagNames
protected transient java.util.WeakHashMap elementsByTagNamesNS
Constructor Detail |
protected AbstractDocument()
protected AbstractDocument(org.w3c.dom.DOMImplementation impl)
Method Detail |
public void setLocale(java.util.Locale l)
Localizable.setLocale(Locale)
.
setLocale
in interface Localizable
l
- The locale to set.public java.util.Locale getLocale()
Localizable.getLocale()
.
getLocale
in interface Localizable
public java.lang.String formatMessage(java.lang.String key, java.lang.Object[] args) throws java.util.MissingResourceException
Localizable.formatMessage(String,Object[])
.
formatMessage
in interface Localizable
key
- The key used to retreive the message from the resource
bundle.args
- The objects that compose the message.
java.util.MissingResourceException
- if the key is not in the bundle.public boolean getEventsEnabled()
public void setEventsEnabled(boolean b)
public java.lang.String getNodeName()
Node.getNodeName()
.
getNodeName
in interface org.w3c.dom.Node
public short getNodeType()
Node.getNodeType()
.
getNodeType
in interface org.w3c.dom.Node
Node.DOCUMENT_NODE
public org.w3c.dom.DocumentType getDoctype()
Document.getDoctype()
.
getDoctype
in interface org.w3c.dom.Document
public void setDoctype(org.w3c.dom.DocumentType dt)
public org.w3c.dom.DOMImplementation getImplementation()
Document.getImplementation()
.
getImplementation
in interface org.w3c.dom.Document
implementation
public org.w3c.dom.Element getDocumentElement()
Document.getDocumentElement()
.
getDocumentElement
in interface org.w3c.dom.Document
public org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode, boolean deep) throws org.w3c.dom.DOMException
Document.importNode(Node,boolean)
.
importNode
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.Node cloneNode(boolean deep)
Node.cloneNode(boolean)
.
cloneNode
in interface org.w3c.dom.Node
cloneNode
in class AbstractNode
public AbstractParentNode.ElementsByTagName getElementsByTagName(org.w3c.dom.Node n, java.lang.String ln)
public void putElementsByTagName(org.w3c.dom.Node n, java.lang.String ln, AbstractParentNode.ElementsByTagName l)
public AbstractParentNode.ElementsByTagNameNS getElementsByTagNameNS(org.w3c.dom.Node n, java.lang.String ns, java.lang.String ln)
public void putElementsByTagNameNS(org.w3c.dom.Node n, java.lang.String ns, java.lang.String ln, AbstractParentNode.ElementsByTagNameNS l)
public org.w3c.dom.events.Event createEvent(java.lang.String eventType) throws org.w3c.dom.DOMException
DocumentEvent.createEvent(String)
.
createEvent
in interface org.w3c.dom.events.DocumentEvent
org.w3c.dom.DOMException
public org.w3c.dom.traversal.NodeIterator createNodeIterator(org.w3c.dom.Node root, int whatToShow, org.w3c.dom.traversal.NodeFilter filter, boolean entityReferenceExpansion) throws org.w3c.dom.DOMException
DocumentTraversal.createNodeIterator(Node,int,NodeFilter,boolean)
.
createNodeIterator
in interface org.w3c.dom.traversal.DocumentTraversal
org.w3c.dom.DOMException
public org.w3c.dom.traversal.TreeWalker createTreeWalker(org.w3c.dom.Node root, int whatToShow, org.w3c.dom.traversal.NodeFilter filter, boolean entityReferenceExpansion) throws org.w3c.dom.DOMException
DocumentTraversal.createTreeWalker(Node,int,NodeFilter,boolean)
.
createTreeWalker
in interface org.w3c.dom.traversal.DocumentTraversal
org.w3c.dom.DOMException
public void detachNodeIterator(org.w3c.dom.traversal.NodeIterator it)
public void nodeToBeRemoved(org.w3c.dom.Node node)
nodeToBeRemoved
in class AbstractParentNode
protected AbstractDocument getCurrentDocument()
getCurrentDocument
in class AbstractNode
protected org.w3c.dom.Node export(org.w3c.dom.Node n, org.w3c.dom.Document d)
n
- The clone node.d
- The destination document.protected org.w3c.dom.Node deepExport(org.w3c.dom.Node n, org.w3c.dom.Document d)
n
- The clone node.d
- The destination document.protected org.w3c.dom.Node copyInto(org.w3c.dom.Node n)
copyInto
in class AbstractNode
n
- a node of the type of this.protected org.w3c.dom.Node deepCopyInto(org.w3c.dom.Node n)
deepCopyInto
in class AbstractParentNode
n
- a node of the type of this.protected void checkChildType(org.w3c.dom.Node n, boolean replace)
checkChildType
in class AbstractNode
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |