Class GenericDocument
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:
Serializable, NodeEventTarget, ExtendedNode, NodeXBL, XBLManagerData, Localizable, Document, DocumentEvent, EventTarget, Node, DocumentTraversal, XPathEvaluator
This class implements the
Document,
DocumentEvent.- Version:
- $Id$
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractDocument
AbstractDocument.DocumentConfiguration, AbstractDocument.DocumentError, AbstractDocument.IdSoftRef, AbstractDocument.XPathExpr, AbstractDocument.XPathNodeNSResolverNested classes/interfaces inherited from class AbstractParentNode
AbstractParentNode.ChildNodes, AbstractParentNode.ElementsByTagName, AbstractParentNode.ElementsByTagNameNS -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringLocal name for 'id' attributes.protected booleanIs this document immutable?Fields inherited from class AbstractDocument
documentEventSupport, documentURI, domConfig, elementsById, elementsByTagNames, elementsByTagNamesNS, eventsEnabled, implementation, inputEncoding, localizableSupport, RESOURCES, strictErrorChecking, traversalSupport, xblManager, xmlEncoding, xmlStandalone, xmlVersionFields inherited from class AbstractParentNode
childNodesFields inherited from class AbstractNode
DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, EMPTY_NODE_LIST, eventSupport, managerData, ownerDocument, userData, userDataHandlersFields inherited from interface 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
ConstructorsModifierConstructorDescriptionprotectedCreates a new uninitialized document.GenericDocument(DocumentType dt, DOMImplementation impl) Creates a new uninitialized document. -
Method Summary
Modifier and TypeMethodDescriptioncreateAttribute(String name) DOM: ImplementsDocument.createAttribute(String).createAttributeNS(String namespaceURI, String qualifiedName) DOM: ImplementsDocument.createAttributeNS(String,String).createCDATASection(String data) DOM: ImplementsDocument.createCDATASection(String).createComment(String data) DOM: ImplementsDocument.createComment(String).DOM: ImplementsDocument.createDocumentFragment().createElement(String tagName) DOM: ImplementsDocument.createElement(String).createElementNS(String namespaceURI, String qualifiedName) DOM: ImplementsDocument.createElementNS(String,String).createEntityReference(String name) DOM: ImplementsDocument.createEntityReference(String).createProcessingInstruction(String target, String data) DOM: ImplementsDocument.createProcessingInstruction(String,String).createTextNode(String data) DOM: ImplementsDocument.createTextNode(String).booleanReturns true if the given Attr node represents an 'id' for this document.booleanTests whether this node is readonly.protected NodenewNode()Returns a new uninitialized instance of this object's class.voidsetReadonly(boolean v) Sets this node readonly attribute.Methods inherited from class AbstractDocument
addIdEntry, adoptNode, adoptNode1, canDispatch, checkChars, checkChildType, checkName, cloneNode, copyInto, createDOMError, createEvent, createExpression, createNodeIterator, createNSResolver, createTreeWalker, createXPathException, deepCopyInto, deepExport, detachNodeIterator, evaluate, export, formatMessage, getChildElementById, getCurrentDocument, getDoctype, getDocumentElement, getDocumentURI, getDomConfig, getElementById, getElementsByTagName, getElementsByTagNameNS, getEventsEnabled, getImplementation, getInputEncoding, getLocale, getNodeName, getNodeType, getRoot, getStrictErrorChecking, getXblBoundElement, getXblChildNodes, getXblDefinitions, getXblFirstChild, getXblFirstElementChild, getXblLastChild, getXblLastElementChild, getXBLManager, getXblNextElementSibling, getXblNextSibling, getXblParentNode, getXblPreviousElementSibling, getXblPreviousSibling, getXblScopedChildNodes, getXblShadowTree, getXmlEncoding, getXmlStandalone, getXmlVersion, importNode, importNode, nodeToBeRemoved, normalizeDocument, normalizeDocument, putElementsByTagName, putElementsByTagNameNS, removeIdEntry, renameNode, setDoctype, setDocumentInputEncoding, setDocumentURI, setDocumentXmlEncoding, setEventsEnabled, setLocale, setStrictErrorChecking, setTextContent, setXBLManager, setXmlStandalone, setXmlVersion, splitCdata, updateIdEntryMethods inherited from class AbstractParentNode
appendChild, checkAndRemove, deepExport, fireDOMNodeInsertedEvent, fireDOMNodeInsertedIntoDocumentEvent, fireDOMNodeRemovedEvent, fireDOMNodeRemovedFromDocumentEvent, fireDOMSubtreeModifiedEvent, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getLastChild, getTextContent, hasChildNodes, insertBefore, nodeAdded, normalize, removeChild, replaceChildMethods inherited from class AbstractNode
addEventListener, addEventListenerNS, compareDocumentPosition, compareNamedNodeMaps, compareStrings, createDOMException, dispatchEvent, export, fireDOMCharacterDataModifiedEvent, fireUserDataHandlers, getAttributes, getBaseURI, getBaseURI, getCascadedXMLBase, getEventSupport, getFeature, getLocalName, getManagerData, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getParentNodeEventTarget, getPrefix, getPreviousSibling, getUserData, hasAttributes, hasEventListenerNS, initializeEventSupport, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespacePrefix, lookupNamespaceURI, lookupPrefix, removeEventListener, removeEventListenerNS, setManagerData, setNextSibling, setNodeName, setNodeValue, setOwnerDocument, setParentNode, setPrefix, setPreviousSibling, setSpecified, setUserData, willTriggerNSMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Document
getElementsByTagName, getElementsByTagNameNSMethods inherited from interface 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, setUserData
-
Field Details
-
ATTR_ID
-
readonly
protected boolean readonlyIs this document immutable?
-
-
Constructor Details
-
GenericDocument
protected GenericDocument()Creates a new uninitialized document. -
GenericDocument
Creates a new uninitialized document.
-
-
Method Details
-
isReadonly
public boolean isReadonly()Tests whether this node is readonly. -
setReadonly
public void setReadonly(boolean v) Sets this node readonly attribute. -
isId
Returns true if the given Attr node represents an 'id' for this document.- Specified by:
isIdin classAbstractDocument
-
createElement
DOM: ImplementsDocument.createElement(String).- Throws:
DOMException
-
createDocumentFragment
DOM: ImplementsDocument.createDocumentFragment(). -
createTextNode
DOM: ImplementsDocument.createTextNode(String). -
createComment
DOM: ImplementsDocument.createComment(String). -
createCDATASection
DOM: ImplementsDocument.createCDATASection(String).- Throws:
DOMException
-
createProcessingInstruction
public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException DOM: ImplementsDocument.createProcessingInstruction(String,String).- Returns:
- a
StyleSheetProcessingInstructionif target is "xml-stylesheet" or a GenericProcessingInstruction otherwise. - Throws:
DOMException
-
createAttribute
DOM: ImplementsDocument.createAttribute(String).- Throws:
DOMException
-
createEntityReference
DOM: ImplementsDocument.createEntityReference(String).- Throws:
DOMException
-
createElementNS
DOM: ImplementsDocument.createElementNS(String,String).- Throws:
DOMException
-
createAttributeNS
DOM: ImplementsDocument.createAttributeNS(String,String).- Throws:
DOMException
-
newNode
Returns a new uninitialized instance of this object's class.- Specified by:
newNodein classAbstractNode
-