edu.stanford.nlp.trees.tregex.gui
Class TreeFromFile

java.lang.Object
  extended by edu.stanford.nlp.trees.tregex.gui.TreeFromFile

public class TreeFromFile
extends java.lang.Object

Simple utility class for storing a tree as well as the sentence the tree represents and a label with the filename of the file that the tree was stored in.

Author:
Anna Rafferty

Constructor Summary
TreeFromFile(Tree t)
           
TreeFromFile(Tree t, java.lang.String filename)
           
 
Method Summary
 java.util.Set<Constituent> getDiffConstituents()
           
 Tree getDiffDecoratedTree()
           
 java.lang.String getFilename()
           
 javax.swing.JTextField getLabel()
           
 int getSentenceId()
           
 Tree getTree()
           
 void setDiffConstituents(java.util.Set<Constituent> lessConstituents)
           
 void setDiffDecoratedTree(Tree decoratedTree)
           
 void setFilename(java.lang.String filename)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreeFromFile

public TreeFromFile(Tree t)

TreeFromFile

public TreeFromFile(Tree t,
                    java.lang.String filename)
Method Detail

getFilename

public java.lang.String getFilename()

setFilename

public void setFilename(java.lang.String filename)

getSentenceId

public int getSentenceId()

getTree

public Tree getTree()

getLabel

public javax.swing.JTextField getLabel()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setDiffConstituents

public void setDiffConstituents(java.util.Set<Constituent> lessConstituents)

getDiffConstituents

public java.util.Set<Constituent> getDiffConstituents()

setDiffDecoratedTree

public void setDiffDecoratedTree(Tree decoratedTree)

getDiffDecoratedTree

public Tree getDiffDecoratedTree()


Stanford NLP Group