public class QDocument extends QDocumentFragment implements CauchoDocument
QNode.ChildNodeList
_masterDoc
_firstChild, _lastChild
L
DEPENDS
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 and Description |
---|
QDocument() |
QDocument(org.w3c.dom.DocumentType docType) |
QDocument(QDOMImplementation impl) |
Modifier and Type | Method and Description |
---|---|
void |
addDepend(Path path) |
void |
addNamespace(javax.xml.namespace.QName qname) |
void |
addNamespace(java.lang.String prefix,
java.lang.String url)
Add a namespace declaration to a document.
|
org.w3c.dom.Node |
adoptNode(org.w3c.dom.Node source) |
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newChild) |
boolean |
canSetNormalizationFeature(java.lang.String name,
boolean state) |
org.w3c.dom.Node |
cloneNode(boolean deep)
Returns a clone of the document.
|
protected org.w3c.dom.Node |
copyNode(QDocument newNode,
boolean deep) |
static org.w3c.dom.Document |
create() |
org.w3c.dom.Attr |
createAttribute(javax.xml.namespace.QName name,
java.lang.String value)
Creates a new namespace-aware attribute
|
org.w3c.dom.Attr |
createAttribute(java.lang.String name) |
org.w3c.dom.Attr |
createAttribute(java.lang.String name,
java.lang.String value) |
org.w3c.dom.Attr |
createAttribute(java.lang.String prefix,
java.lang.String local,
java.lang.String url)
Creates a new namespace-aware attribute
|
org.w3c.dom.Attr |
createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
Creates a new namespace-aware attribute
|
org.w3c.dom.CDATASection |
createCDATASection(java.lang.String data) |
org.w3c.dom.Comment |
createComment(java.lang.String data) |
org.w3c.dom.DocumentFragment |
createDocumentFragment()
Creates a new document fragment.
|
org.w3c.dom.Element |
createElement(java.lang.String tagName)
Creates a new element
|
org.w3c.dom.Element |
createElement(java.lang.String prefix,
java.lang.String local,
java.lang.String url)
Creates a new namespace-aware element
|
org.w3c.dom.Element |
createElementByName(javax.xml.namespace.QName name) |
org.w3c.dom.Element |
createElementNS(java.lang.String namespaceURI,
java.lang.String name)
Creates a new namespace-aware element
|
org.w3c.dom.EntityReference |
createEntityReference(java.lang.String name) |
javax.xml.namespace.QName |
createName(java.lang.String uri,
java.lang.String name) |
org.w3c.dom.ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data) |
org.w3c.dom.Text |
createTextNode(java.lang.String data)
Creates a new text node in this document.
|
org.w3c.dom.Text |
createUnescapedTextNode(java.lang.String data) |
java.lang.String |
getActualEncoding() |
java.lang.String |
getBaseURI()
Returns the base URI of the node.
|
java.util.ArrayList<Depend> |
getDependencyList() |
java.util.ArrayList<Path> |
getDependList() |
org.w3c.dom.DocumentType |
getDoctype() |
org.w3c.dom.Element |
getDocumentElement() |
java.lang.String |
getDocumentURI() |
org.w3c.dom.DOMConfiguration |
getDomConfig() |
org.w3c.dom.Element |
getElementById(java.lang.String name) |
org.w3c.dom.NodeList |
getElementsByTagName(java.lang.String name)
Returns a list of elements, filtered by the tag name.
|
org.w3c.dom.NodeList |
getElementsByTagNameNS(java.lang.String uri,
java.lang.String name) |
java.lang.String |
getEncoding() |
org.w3c.dom.DOMErrorHandler |
getErrorHandler() |
org.w3c.dom.DOMImplementation |
getImplementation() |
java.lang.String |
getInputEncoding() |
java.lang.String |
getNamespace(java.lang.String prefix)
Returns the namespace url for a given prefix.
|
java.util.Iterator<java.lang.String> |
getNamespaceKeys()
Returns an iterator of top-level namespace prefixes.
|
java.util.HashMap<java.lang.String,java.lang.String> |
getNamespaces() |
java.lang.String |
getNodeName()
The node name for the document is #document.
|
short |
getNodeType() |
boolean |
getNormalizationFeature(java.lang.String name) |
org.w3c.dom.Document |
getOwnerDocument()
Returns the owning document.
|
java.lang.Object |
getProperty(java.lang.String name) |
java.lang.String |
getRootFilename() |
org.w3c.dom.TypeInfo |
getSchemaTypeInfo() |
boolean |
getStandalone() |
boolean |
getStrictErrorChecking() |
java.lang.String |
getSystemId() |
java.lang.String |
getXmlEncoding() |
boolean |
getXmlStandalone() |
java.lang.String |
getXmlVersion() |
org.w3c.dom.Node |
importNode(org.w3c.dom.Node node,
boolean deep)
Imports a copy of a node into the current document.
|
boolean |
isModified() |
boolean |
isSupported(java.lang.String feature,
java.lang.String version) |
void |
normalizeDocument() |
org.w3c.dom.Node |
removeChild(org.w3c.dom.Node oldChild) |
org.w3c.dom.Node |
renameNode(org.w3c.dom.Node n,
java.lang.String namespaceURI,
java.lang.String name) |
void |
setActualEncoding(java.lang.String actualEncoding) |
void |
setDoctype(org.w3c.dom.DocumentType dtd) |
void |
setDocumentElement(org.w3c.dom.Element elt) |
void |
setDocumentURI(java.lang.String documentURI) |
void |
setEncoding(java.lang.String encoding) |
void |
setErrorHandler(org.w3c.dom.DOMErrorHandler errorHandler) |
void |
setNormalizationFeature(java.lang.String name,
boolean state) |
void |
setProperty(java.lang.String name,
java.lang.Object value) |
void |
setRootFilename(java.lang.String filename) |
void |
setStandalone(boolean standalone) |
void |
setStrictErrorChecking(boolean strictErrorChecking) |
void |
setSystemId(java.lang.String systemId) |
void |
setXmlStandalone(boolean value) |
void |
setXmlVersion(java.lang.String version) |
java.lang.String |
toString() |
void |
validateName(javax.xml.namespace.QName qname) |
getMasterDoc, getTextValue
checkValid, equals, equals, getAttributes, getChildNodes, getFirstChild, getLastChild, getNextPreorder, getNextSibling, getNodeValue, getPreviousSibling, hasChildNodes, insertBefore, normalize, replaceChild, setNodeValue, setTextContent
baseURI, compareDocumentPosition, compareTreePosition, getCanonicalName, getColumn, getFeature, getFilename, getInterface, getLine, getLocalName, getNamespaceURI, getNextContent, getParentNode, getPrefix, getPreviousContent, getQName, getTextContent, getUserData, hasAttributes, hasContent, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespacePrefix, lookupNamespaceURI, lookupPrefix, print, printHtml, printPretty, setFeature, setLocation, setPrefix, setUserData, supports
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
checkValid, getCanonicalName, getColumn, getFilename, getLine, getLocalName, getNamespaceURI, getPrefix, getTextValue, print, printHtml, printPretty, setLocation
compareDocumentPosition, getAttributes, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getNodeValue, getParentNode, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, normalize, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
public QDocument()
public QDocument(org.w3c.dom.DocumentType docType)
public QDocument(QDOMImplementation impl)
public java.lang.String getRootFilename()
public void setRootFilename(java.lang.String filename)
public void setSystemId(java.lang.String systemId)
public java.lang.String getSystemId()
public java.lang.String getBaseURI()
getBaseURI
in interface CauchoNode
getBaseURI
in interface org.w3c.dom.Node
getBaseURI
in class QAbstractNode
public org.w3c.dom.Document getOwnerDocument()
QAbstractNode
getOwnerDocument
in interface org.w3c.dom.Node
getOwnerDocument
in class QAbstractNode
public org.w3c.dom.DOMConfiguration getDomConfig()
getDomConfig
in interface org.w3c.dom.Document
public boolean isSupported(java.lang.String feature, java.lang.String version)
isSupported
in interface org.w3c.dom.Node
isSupported
in class QAbstractNode
public java.lang.String getNodeName()
getNodeName
in interface org.w3c.dom.Node
getNodeName
in class QDocumentFragment
public short getNodeType()
getNodeType
in interface org.w3c.dom.Node
getNodeType
in class QDocumentFragment
protected org.w3c.dom.Node copyNode(QDocument newNode, boolean deep)
public org.w3c.dom.Node cloneNode(boolean deep)
cloneNode
in interface org.w3c.dom.Node
cloneNode
in class QAbstractNode
deep
- if true, recursively copy the document.public org.w3c.dom.Node importNode(org.w3c.dom.Node node, boolean deep)
importNode
in interface org.w3c.dom.Document
node
- the node to import/copydeep
- if true, recursively copy the children.public org.w3c.dom.DocumentType getDoctype()
getDoctype
in interface org.w3c.dom.Document
public void setDoctype(org.w3c.dom.DocumentType dtd)
public java.lang.String getEncoding()
public org.w3c.dom.DOMImplementation getImplementation()
getImplementation
in interface org.w3c.dom.Document
public org.w3c.dom.Element getDocumentElement()
getDocumentElement
in interface org.w3c.dom.Document
public void setDocumentElement(org.w3c.dom.Element elt)
public org.w3c.dom.Element createElement(java.lang.String tagName) throws org.w3c.dom.DOMException
createElement
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.Element createElementNS(java.lang.String namespaceURI, java.lang.String name) throws org.w3c.dom.DOMException
createElementNS
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public void validateName(javax.xml.namespace.QName qname) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public org.w3c.dom.Element createElement(java.lang.String prefix, java.lang.String local, java.lang.String url) throws org.w3c.dom.DOMException
createElement
in interface CauchoDocument
org.w3c.dom.DOMException
public org.w3c.dom.Element createElementByName(javax.xml.namespace.QName name) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public org.w3c.dom.DocumentFragment createDocumentFragment()
createDocumentFragment
in interface org.w3c.dom.Document
public org.w3c.dom.Text createTextNode(java.lang.String data)
createTextNode
in interface org.w3c.dom.Document
public org.w3c.dom.Text createUnescapedTextNode(java.lang.String data)
createUnescapedTextNode
in interface CauchoDocument
public org.w3c.dom.Comment createComment(java.lang.String data)
createComment
in interface org.w3c.dom.Document
public org.w3c.dom.CDATASection createCDATASection(java.lang.String data)
createCDATASection
in interface org.w3c.dom.Document
public org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data) throws org.w3c.dom.DOMException
createProcessingInstruction
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.Attr createAttribute(java.lang.String name, java.lang.String value) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public org.w3c.dom.Attr createAttribute(java.lang.String name) throws org.w3c.dom.DOMException
createAttribute
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.Attr createAttribute(java.lang.String prefix, java.lang.String local, java.lang.String url) throws org.w3c.dom.DOMException
createAttribute
in interface CauchoDocument
org.w3c.dom.DOMException
public org.w3c.dom.Attr createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws org.w3c.dom.DOMException
createAttributeNS
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public javax.xml.namespace.QName createName(java.lang.String uri, java.lang.String name)
public org.w3c.dom.Attr createAttribute(javax.xml.namespace.QName name, java.lang.String value) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public org.w3c.dom.EntityReference createEntityReference(java.lang.String name) throws org.w3c.dom.DOMException
createEntityReference
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.NodeList getElementsByTagName(java.lang.String name)
getElementsByTagName
in interface org.w3c.dom.Document
public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String uri, java.lang.String name)
getElementsByTagNameNS
in interface org.w3c.dom.Document
public org.w3c.dom.Element getElementById(java.lang.String name)
getElementById
in interface org.w3c.dom.Document
public static org.w3c.dom.Document create()
public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) throws org.w3c.dom.DOMException
appendChild
in interface org.w3c.dom.Node
appendChild
in class QNode
org.w3c.dom.DOMException
public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
removeChild
in interface org.w3c.dom.Node
removeChild
in class QNode
org.w3c.dom.DOMException
public void addNamespace(javax.xml.namespace.QName qname)
public void addNamespace(java.lang.String prefix, java.lang.String url)
public java.util.HashMap<java.lang.String,java.lang.String> getNamespaces()
getNamespaces
in interface CauchoDocument
public java.lang.String getNamespace(java.lang.String prefix)
public java.util.Iterator<java.lang.String> getNamespaceKeys()
public java.lang.Object getProperty(java.lang.String name)
getProperty
in interface CauchoDocument
public java.util.ArrayList<Path> getDependList()
public java.util.ArrayList<Depend> getDependencyList()
getDependencyList
in class QAbstractNode
public void setProperty(java.lang.String name, java.lang.Object value)
setProperty
in interface CauchoDocument
public java.lang.String getActualEncoding()
public void setActualEncoding(java.lang.String actualEncoding)
public void setEncoding(java.lang.String encoding)
public boolean getStandalone()
public void setStandalone(boolean standalone)
public java.lang.String getXmlVersion()
getXmlVersion
in interface org.w3c.dom.Document
public void setXmlVersion(java.lang.String version) throws org.w3c.dom.DOMException
setXmlVersion
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public void setXmlStandalone(boolean value) throws org.w3c.dom.DOMException
setXmlStandalone
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.TypeInfo getSchemaTypeInfo()
public java.lang.String getXmlEncoding()
getXmlEncoding
in interface org.w3c.dom.Document
public java.lang.String getInputEncoding()
getInputEncoding
in interface org.w3c.dom.Document
public boolean getXmlStandalone() throws org.w3c.dom.DOMException
getXmlStandalone
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public boolean getStrictErrorChecking()
getStrictErrorChecking
in interface org.w3c.dom.Document
public void setStrictErrorChecking(boolean strictErrorChecking)
setStrictErrorChecking
in interface org.w3c.dom.Document
public org.w3c.dom.DOMErrorHandler getErrorHandler()
public void setErrorHandler(org.w3c.dom.DOMErrorHandler errorHandler)
public java.lang.String getDocumentURI()
getDocumentURI
in interface org.w3c.dom.Document
public void setDocumentURI(java.lang.String documentURI)
setDocumentURI
in interface org.w3c.dom.Document
public org.w3c.dom.Node adoptNode(org.w3c.dom.Node source) throws org.w3c.dom.DOMException
adoptNode
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public void normalizeDocument()
normalizeDocument
in interface org.w3c.dom.Document
public boolean canSetNormalizationFeature(java.lang.String name, boolean state)
public void setNormalizationFeature(java.lang.String name, boolean state) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public boolean getNormalizationFeature(java.lang.String name) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public org.w3c.dom.Node renameNode(org.w3c.dom.Node n, java.lang.String namespaceURI, java.lang.String name) throws org.w3c.dom.DOMException
renameNode
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public void addDepend(Path path)
public boolean isModified()
public java.lang.String toString()
toString
in class QDocumentFragment