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 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, 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(org.w3c.dom.DocumentType dt,
org.w3c.dom.DOMImplementation impl)
Creates a new uninitialized document.
|
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.Attr |
createAttribute(java.lang.String name)
DOM: Implements
Document.createAttribute(String). |
org.w3c.dom.Attr |
createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
DOM: Implements
Document.createAttributeNS(String,String). |
org.w3c.dom.CDATASection |
createCDATASection(java.lang.String data)
DOM: Implements
Document.createCDATASection(String). |
org.w3c.dom.Comment |
createComment(java.lang.String data)
DOM: Implements
Document.createComment(String). |
org.w3c.dom.DocumentFragment |
createDocumentFragment()
DOM: Implements
Document.createDocumentFragment(). |
org.w3c.dom.Element |
createElement(java.lang.String tagName)
DOM: Implements
Document.createElement(String). |
org.w3c.dom.Element |
createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
DOM: Implements
Document.createElementNS(String,String). |
org.w3c.dom.EntityReference |
createEntityReference(java.lang.String name)
DOM: Implements
Document.createEntityReference(String). |
org.w3c.dom.ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data)
DOM: Implements
Document.createProcessingInstruction(String,String). |
org.w3c.dom.Text |
createTextNode(java.lang.String data)
DOM: Implements
Document.createTextNode(String). |
boolean |
isId(org.w3c.dom.Attr node)
Returns true if the given Attr node represents an 'id'
for this document.
|
boolean |
isReadonly()
Tests whether this node is readonly.
|
protected org.w3c.dom.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, 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, waitappendChild, 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 java.lang.String ATTR_ID
protected boolean readonly
protected GenericDocument()
public GenericDocument(org.w3c.dom.DocumentType dt,
org.w3c.dom.DOMImplementation impl)
public boolean isReadonly()
public void setReadonly(boolean v)
public boolean isId(org.w3c.dom.Attr node)
isId in class AbstractDocumentpublic org.w3c.dom.Element createElement(java.lang.String tagName)
throws org.w3c.dom.DOMException
Document.createElement(String).org.w3c.dom.DOMExceptionpublic org.w3c.dom.DocumentFragment createDocumentFragment()
Document.createDocumentFragment().public org.w3c.dom.Text createTextNode(java.lang.String data)
Document.createTextNode(String).public org.w3c.dom.Comment createComment(java.lang.String data)
Document.createComment(String).public org.w3c.dom.CDATASection createCDATASection(java.lang.String data)
throws org.w3c.dom.DOMException
Document.createCDATASection(String).org.w3c.dom.DOMExceptionpublic org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target,
java.lang.String data)
throws org.w3c.dom.DOMException
Document.createProcessingInstruction(String,String).StyleSheetProcessingInstruction if target is
"xml-stylesheet" or a GenericProcessingInstruction otherwise.org.w3c.dom.DOMExceptionpublic org.w3c.dom.Attr createAttribute(java.lang.String name)
throws org.w3c.dom.DOMException
Document.createAttribute(String).org.w3c.dom.DOMExceptionpublic org.w3c.dom.EntityReference createEntityReference(java.lang.String name)
throws org.w3c.dom.DOMException
Document.createEntityReference(String).org.w3c.dom.DOMExceptionpublic org.w3c.dom.Element createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
throws org.w3c.dom.DOMException
Document.createElementNS(String,String).org.w3c.dom.DOMExceptionpublic org.w3c.dom.Attr createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
throws org.w3c.dom.DOMException
Document.createAttributeNS(String,String).org.w3c.dom.DOMExceptionprotected org.w3c.dom.Node newNode()
newNode in class AbstractNodeCopyright ? 2009 Apache Software Foundation. All Rights Reserved.