java.lang.Object
org.apache.batik.dom.AbstractNode
org.apache.batik.dom.AbstractParentNode
org.apache.batik.dom.AbstractDocument
org.apache.batik.dom.GenericDocument
- All Implemented Interfaces:
- org.w3c.dom.Document, org.w3c.dom.events.DocumentEvent, org.w3c.dom.traversal.DocumentTraversal, org.w3c.dom.events.EventTarget, ExtendedNode, org.apache.batik.i18n.Localizable, org.w3c.dom.Node, org.apache.batik.dom.events.NodeEventTarget, java.io.Serializable
- public class GenericDocument
- extends AbstractDocument
This class implements the org.w3c.dom.Document,
org.w3c.dom.events.DocumentEvent.
- Version:
- $Id: GenericDocument.java,v 1.11 2005/03/03 01:19:53 deweese Exp $
| 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 |
| Methods inherited from class org.apache.batik.dom.AbstractDocument |
addIdEntry, checkChildType, cloneNode, copyInto, createEvent, createNodeIterator, createTreeWalker, deepCopyInto, deepExport, detachNodeIterator, export, formatMessage, getChildElementById, getCurrentDocument, getDoctype, getDocumentElement, getElementById, getElementsByTagName, getElementsByTagNameNS, getEventsEnabled, getImplementation, getLocale, getNodeName, getNodeType, getRoot, importNode, importNode, nodeToBeRemoved, putElementsByTagName, putElementsByTagNameNS, removeIdEntry, setDoctype, setEventsEnabled, setLocale, updateIdEntry |
| 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, 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 |
adoptNode, getDocumentURI, getDomConfig, getElementsByTagName, getElementsByTagNameNS, getInputEncoding, getStrictErrorChecking, getXmlEncoding, getXmlStandalone, getXmlVersion, normalizeDocument, renameNode, setDocumentURI, setStrictErrorChecking, setXmlStandalone, setXmlVersion |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
ATTR_ID
protected static final java.lang.String ATTR_ID
- Local name for 'id' attributes.
- See Also:
- Constant Field Values
readonly
protected boolean readonly
- Is this document immutable?
GenericDocument
protected GenericDocument()
- Creates a new uninitialized document.
GenericDocument
public GenericDocument(org.w3c.dom.DocumentType dt,
org.w3c.dom.DOMImplementation impl)
- Creates a new uninitialized document.
isReadonly
public boolean isReadonly()
- Tests whether this node is readonly.
setReadonly
public void setReadonly(boolean v)
- Sets this node readonly attribute.
isId
public boolean isId(org.w3c.dom.Attr node)
- Returns true if the given Attr node represents an 'id'
for this document.
- Specified by:
isId in class AbstractDocument
createElement
public org.w3c.dom.Element createElement(java.lang.String tagName)
throws org.w3c.dom.DOMException
- DOM: Implements Document.createElement(String)>
Document.createElement(String) 55 .
createDocumentFragment
public org.w3c.dom.DocumentFragment createDocumentFragment()
- DOM: Implements Document.createDocumentFragment()>
Document.createDocumentFragment() 55 .
createTextNode
public org.w3c.dom.Text createTextNode(java.lang.String data)
- DOM: Implements Document.createTextNode(String)>
Document.createTextNode(String) 55 .
createComment
public org.w3c.dom.Comment createComment(java.lang.String data)
- DOM: Implements Document.createComment(String)>
Document.createComment(String) 55 .
createCDATASection
public org.w3c.dom.CDATASection createCDATASection(java.lang.String data)
throws org.w3c.dom.DOMException
- DOM: Implements Document.createCDATASection(String)>
Document.createCDATASection(String) 55 .
createProcessingInstruction
public org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target,
java.lang.String data)
throws org.w3c.dom.DOMException
- DOM: Implements Document.createProcessingInstruction(String,String)>
Document.createProcessingInstruction(String,String) 55 .
createAttribute
public org.w3c.dom.Attr createAttribute(java.lang.String name)
throws org.w3c.dom.DOMException
- DOM: Implements Document.createAttribute(String)>
Document.createAttribute(String) 55 .
createEntityReference
public org.w3c.dom.EntityReference createEntityReference(java.lang.String name)
throws org.w3c.dom.DOMException
- DOM: Implements Document.createEntityReference(String)>
Document.createEntityReference(String) 55 .
createElementNS
public org.w3c.dom.Element createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
throws org.w3c.dom.DOMException
- DOM: Implements Document.createElementNS(String,String)>
Document.createElementNS(String,String) 55 .
createAttributeNS
public org.w3c.dom.Attr createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
throws org.w3c.dom.DOMException
- DOM: Implements Document.createAttributeNS(String,String)>
Document.createAttributeNS(String,String) 55 .
newNode
protected org.w3c.dom.Node newNode()
- Returns a new uninitialized instance of this object's class.
- Specified by:
newNode in class AbstractNode