public class DOMResult extends java.lang.Object implements javax.xml.transform.Result
getNode() method after the transformation.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FEATURE
Factory feature indicating that DOM results are supported.
|
| Constructor and Description |
|---|
DOMResult()
Default constructor.
|
DOMResult(org.w3c.dom.Node node)
Constructor with the node to append to.
|
DOMResult(org.w3c.dom.Node node,
org.w3c.dom.Node nextSibling)
Constructor with the node to append to and the child node before which
the result should be appended.
|
DOMResult(org.w3c.dom.Node node,
org.w3c.dom.Node nextSibling,
java.lang.String systemID)
Constructor with the node to append to, the child node before which
the result should be appended, and the system ID.
|
DOMResult(org.w3c.dom.Node node,
java.lang.String systemID)
Constructor with the node to append to and the system ID.
|
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.Node |
getNextSibling()
Returns the child node before which the result nodes will be inserted.
|
org.w3c.dom.Node |
getNode()
Returns the node to which the result tree is to be appended,
or the result tree after transformation if no node was previously set.
|
java.lang.String |
getSystemId()
Returns the system ID used to resolve external entities.
|
void |
setNextSibling(org.w3c.dom.Node nextSibling)
Sets the child node before which the result nodes will be inserted.
|
void |
setNode(org.w3c.dom.Node node)
Sets the node to which the result tree will be appended.
|
void |
setSystemId(java.lang.String systemId)
Sets the system ID used to resolve external entities.
|
public static final java.lang.String FEATURE
public DOMResult()
public DOMResult(org.w3c.dom.Node node)
public DOMResult(org.w3c.dom.Node node, org.w3c.dom.Node nextSibling)
public DOMResult(org.w3c.dom.Node node, java.lang.String systemID)
public DOMResult(org.w3c.dom.Node node, org.w3c.dom.Node nextSibling, java.lang.String systemID)
public void setNode(org.w3c.dom.Node node)
node - the nodepublic org.w3c.dom.Node getNode()
public void setNextSibling(org.w3c.dom.Node nextSibling)
public org.w3c.dom.Node getNextSibling()
public void setSystemId(java.lang.String systemId)
setSystemId in interface javax.xml.transform.ResultsystemId - the system ID URIpublic java.lang.String getSystemId()
getSystemId in interface javax.xml.transform.Result