MaltParser 1.0.1

org.maltparser.parser.guide.feature
Class SuffixFeature

java.lang.Object
  extended by org.maltparser.parser.guide.feature.Feature
      extended by org.maltparser.parser.guide.feature.SuffixFeature

public class SuffixFeature
extends Feature

Since:
1.0
Author:
Johan Hall

Field Summary
 
Fields inherited from class org.maltparser.parser.guide.feature.Feature
cardinality, featureKnown, featureValues, nullValue, parsingAlgorithm
 
Constructor Summary
SuffixFeature(ParsingAlgorithm parsingAlgorithm, String spec)
           
 
Method Summary
 Integer getIntegerValue(String value)
           
 Feature getParentFeature()
           
 String getStringValue(Integer value)
           
 boolean init(String spec)
           
protected  Feature initParentFeature(String spec)
           
 void setValue(Integer value)
           
 void setValue(String value)
           
 String toString()
           
 void update()
           
 void updateCardinality()
           
 
Methods inherited from class org.maltparser.parser.guide.feature.Feature
equals, getCardinality, getFirstIntegerValue, getFirstStringValue, getIntegerValues, getParsingAlgorithm, getStringValues, getValues, init, initialize, isKnown, isNullValue, setCardinality, setParsingAlgorithm
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SuffixFeature

public SuffixFeature(ParsingAlgorithm parsingAlgorithm,
                     String spec)
              throws MaltChainedException
Throws:
MaltChainedException
Method Detail

initParentFeature

protected Feature initParentFeature(String spec)
                             throws MaltChainedException
Throws:
MaltChainedException

init

public boolean init(String spec)
             throws MaltChainedException
Specified by:
init in class Feature
Throws:
MaltChainedException

getIntegerValue

public Integer getIntegerValue(String value)
                        throws MaltChainedException
Specified by:
getIntegerValue in class Feature
Throws:
MaltChainedException

getStringValue

public String getStringValue(Integer value)
                      throws MaltChainedException
Specified by:
getStringValue in class Feature
Throws:
MaltChainedException

setValue

public void setValue(Integer value)
              throws MaltChainedException
Specified by:
setValue in class Feature
Throws:
MaltChainedException

setValue

public void setValue(String value)
              throws MaltChainedException
Specified by:
setValue in class Feature
Throws:
MaltChainedException

update

public void update()
            throws MaltChainedException
Specified by:
update in class Feature
Throws:
MaltChainedException

getParentFeature

public Feature getParentFeature()

updateCardinality

public void updateCardinality()
                       throws MaltChainedException
Specified by:
updateCardinality in class Feature
Throws:
MaltChainedException

toString

public String toString()
Overrides:
toString in class Feature

MaltParser 1.0.1

Copyright 2007 Johan Hall, Jens Nilsson and Joakim Nivre.