edu.upenn.cis.pdtb
Class PDTBExplicitRelationImpl

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

public class PDTBExplicitRelationImpl
extends PDTBRelationImpl
implements PDTBExplicitRelation

Implementation of the PDTBExplicitRelation interface.

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, fAttributesPriorityComparator
 
Fields inherited from interface edu.upenn.cis.pdtb.PDTBNode
AltLexRelationQName, Arg1QName, Arg2QName, EntityRelationQName, ExplicitRelationQName, ImplicitRelationQName, NoRelationQName, RelationListQName, Sup1QName, Sup2QName
 
Constructor Summary
PDTBExplicitRelationImpl(PDTBSelection sel, PDTBExplicitRelationFeatures feats, PDTBSup sup1, PDTBArg arg1, PDTBArg arg2, PDTBSup sup2)
          Creates a new instance of PDTBRelationImpl
 
Method Summary
 PDTBExplicitRelationFeatures getFeatures()
          Get the features
 PDTBSelection getSelection()
          Get the selection associated with the connective.
protected  void initAttributes()
           
 void save(java.io.Writer writer)
           
 void setFeatures(PDTBExplicitRelationFeatures feats)
          Set the features
 void setSelection(PDTBSelection sel)
          Set the selection associated with the connective.
 
Methods inherited from class edu.upenn.cis.pdtb.PDTBRelationImpl
getAllowsChildren, getArg1, getArg2, getRelationList, getSup1, getSup2, setArg1, setArg2, setRelationList, setSup1, setSup2
 
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.PDTBRelation
getArg1, getArg2, getRelationList, getSup1, getSup2, setArg1, setArg2, setRelationList, setSup1, setSup2
 
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, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
 

Constructor Detail

PDTBExplicitRelationImpl

public PDTBExplicitRelationImpl(PDTBSelection sel,
                                PDTBExplicitRelationFeatures feats,
                                PDTBSup sup1,
                                PDTBArg arg1,
                                PDTBArg arg2,
                                PDTBSup sup2)
Creates a new instance of PDTBRelationImpl

Method Detail

initAttributes

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

getFeatures

public PDTBExplicitRelationFeatures getFeatures()
Description copied from interface: PDTBExplicitRelation
Get the features

Specified by:
getFeatures in interface PDTBExplicitRelation

setFeatures

public void setFeatures(PDTBExplicitRelationFeatures feats)
Description copied from interface: PDTBExplicitRelation
Set the features

Specified by:
setFeatures in interface PDTBExplicitRelation

setSelection

public void setSelection(PDTBSelection sel)
Description copied from interface: PDTBExplicitRelation
Set the selection associated with the connective.

Specified by:
setSelection in interface PDTBExplicitRelation

getSelection

public PDTBSelection getSelection()
Description copied from interface: PDTBExplicitRelation
Get the selection associated with the connective.

Specified by:
getSelection in interface PDTBExplicitRelation

save

public void save(java.io.Writer writer)
          throws java.io.IOException
Overrides:
save in class PDTBRelationImpl
Throws:
java.io.IOException