edu.upenn.cis.pdtb
Class PDTBRelationListImpl

java.lang.Object
  extended byedu.upenn.cis.pdtb.PDTBNodeImpl
      extended byedu.upenn.cis.pdtb.PDTBRelationListImpl
All Implemented Interfaces:
javax.swing.tree.MutableTreeNode, PDTBNode, PDTBRelationList, javax.swing.tree.TreeNode

public class PDTBRelationListImpl
extends PDTBNodeImpl
implements PDTBRelationList

Author:
nikhild

Nested Class Summary
 
Nested classes inherited from class edu.upenn.cis.pdtb.PDTBNodeImpl
PDTBNodeImpl.PDTBAttributeImpl
 
Field Summary
 
Fields inherited from class edu.upenn.cis.pdtb.PDTBNodeImpl
fAttributes, fAttributesComparator
 
Fields inherited from interface edu.upenn.cis.pdtb.PDTBNode
AltLexRelationQName, Arg1QName, Arg2QName, EntityRelationQName, ExplicitRelationQName, ImplicitRelationQName, NoRelationQName, RelationListQName, Sup1QName, Sup2QName
 
Constructor Summary
PDTBRelationListImpl(java.lang.String rawText, PTBTreeNode root, java.lang.String secNo, java.lang.String fileNo)
          Creates a new instance of PDTBRelationListImpl
 
Method Summary
 boolean getAllowsChildren()
           
 java.lang.String getFileNo()
          Get the file number, if associated.
 PTBTreeNode getPTBRoot()
          The children of this root node correspond to parse trees for each sentence.
 java.lang.String getRawText()
          Get the raw text associated with this relation list (the entire discourse).
 java.lang.String getSecNo()
          Get the section number is one is associated.
protected  void initAttributes()
           
 void save(java.io.Writer writer)
           
 
Methods inherited from class edu.upenn.cis.pdtb.PDTBNodeImpl
children, getChildAt, getChildCount, getIndex, getParent, getUserObject, insert, isLeaf, pdtbAddFirstChild, pdtbAddLastChild, pdtbGetAttributes, pdtbGetFirstChild, pdtbGetLastChild, pdtbGetLocalName, pdtbGetNamespaceUri, pdtbGetNextSibling, pdtbGetPreviousSibling, pdtbGetQName, pdtbRemoveAttribute, pdtbSetAttribute, pdtbSetName, pdtbSetNextSibling, pdtbSetPreviousSibling, remove, remove, removeFromParent, setParent, setUserObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.upenn.cis.pdtb.PDTBNode
getUserObject, pdtbAddFirstChild, pdtbAddLastChild, pdtbGetAttributes, pdtbGetFirstChild, pdtbGetLastChild, pdtbGetLocalName, pdtbGetNamespaceUri, pdtbGetNextSibling, pdtbGetPreviousSibling, pdtbGetQName, pdtbRemoveAttribute, pdtbSetAttribute, pdtbSetName, pdtbSetNextSibling, pdtbSetPreviousSibling
 
Methods inherited from interface javax.swing.tree.MutableTreeNode
insert, remove, remove, removeFromParent, setParent, setUserObject
 
Methods inherited from interface javax.swing.tree.TreeNode
children, getChildAt, getChildCount, getIndex, getParent, isLeaf
 

Constructor Detail

PDTBRelationListImpl

public PDTBRelationListImpl(java.lang.String rawText,
                            PTBTreeNode root,
                            java.lang.String secNo,
                            java.lang.String fileNo)
Creates a new instance of PDTBRelationListImpl

Method Detail

initAttributes

protected void initAttributes()
Specified by:
initAttributes in class PDTBNodeImpl

getAllowsChildren

public boolean getAllowsChildren()
Specified by:
getAllowsChildren in interface javax.swing.tree.TreeNode

getFileNo

public java.lang.String getFileNo()
Description copied from interface: PDTBRelationList
Get the file number, if associated.

Specified by:
getFileNo in interface PDTBRelationList

getRawText

public java.lang.String getRawText()
Description copied from interface: PDTBRelationList
Get the raw text associated with this relation list (the entire discourse).

Specified by:
getRawText in interface PDTBRelationList

getSecNo

public java.lang.String getSecNo()
Description copied from interface: PDTBRelationList
Get the section number is one is associated.

Specified by:
getSecNo in interface PDTBRelationList

getPTBRoot

public PTBTreeNode getPTBRoot()
Description copied from interface: PDTBRelationList
The children of this root node correspond to parse trees for each sentence.

Specified by:
getPTBRoot in interface PDTBRelationList

save

public void save(java.io.Writer writer)
          throws java.io.IOException
Specified by:
save in class PDTBNodeImpl
Throws:
java.io.IOException