edu.upenn.cis.pdtb
Class PDTBFeaturesImpl

java.lang.Object
  extended byedu.upenn.cis.pdtb.PDTBFeaturesImpl
All Implemented Interfaces:
PDTBFeatures
Direct Known Subclasses:
PDTBAltLexRelationFeaturesImpl, PDTBExplicitRelationFeaturesImpl, PDTBImplicitRelationFeaturesImpl

public class PDTBFeaturesImpl
extends java.lang.Object
implements PDTBFeatures

Implementation of the PDTBFeatures interface.

Author:
nikhild

Field Summary
 
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
PDTBFeaturesImpl(java.lang.String source, java.lang.String factuality, java.lang.String polarity)
          Creates a new instance of PDTBFeaturesImpl
 
Method Summary
 int getFactuality()
          Get the factuality.
 PDTBNode getPDTBNode()
          Get the node on with which these features are associated.
 int getPolarity()
          Get the polarity.
 int getSource()
          Get the source.
 void save(java.io.Writer writer)
           
 void setPDTBNode(PDTBNode node)
          Set the node with which these features are associated.
 void updateAttributesOnNode()
          Update the attributes on the node to the string values of these features.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDTBFeaturesImpl

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

Method Detail

getPDTBNode

public PDTBNode getPDTBNode()
Description copied from interface: PDTBFeatures
Get the node on with which these features are associated.

Specified by:
getPDTBNode in interface PDTBFeatures

getFactuality

public int getFactuality()
Description copied from interface: PDTBFeatures
Get the factuality.

Specified by:
getFactuality in interface PDTBFeatures
Returns:
One of PDTBFeatures.Factual, PDTBFeatures.NonFactual, and PDTBFeatures.NullFactual.

getPolarity

public int getPolarity()
Description copied from interface: PDTBFeatures
Get the polarity.

Specified by:
getPolarity in interface PDTBFeatures
Returns:
One of PDTBFeatures.PolarityPositive, PDTBFeatures.PolarityNegative.

getSource

public int getSource()
Description copied from interface: PDTBFeatures
Get the source.

Specified by:
getSource in interface PDTBFeatures
Returns:
One of PDTBFeatures.SourceWriter, PDTBFeatures.SourceOther, and PDTBFeatures.SourceInherited.

setPDTBNode

public void setPDTBNode(PDTBNode node)
Description copied from interface: PDTBFeatures
Set the node with which these features are associated.

Specified by:
setPDTBNode in interface PDTBFeatures

updateAttributesOnNode

public void updateAttributesOnNode()
Description copied from interface: PDTBFeatures
Update the attributes on the node to the string values of these features.

Specified by:
updateAttributesOnNode in interface PDTBFeatures

save

public void save(java.io.Writer writer)
          throws java.io.IOException
Throws:
java.io.IOException