org.translet.processor.dom
Class DOMTranslatorResult
java.lang.Object
|
+--org.translet.processor.dom.DOMTranslatorResult
- All Implemented Interfaces:
- TranslatorResult
- public class DOMTranslatorResult
- extends Object
- implements TranslatorResult
Acts as a holder of the translated result tree, in
the form of a Document Object Model (dom) tree. The
there is no output DOM source set, then a new
Document node will be created that will hold
the result of the translation.
Method Summary |
Document |
getDocument()
Returns the DOM document that holds the results
of the translation. |
void |
setDocument(Document doc)
Sets the document that will hold the results of
the translation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOMTranslatorResult
public DOMTranslatorResult()
- Zero-argument default constructor.
DOMTranslatorResult
public DOMTranslatorResult(Document doc)
- Uses the DOM document for creating the
resulting xml nodes. All xpaths are relative
to the root of this document.
- Parameters:
doc
- DOM document to which the resulting
elements will be appended.
setDocument
public void setDocument(Document doc)
- Sets the document that will hold the results of
the translation.
- Parameters:
doc
- DOM document to which the resulting
elements will be appended.
getDocument
public Document getDocument()
- Returns the DOM document that holds the results
of the translation.
- Returns:
- DOM document that holds the results