public class GenericDocument extends AbstractDocument
Document,
DocumentEvent.AbstractDocument.DocumentConfiguration, AbstractDocument.DocumentError, AbstractDocument.IdSoftRef, AbstractDocument.XPathExpr, AbstractDocument.XPathNodeNSResolverAbstractParentNode.ChildNodes, AbstractParentNode.ElementsByTagName, AbstractParentNode.ElementsByTagNameNS| Modifier and Type | Field and Description |
|---|---|
protected static String |
ATTR_ID
Local name for 'id' attributes.
|
protected boolean |
readonly
Is this document immutable?
|
documentEventSupport, documentURI, domConfig, elementsById, elementsByTagNames, elementsByTagNamesNS, eventsEnabled, implementation, inputEncoding, localizableSupport, RESOURCES, strictErrorChecking, traversalSupport, xblManager, xmlEncoding, xmlStandalone, xmlVersionchildNodesDOCUMENT_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, userDataHandlersATTRIBUTE_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| Modifier | Constructor and Description |
|---|---|
protected |
GenericDocument()
Creates a new uninitialized document.
|
|
GenericDocument(DocumentType dt,
DOMImplementation impl)
Creates a new uninitialized document.
|
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, updateIdEntryappendChild, checkAndRemove, deepExport, fireDOMNodeInsertedEvent, fireDOMNodeInsertedIntoDocumentEvent, fireDOMNodeRemovedEvent, fireDOMNodeRemovedFromDocumentEvent, fireDOMSubtreeModifiedEvent, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getLastChild, getTextContent, hasChildNodes, insertBefore, nodeAdded, normalize, removeChild, replaceChildaddEventListener, 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, willTriggerNSclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetElementsByTagName, getElementsByTagNameNSappendChild, 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, setUserDataprotected static final String ATTR_ID
protected boolean readonly
protected GenericDocument()
public GenericDocument(DocumentType dt, DOMImplementation impl)
public boolean isReadonly()
public void setReadonly(boolean v)
public boolean isId(Attr node)
isId in class AbstractDocumentpublic Element createElement(String tagName) throws DOMException
Document.createElement(String).DOMExceptionpublic DocumentFragment createDocumentFragment()
Document.createDocumentFragment().public Text createTextNode(String data)
Document.createTextNode(String).public Comment createComment(String data)
Document.createComment(String).public CDATASection createCDATASection(String data) throws DOMException
Document.createCDATASection(String).DOMExceptionpublic ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException
Document.createProcessingInstruction(String,String).StyleSheetProcessingInstruction if target is
"xml-stylesheet" or a GenericProcessingInstruction otherwise.DOMExceptionpublic Attr createAttribute(String name) throws DOMException
Document.createAttribute(String).DOMExceptionpublic EntityReference createEntityReference(String name) throws DOMException
Document.createEntityReference(String).DOMExceptionpublic Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException
Document.createElementNS(String,String).DOMExceptionpublic Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException
Document.createAttributeNS(String,String).DOMExceptionprotected Node newNode()
newNode in class AbstractNodeCopyright © 2000–2021 Apache Software Foundation. All rights reserved.