public class GenericDocument extends AbstractDocument
Document
,
DocumentEvent
.AbstractDocument.DocumentConfiguration, AbstractDocument.DocumentError, AbstractDocument.IdSoftRef, AbstractDocument.XPathExpr, AbstractDocument.XPathNodeNSResolver
AbstractParentNode.ChildNodes, AbstractParentNode.ElementsByTagName, AbstractParentNode.ElementsByTagNameNS
Modifier and Type | Field and Description |
---|---|
protected static java.lang.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, xmlVersion
childNodes
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, userDataHandlers
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
Modifier | Constructor and Description |
---|---|
protected |
GenericDocument()
Creates a new uninitialized document.
|
|
GenericDocument(DocumentType dt,
DOMImplementation impl)
Creates a new uninitialized document.
|
Modifier and Type | Method and Description |
---|---|
Attr |
createAttribute(java.lang.String name)
DOM: Implements
Document.createAttribute(String) . |
Attr |
createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
DOM: Implements
Document.createAttributeNS(String,String) . |
CDATASection |
createCDATASection(java.lang.String data)
DOM: Implements
Document.createCDATASection(String) . |
Comment |
createComment(java.lang.String data)
DOM: Implements
Document.createComment(String) . |
DocumentFragment |
createDocumentFragment()
DOM: Implements
Document.createDocumentFragment() . |
Element |
createElement(java.lang.String tagName)
DOM: Implements
Document.createElement(String) . |
Element |
createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
DOM: Implements
Document.createElementNS(String,String) . |
EntityReference |
createEntityReference(java.lang.String name)
DOM: Implements
Document.createEntityReference(String) . |
ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data)
DOM: Implements
Document.createProcessingInstruction(String,String) . |
Text |
createTextNode(java.lang.String data)
DOM: Implements
Document.createTextNode(String) . |
boolean |
isId(Attr node)
Returns true if the given Attr node represents an 'id'
for this document.
|
boolean |
isReadonly()
Tests whether this node is readonly.
|
protected Node |
newNode()
Returns a new uninitialized instance of this object's class.
|
void |
setReadonly(boolean v)
Sets this node readonly attribute.
|
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, updateIdEntry
appendChild, checkAndRemove, deepExport, fireDOMNodeInsertedEvent, fireDOMNodeInsertedIntoDocumentEvent, fireDOMNodeRemovedEvent, fireDOMNodeRemovedFromDocumentEvent, fireDOMSubtreeModifiedEvent, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getLastChild, getTextContent, hasChildNodes, insertBefore, nodeAdded, normalize, removeChild, replaceChild
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, willTriggerNS
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getElementsByTagName, getElementsByTagNameNS
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
protected static final java.lang.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 AbstractDocument
public Element createElement(java.lang.String tagName) throws DOMException
Document.createElement(String)
.DOMException
public DocumentFragment createDocumentFragment()
Document.createDocumentFragment()
.public Text createTextNode(java.lang.String data)
Document.createTextNode(String)
.public Comment createComment(java.lang.String data)
Document.createComment(String)
.public CDATASection createCDATASection(java.lang.String data) throws DOMException
Document.createCDATASection(String)
.DOMException
public ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data) throws DOMException
Document.createProcessingInstruction(String,String)
.StyleSheetProcessingInstruction
if target is
"xml-stylesheet" or a GenericProcessingInstruction otherwise.DOMException
public Attr createAttribute(java.lang.String name) throws DOMException
Document.createAttribute(String)
.DOMException
public EntityReference createEntityReference(java.lang.String name) throws DOMException
Document.createEntityReference(String)
.DOMException
public Element createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws DOMException
Document.createElementNS(String,String)
.DOMException
public Attr createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws DOMException
Document.createAttributeNS(String,String)
.DOMException
protected Node newNode()
newNode
in class AbstractNode
Copyright © 2022 Apache Software Foundation. All Rights Reserved.