javax.xml.transform.dom
Class DOMSource

java.lang.Object
  extended by javax.xml.transform.dom.DOMSource
All Implemented Interfaces:
Source

public class DOMSource
extends 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FEATURE

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

See Also:
Constant Field Values
Constructor Detail

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 Detail

setNode

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


getNode

public Node getNode()
Returns 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
Parameters:
systemId - the system ID URI

getSystemId

public String getSystemId()
Returns the base URI to use as the context for resolving entities.

Specified by:
getSystemId in interface Source