edu.upenn.cis.pdtb
Class PDTBAltLexRelationImpl

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

public class PDTBAltLexRelationImpl
extends PDTBRelationImpl
implements PDTBAltLexRelation

Implementation of the PDTBAltLexRelation interface.

Author:
nikhild, geraud

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
PDTBAltLexRelationImpl(PDTBSelection sel, PDTBAltLexRelationFeatures feats, PDTBSup sup1, PDTBArg arg1, PDTBArg arg2, PDTBSup sup2)
          Creates a new instance of PDTBAltLexRelationImpl
 
Method Summary
 PDTBAltLexRelationFeatures getFeatures()
          Get the features
 PDTBSelection getSelection()
          Get the selection associated with the phrase establishing the relation.
protected  void initAttributes()
           
 void save(java.io.Writer writer)
           
 void setFeatures(PDTBAltLexRelationFeatures feats)
          Set the features.
 void setSelection(PDTBSelection sel)
          Set the selection correponding to the phrase establishing the relation.
 
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

PDTBAltLexRelationImpl

public PDTBAltLexRelationImpl(PDTBSelection sel,
                              PDTBAltLexRelationFeatures feats,
                              PDTBSup sup1,
                              PDTBArg arg1,
                              PDTBArg arg2,
                              PDTBSup sup2)
Creates a new instance of PDTBAltLexRelationImpl

Method Detail

initAttributes

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

getFeatures

public PDTBAltLexRelationFeatures getFeatures()
Description copied from interface: PDTBAltLexRelation
Get the features

Specified by:
getFeatures in interface PDTBAltLexRelation

setFeatures

public void setFeatures(PDTBAltLexRelationFeatures feats)
Description copied from interface: PDTBAltLexRelation
Set the features.

Specified by:
setFeatures in interface PDTBAltLexRelation

setSelection

public void setSelection(PDTBSelection sel)
Description copied from interface: PDTBAltLexRelation
Set the selection correponding to the phrase establishing the relation.

Specified by:
setSelection in interface PDTBAltLexRelation

getSelection

public PDTBSelection getSelection()
Description copied from interface: PDTBAltLexRelation
Get the selection associated with the phrase establishing the relation.

Specified by:
getSelection in interface PDTBAltLexRelation

save

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