javax.xml.transform.dom

Class DOMSource

Implemented Interfaces:
Source

public class DOMSource
extends java.lang.Object
implements Source

An XML source specified as a W3C DOM node context.

Field Summary

static String
FEATURE
Factory feature indicating that DOM sources are supported.

Constructor Summary

DOMSource()
Default constructor.
DOMSource(Node node)
Constructor with a context node.
DOMSource(Node node, String systemId)
Constructor with a context node and system ID.

Method Summary

Node
getNode()
Returns the context node.
String
getSystemId()
Returns the base URI to use as the context for resolving entities.
void
setNode(Node node)
Sets the context node.
void
setSystemId(String systemId)
Sets the base URI to use as the context for resolving entities.

Field Details

FEATURE

public static final String FEATURE
Factory feature indicating that DOM sources are supported.

Constructor Details

DOMSource

public DOMSource()
Default constructor.


DOMSource

public DOMSource(Node node)
Constructor with a context node.


DOMSource

public DOMSource(Node node,
                 String systemId)
Constructor with a context node and system ID.

Method Details

getNode

public Node getNode()
Returns the context node.


getSystemId

public String getSystemId()
Returns the base URI to use as the context for resolving entities.
Specified by:
getSystemId in interface Source


setNode

public void setNode(Node node)
Sets the context node.


setSystemId

public void setSystemId(String systemId)
Sets the base URI to use as the context for resolving entities.
Specified by:
setSystemId in interface Source