edu.ucla.stat.SOCR.TG_distributome.editor
Class TreeTableCodec

java.lang.Object
  extended by edu.ucla.stat.SOCR.TG_distributome.editor.TreeTableCodec

public class TreeTableCodec
extends java.lang.Object

Codec for converting between trees and Table Models.

Version:
11 September 2007

Constructor Summary
TreeTableCodec()
          Construct a Tree-Table Codec.
 
Method Summary
 int getEdgeCount()
           
 ElementTableModel[] getEdgeTableModels()
           
 int getFormulaCount()
           
 ElementTableModel[] getFormulaTableModels()
           
 int getNodeCount()
           
 ElementTableModel[] getNodeTableModels()
           
 int getRefCount()
           
 ElementTableModel[] getRefTableModels()
           
 void loadEdge(int index, SOCREdge edge)
           
 void loadEdge(SOCREdge edge)
           
 void loadFormula(int index, SOCRFormula formula)
           
 void loadFormula(SOCRFormula formula)
           
 void loadNode(int index, SOCRNode node)
           
 void loadNode(SOCRNode node)
           
 void loadRef(int index, SOCRReference ref)
           
 void loadRef(SOCRReference ref)
           
 void toTableModels(org.w3c.dom.Node rootNode)
          Converts the DOM Node to Table Models.
static java.lang.String toXml(ElementTableModel[] nodeModels, ElementTableModel[] edgeModels, ElementTableModel[] formulaModels, ElementTableModel[] refModels)
          Converts the Table Models to a XML-encoded string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeTableCodec

public TreeTableCodec()
Construct a Tree-Table Codec.

Method Detail

getNodeTableModels

public ElementTableModel[] getNodeTableModels()

getEdgeTableModels

public ElementTableModel[] getEdgeTableModels()

getFormulaTableModels

public ElementTableModel[] getFormulaTableModels()

getRefTableModels

public ElementTableModel[] getRefTableModels()

getNodeCount

public int getNodeCount()

getEdgeCount

public int getEdgeCount()

getFormulaCount

public int getFormulaCount()

getRefCount

public int getRefCount()

loadNode

public void loadNode(SOCRNode node)

loadNode

public void loadNode(int index,
                     SOCRNode node)

loadEdge

public void loadEdge(SOCREdge edge)

loadEdge

public void loadEdge(int index,
                     SOCREdge edge)

loadFormula

public void loadFormula(SOCRFormula formula)

loadFormula

public void loadFormula(int index,
                        SOCRFormula formula)

loadRef

public void loadRef(SOCRReference ref)

loadRef

public void loadRef(int index,
                    SOCRReference ref)

toXml

public static java.lang.String toXml(ElementTableModel[] nodeModels,
                                     ElementTableModel[] edgeModels,
                                     ElementTableModel[] formulaModels,
                                     ElementTableModel[] refModels)
Converts the Table Models to a XML-encoded string.

Parameters:
tableModels - Table models of provenance data.
Returns:
XML-encoded string constructed from the table models.

toTableModels

public void toTableModels(org.w3c.dom.Node rootNode)
Converts the DOM Node to Table Models.

Parameters:
rootNode - Root Node of provenance data.