facets.util.datatree
Class Nodes.TreeRoot

java.lang.Object
  extended by facets.util.Tracer
      extended by facets.util.datatree.Nodes.TreeRoot
Direct Known Subclasses:
XmlDocRoot
Enclosing class:
Nodes

public abstract static class Nodes.TreeRoot
extends Tracer

Provides for (de)persisting the contents of a DataNode.


Field Summary
 DataNode tree
          Root node of the tree to read or write.
 
Constructor Summary
Nodes.TreeRoot(DataNode node)
          Unique constructor.
 
Method Summary
abstract  void readFromSource(java.lang.Object src)
          Read content into tree.
abstract  void writeToSink(java.lang.Object sink)
          Write out content of tree.
 
Methods inherited from class facets.util.Tracer
trace, trace, trace, trace, trace, traceDebug, traceDebug, traceObjectText, traceOutput, traceOutputWithClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tree

public final DataNode tree
Root node of the tree to read or write.

Constructor Detail

Nodes.TreeRoot

public Nodes.TreeRoot(DataNode node)
Unique constructor.

Parameters:
node - to (de)persist
Method Detail

readFromSource

public abstract void readFromSource(java.lang.Object src)
                             throws java.io.IOException
Read content into tree.

Throws:
java.io.IOException

writeToSink

public abstract void writeToSink(java.lang.Object sink)
                          throws java.io.IOException
Write out content of tree.

Throws:
java.io.IOException