edu.upenn.cis.pdtb
Class PDTBSupImpl

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

public class PDTBSupImpl
extends PDTBNodeImpl
implements PDTBSup

Author:
nikhild

Nested Class Summary
 
Nested classes inherited from class edu.upenn.cis.pdtb.PDTBNodeImpl
PDTBNodeImpl.PDTBAttributeImpl
 
Field Summary
protected  PDTBSelection fSel
           
 
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
PDTBSupImpl(PDTBSelection sel)
          Creates a new instance of PDTBSupImpl
 
Method Summary
 boolean getAllowsChildren()
           
 PDTBRelation getRelation()
          Get the relation to which this belongs.
 PDTBSelection getSelection()
          Get the selection.
protected  void initAttributes()
           
 void save(java.io.Writer writer)
           
 void setRelation(PDTBRelation rel)
          Set the relation to which this belongs.
 void setSelection(PDTBSelection sel)
          Set the selection.
 
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
 

Field Detail

fSel

protected PDTBSelection fSel
Constructor Detail

PDTBSupImpl

public PDTBSupImpl(PDTBSelection sel)
Creates a new instance of PDTBSupImpl

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

getSelection

public PDTBSelection getSelection()
Description copied from interface: PDTBSup
Get the selection.

Specified by:
getSelection in interface PDTBSup

setSelection

public void setSelection(PDTBSelection sel)
Description copied from interface: PDTBSup
Set the selection.

Specified by:
setSelection in interface PDTBSup

getRelation

public PDTBRelation getRelation()
Description copied from interface: PDTBSup
Get the relation to which this belongs.

Specified by:
getRelation in interface PDTBSup

setRelation

public void setRelation(PDTBRelation rel)
Description copied from interface: PDTBSup
Set the relation to which this belongs.

Specified by:
setRelation in interface PDTBSup

save

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