edu.upenn.cis.pdtb
Class PDTBExplicitRelationFeaturesImpl

java.lang.Object
  extended byedu.upenn.cis.pdtb.PDTBFeaturesImpl
      extended byedu.upenn.cis.pdtb.PDTBExplicitRelationFeaturesImpl
All Implemented Interfaces:
PDTBExplicitRelationFeatures, PDTBFeatures

public class PDTBExplicitRelationFeaturesImpl
extends PDTBFeaturesImpl
implements PDTBExplicitRelationFeatures

Implementation of the PDTBExplicitRelationFeatures interface.

Author:
nikhild

Field Summary
 
Fields inherited from interface edu.upenn.cis.pdtb.PDTBExplicitRelationFeatures
ConnHeadAttributeQName
 
Fields inherited from interface edu.upenn.cis.pdtb.PDTBFeatures
Factual, FactualityAttributeQName, FactualVal, NegativePolarityVal, NonFactual, NonFactualVal, NullFactual, NullFactualVal, PolarityAttributeQName, PolarityNegative, PolarityPositive, PositivePolarityVal, SourceAttributeQName, SourceInherited, SourceInheritedVal, SourceOther, SourceOtherVal, SourceWriter, SourceWriterVal
 
Constructor Summary
PDTBExplicitRelationFeaturesImpl(java.lang.String source, java.lang.String factuality, java.lang.String polarity, java.lang.String connHead)
          Creates a new instance of PDTBExplicitRelationFeaturesImpl
 
Method Summary
 java.lang.String getConnHead()
          Get the head of the connective.
 void save(java.io.Writer writer)
           
 void updateAttributesOnNode()
          Sets the connHead attribute on the ownerNode.
 
Methods inherited from class edu.upenn.cis.pdtb.PDTBFeaturesImpl
getFactuality, getPDTBNode, getPolarity, getSource, setPDTBNode
 
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.PDTBFeatures
getFactuality, getPDTBNode, getPolarity, getSource, setPDTBNode
 

Constructor Detail

PDTBExplicitRelationFeaturesImpl

public PDTBExplicitRelationFeaturesImpl(java.lang.String source,
                                        java.lang.String factuality,
                                        java.lang.String polarity,
                                        java.lang.String connHead)
Creates a new instance of PDTBExplicitRelationFeaturesImpl

Method Detail

updateAttributesOnNode

public void updateAttributesOnNode()
Sets the connHead attribute on the ownerNode.

Specified by:
updateAttributesOnNode in interface PDTBFeatures
Overrides:
updateAttributesOnNode in class PDTBFeaturesImpl

getConnHead

public java.lang.String getConnHead()
Description copied from interface: PDTBExplicitRelationFeatures
Get the head of the connective.

Specified by:
getConnHead in interface PDTBExplicitRelationFeatures

save

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