public class XMLDocumentImpl
extends java.lang.Object
implements java.lang.Cloneable
| Constructor and Description |
|---|
XMLDocumentImpl()
Creates a empty mutable document.
|
XMLDocumentImpl(net.sf.saxon.Configuration conf)
Creates a empty mutable document.
|
XMLDocumentImpl(net.sf.saxon.tree.linked.DocumentImpl doc)
Creates a mutable document from a mutable saxonica node.
|
XMLDocumentImpl(net.sf.saxon.s9api.XdmItem item)
Creates a mutable document from a non mutable saxonica node.
|
XMLDocumentImpl(XMLFragment rootElem)
Creates a mutable document with a root element.
|
| Modifier and Type | Method and Description |
|---|---|
net.sf.saxon.tree.linked.CommentImpl |
addComment(net.sf.saxon.tree.linked.CommentImpl commentNode)
Adds a node comment to the document.
|
net.sf.saxon.tree.linked.CommentImpl |
addComment(java.lang.String commentValue)
Adds a comment to the document.
|
net.sf.saxon.tree.linked.ProcInstImpl |
addProcessingInstruction(net.sf.saxon.tree.linked.ProcInstImpl procInstNode)
Adds a processing instruction node to the document.
|
void |
addProcessingInstruction(java.lang.String pi,
java.util.HashMap<java.lang.String,java.lang.String> values)
Adds a processing instruction to the document.
|
void |
clear()
Clear.
|
XMLDocumentImpl |
clone()
Clone.
|
void |
delete()
Deletes the document node.
|
boolean |
equals(java.lang.Object other)
Equals.
|
java.lang.String |
getBaseURI()
Obtains the document base URI.
|
XMLFragment |
getDocumentElement()
Obtains the document element mutable node.
|
static XMLFragment |
getDocumentElement(net.sf.saxon.tree.linked.DocumentImpl doc)
Obtains the root element node.
|
net.sf.saxon.tree.linked.DocumentImpl |
getDocumentImpl()
Obtains the mutable saxonica document node.
|
java.lang.String |
getSystemId()
Obtains the document system id.
|
net.sf.saxon.s9api.XdmNode |
getXdmNode()
Obtains the non mutable saxonica document node.
|
int |
hashCode()
Hash code.
|
boolean |
isSameNodeInfo(XMLDocumentImpl ni)
Determine whether this is the same node as another node.
|
void |
moveNamespacesUp()
Deprecated.
|
void |
setBaseURI(java.lang.String uri)
Set the base URI of this document node.
|
static void |
setDocumentElement(net.sf.saxon.tree.linked.DocumentImpl doc,
XMLFragment rootElem)
Sets the root element for a document.
|
void |
setDocumentElement(XMLFragment rootElem)
Sets the root element for the document.
|
void |
setSystemId(java.lang.String uri)
Set the system id (base URI) of this node.
|
java.lang.String |
toString()
To string.
|
public XMLDocumentImpl()
public XMLDocumentImpl(net.sf.saxon.Configuration conf)
conf - the configurationpublic XMLDocumentImpl(net.sf.saxon.tree.linked.DocumentImpl doc)
doc - the documentpublic XMLDocumentImpl(net.sf.saxon.s9api.XdmItem item)
item - the non mutable nodepublic XMLDocumentImpl(XMLFragment rootElem)
rootElem - the root elementpublic static XMLFragment getDocumentElement(net.sf.saxon.tree.linked.DocumentImpl doc)
doc - the documentpublic static void setDocumentElement(net.sf.saxon.tree.linked.DocumentImpl doc,
XMLFragment rootElem)
doc - the documentrootElem - the root elementpublic net.sf.saxon.tree.linked.CommentImpl addComment(java.lang.String commentValue)
commentValue - the comment valuepublic net.sf.saxon.tree.linked.CommentImpl addComment(net.sf.saxon.tree.linked.CommentImpl commentNode)
commentNode - the comment novepublic void addProcessingInstruction(java.lang.String pi,
java.util.HashMap<java.lang.String,java.lang.String> values)
pi - the processing instructionvalues - the pairs of values for the PIpublic net.sf.saxon.tree.linked.ProcInstImpl addProcessingInstruction(net.sf.saxon.tree.linked.ProcInstImpl procInstNode)
procInstNode - the processing instruction nodepublic XMLDocumentImpl clone()
clone in class java.lang.Objectpublic void delete()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - the otherpublic java.lang.String getBaseURI()
public XMLFragment getDocumentElement()
public net.sf.saxon.tree.linked.DocumentImpl getDocumentImpl()
public java.lang.String getSystemId()
public net.sf.saxon.s9api.XdmNode getXdmNode()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean isSameNodeInfo(XMLDocumentImpl ni)
ni - the ni@Deprecated public void moveNamespacesUp()
public void setBaseURI(java.lang.String uri)
uri - the new base URIpublic void setDocumentElement(XMLFragment rootElem)
rootElem - the root elementpublic void setSystemId(java.lang.String uri)
uri - the new system idpublic java.lang.String toString()
toString in class java.lang.Objectpublic void clear()
throws java.lang.Throwable
java.lang.Throwable - the throwableCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa