MaltParser 1.0.3

org.maltparser.parser.guide.feature
Class ParserActionFeature

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

public class ParserActionFeature
extends AtomicFeature

TODO: NB not tested yet, probably wrong behavior

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
ParserActionFeature(ParsingAlgorithm parsingAlgorithm, String spec)
           
 
Method Summary
 boolean equals(Object obj)
           
 Integer getIntegerValue(String value)
           
 String getStringValue(Integer value)
           
 int hashCode()
           
 boolean init(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
getCardinality, getFirstIntegerValue, getFirstStringValue, getIntegerValues, getParsingAlgorithm, getStringValues, getValues, init, initialize, isKnown, isNullValue, setCardinality, setParsingAlgorithm
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParserActionFeature

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

init

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

update

public void update()
            throws MaltChainedException
Specified by:
update 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

getStringValue

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

getIntegerValue

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

updateCardinality

public void updateCardinality()
Specified by:
updateCardinality in class Feature

equals

public boolean equals(Object obj)
Overrides:
equals in class AtomicFeature

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class AtomicFeature

MaltParser 1.0.3

Copyright 2007 Johan Hall, Jens Nilsson and Joakim Nivre.