|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object
|
+--org.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 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(DOMImplementation impl)
Creates a new document. |
| Method Summary | |
|---|---|
protected void |
checkChildType(Node n,
boolean replace)
Checks the validity of a node to be inserted. |
Node |
cloneNode(boolean deep)
DOM: Implements Node.cloneNode(boolean). |
protected Node |
copyInto(Node n)
Copy the fields of the current node into the given node. |
Event |
createEvent(java.lang.String eventType)
DOM: Implements DocumentEvent.createEvent(String). |
NodeIterator |
createNodeIterator(Node root,
int whatToShow,
NodeFilter filter,
boolean entityReferenceExpansion)
DOM: Implements DocumentTraversal.createNodeIterator(Node,int,NodeFilter,boolean). |
TreeWalker |
createTreeWalker(Node root,
int whatToShow,
NodeFilter filter,
boolean entityReferenceExpansion)
DOM: Implements DocumentTraversal.createTreeWalker(Node,int,NodeFilter,boolean). |
protected Node |
deepCopyInto(Node n)
Deeply copy the fields of the current node into the given node. |
protected Node |
deepExport(Node n,
Document d)
Deeply exports this node to the given document. |
void |
detachNodeIterator(NodeIterator it)
Detaches the given node iterator from this document. |
protected Node |
export(Node n,
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. |
DocumentType |
getDoctype()
DOM: Implements Document.getDoctype(). |
Element |
getDocumentElement()
DOM: Implements Document.getDocumentElement(). |
AbstractParentNode.ElementsByTagName |
getElementsByTagName(Node n,
java.lang.String ln)
Returns an ElementsByTagName object from the cache, if any. |
AbstractParentNode.ElementsByTagNameNS |
getElementsByTagNameNS(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. |
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(). |
Node |
importNode(Node importedNode,
boolean deep)
DOM: Implements Document.importNode(Node,boolean). |
void |
nodeToBeRemoved(Node node)
Notifies this document that a node will be removed. |
void |
putElementsByTagName(Node n,
java.lang.String ln,
AbstractParentNode.ElementsByTagName l)
Puts an ElementsByTagName object in the cache. |
void |
putElementsByTagNameNS(Node n,
java.lang.String ns,
java.lang.String ln,
AbstractParentNode.ElementsByTagNameNS l)
Puts an ElementsByTagNameNS object in the cache. |
void |
setDoctype(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 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(DOMImplementation impl)
| Method Detail |
public void setLocale(java.util.Locale l)
Localizable.setLocale(Locale).
setLocale in interface Localizablel - 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 Localizablekey - 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 Nodepublic short getNodeType()
Node.getNodeType().
getNodeType in interface NodeNode.DOCUMENT_NODEpublic DocumentType getDoctype()
Document.getDoctype().
getDoctype in interface Documentpublic void setDoctype(DocumentType dt)
public DOMImplementation getImplementation()
Document.getImplementation().
getImplementation in interface Documentimplementationpublic Element getDocumentElement()
Document.getDocumentElement().
getDocumentElement in interface Document
public Node importNode(Node importedNode,
boolean deep)
throws DOMException
Document.importNode(Node,boolean).
importNode in interface DocumentDOMExceptionpublic Node cloneNode(boolean deep)
Node.cloneNode(boolean).
cloneNode in interface NodecloneNode in class AbstractNode
public AbstractParentNode.ElementsByTagName getElementsByTagName(Node n,
java.lang.String ln)
public void putElementsByTagName(Node n,
java.lang.String ln,
AbstractParentNode.ElementsByTagName l)
public AbstractParentNode.ElementsByTagNameNS getElementsByTagNameNS(Node n,
java.lang.String ns,
java.lang.String ln)
public void putElementsByTagNameNS(Node n,
java.lang.String ns,
java.lang.String ln,
AbstractParentNode.ElementsByTagNameNS l)
public Event createEvent(java.lang.String eventType)
throws DOMException
DocumentEvent.createEvent(String).
createEvent in interface DocumentEventDOMException
public NodeIterator createNodeIterator(Node root,
int whatToShow,
NodeFilter filter,
boolean entityReferenceExpansion)
throws DOMException
DocumentTraversal.createNodeIterator(Node,int,NodeFilter,boolean).
createNodeIterator in interface DocumentTraversalDOMException
public TreeWalker createTreeWalker(Node root,
int whatToShow,
NodeFilter filter,
boolean entityReferenceExpansion)
throws DOMException
DocumentTraversal.createTreeWalker(Node,int,NodeFilter,boolean).
createTreeWalker in interface DocumentTraversalDOMExceptionpublic void detachNodeIterator(NodeIterator it)
public void nodeToBeRemoved(Node node)
nodeToBeRemoved in class AbstractParentNodeprotected AbstractDocument getCurrentDocument()
getCurrentDocument in class AbstractNode
protected Node export(Node n,
Document d)
n - The clone node.d - The destination document.
protected Node deepExport(Node n,
Document d)
n - The clone node.d - The destination document.protected Node copyInto(Node n)
copyInto in class AbstractNoden - a node of the type of this.protected Node deepCopyInto(Node n)
deepCopyInto in class AbstractParentNoden - a node of the type of this.
protected void checkChildType(Node n,
boolean replace)
checkChildType in class AbstractNode
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||