edu.upenn.cis.pdtb
Class PDTBEntityRelationImpl

java.lang.Object
  extended byedu.upenn.cis.pdtb.PDTBNodeImpl
      extended byedu.upenn.cis.pdtb.PDTBEntityRelationImpl
All Implemented Interfaces:
javax.swing.tree.MutableTreeNode, PDTBEntityRelation, PDTBNode, javax.swing.tree.TreeNode
Direct Known Subclasses:
PDTBNoRelationImpl

public class PDTBEntityRelationImpl
extends PDTBNodeImpl
implements PDTBEntityRelation

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
PDTBEntityRelationImpl(PDTBInferenceSite infSite, PDTBSup arg1, PDTBSup arg2)
          Creates a new instance of PDTBEntityRelationImpl
 
Method Summary
 boolean getAllowsChildren()
           
 PDTBSup getArg1()
           
 PDTBSup getArg2()
           
 PDTBInferenceSite getInferenceSite()
           
protected  void initAttributes()
           
 void save(java.io.Writer writer)
           
 void setArg1(PDTBSup arg1)
           
 void setArg2(PDTBSup arg2)
           
 void setInferenceSite(PDTBInferenceSite infSite)
           
 
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

PDTBEntityRelationImpl

public PDTBEntityRelationImpl(PDTBInferenceSite infSite,
                              PDTBSup arg1,
                              PDTBSup arg2)
Creates a new instance of PDTBEntityRelationImpl

Method Detail

initAttributes

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

getArg1

public PDTBSup getArg1()
Specified by:
getArg1 in interface PDTBEntityRelation

getArg2

public PDTBSup getArg2()
Specified by:
getArg2 in interface PDTBEntityRelation

getInferenceSite

public PDTBInferenceSite getInferenceSite()
Specified by:
getInferenceSite in interface PDTBEntityRelation

setArg1

public void setArg1(PDTBSup arg1)
Specified by:
setArg1 in interface PDTBEntityRelation

setArg2

public void setArg2(PDTBSup arg2)
Specified by:
setArg2 in interface PDTBEntityRelation

setInferenceSite

public void setInferenceSite(PDTBInferenceSite infSite)
Specified by:
setInferenceSite in interface PDTBEntityRelation

getAllowsChildren

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

save

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