edu.upenn.cis.pdtb
Class PDTBRelationImpl

java.lang.Object
  extended byedu.upenn.cis.pdtb.PDTBNodeImpl
      extended byedu.upenn.cis.pdtb.PDTBRelationImpl
All Implemented Interfaces:
javax.swing.tree.MutableTreeNode, PDTBNode, PDTBRelation, javax.swing.tree.TreeNode
Direct Known Subclasses:
PDTBAltLexRelationImpl, PDTBExplicitRelationImpl, PDTBImplicitRelationImpl

public abstract class PDTBRelationImpl
extends PDTBNodeImpl
implements PDTBRelation

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
PDTBRelationImpl(PDTBSup sup1, PDTBArg arg1, PDTBArg arg2, PDTBSup sup2)
          Creates a new instance of PDTBRelationImpl
 
Method Summary
 boolean getAllowsChildren()
           
 PDTBArg getArg1()
           
 PDTBArg getArg2()
           
 PDTBRelationList getRelationList()
           
 PDTBSup getSup1()
           
 PDTBSup getSup2()
           
 void save(java.io.Writer writer)
           
 void setArg1(PDTBArg arg1)
           
 void setArg2(PDTBArg arg2)
           
 void setRelationList(PDTBRelationList parent)
           
 void setSup1(PDTBSup sup1)
           
 void setSup2(PDTBSup sup2)
           
 
Methods inherited from class edu.upenn.cis.pdtb.PDTBNodeImpl
children, getChildAt, getChildCount, getIndex, getParent, getUserObject, initAttributes, 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

PDTBRelationImpl

public PDTBRelationImpl(PDTBSup sup1,
                        PDTBArg arg1,
                        PDTBArg arg2,
                        PDTBSup sup2)
Creates a new instance of PDTBRelationImpl

Method Detail

getAllowsChildren

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

getArg1

public PDTBArg getArg1()
Specified by:
getArg1 in interface PDTBRelation

getArg2

public PDTBArg getArg2()
Specified by:
getArg2 in interface PDTBRelation

setArg1

public void setArg1(PDTBArg arg1)
Specified by:
setArg1 in interface PDTBRelation

setArg2

public void setArg2(PDTBArg arg2)
Specified by:
setArg2 in interface PDTBRelation

getSup1

public PDTBSup getSup1()
Specified by:
getSup1 in interface PDTBRelation

getSup2

public PDTBSup getSup2()
Specified by:
getSup2 in interface PDTBRelation

setSup1

public void setSup1(PDTBSup sup1)
Specified by:
setSup1 in interface PDTBRelation

setSup2

public void setSup2(PDTBSup sup2)
Specified by:
setSup2 in interface PDTBRelation

setRelationList

public void setRelationList(PDTBRelationList parent)
Specified by:
setRelationList in interface PDTBRelation

getRelationList

public PDTBRelationList getRelationList()
Specified by:
getRelationList in interface PDTBRelation

save

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