MaltParser 1.4.1

org.maltparser.core.feature.value
Class MultipleFeatureValue

java.lang.Object
  extended by org.maltparser.core.feature.value.FunctionValue
      extended by org.maltparser.core.feature.value.FeatureValue
          extended by org.maltparser.core.feature.value.MultipleFeatureValue

public class MultipleFeatureValue
extends FeatureValue

Since:
1.0
Author:
Johan Hall

Field Summary
protected  Map<Integer,Boolean> featureKnown
           
protected  SortedMap<Integer,String> featureValues
           
 
Fields inherited from class org.maltparser.core.feature.value.FeatureValue
cardinality, nullValue
 
Fields inherited from class org.maltparser.core.feature.value.FunctionValue
function
 
Constructor Summary
MultipleFeatureValue(Function function)
           
 
Method Summary
 void addFeatureValue(int code, String Symbol, boolean known)
           
 Set<Integer> getCodes()
           
 int getFirstCode()
           
 String getFirstSymbol()
           
 Set<String> getSymbols()
           
 boolean isKnown(int value)
           
 void reset()
           
protected  void setFeatureValues(SortedMap<Integer,String> featureValues, Map<Integer,Boolean> featureKnown)
           
 String toString()
           
 
Methods inherited from class org.maltparser.core.feature.value.FeatureValue
equals, getCardinality, isNullValue, setCardinality, setNullValue
 
Methods inherited from class org.maltparser.core.feature.value.FunctionValue
getFunction, setFunction
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

featureValues

protected SortedMap<Integer,String> featureValues

featureKnown

protected Map<Integer,Boolean> featureKnown
Constructor Detail

MultipleFeatureValue

public MultipleFeatureValue(Function function)
Method Detail

reset

public void reset()
Overrides:
reset in class FeatureValue

addFeatureValue

public void addFeatureValue(int code,
                            String Symbol,
                            boolean known)

setFeatureValues

protected void setFeatureValues(SortedMap<Integer,String> featureValues,
                                Map<Integer,Boolean> featureKnown)

getCodes

public Set<Integer> getCodes()

getFirstCode

public int getFirstCode()

getSymbols

public Set<String> getSymbols()

getFirstSymbol

public String getFirstSymbol()

isKnown

public boolean isKnown(int value)

toString

public String toString()
Overrides:
toString in class FeatureValue

MaltParser 1.4.1

Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.