org.maltparser.core.feature.value
Class FeatureValue
java.lang.Object
org.maltparser.core.feature.value.FunctionValue
org.maltparser.core.feature.value.FeatureValue
- Direct Known Subclasses:
- MultipleFeatureValue, SingleFeatureValue
public abstract class FeatureValue
- extends FunctionValue
- Since:
- 1.0
- Author:
- Johan Hall
nullValue
protected boolean nullValue
cardinality
protected int cardinality
FeatureValue
public FeatureValue(Function function)
reset
public void reset()
- Specified by:
reset
in class FunctionValue
isNullValue
public boolean isNullValue()
setNullValue
public void setNullValue(boolean nullValue)
getCardinality
public int getCardinality()
- Returns the cardinality (the number of distinct values) of the feature
- Returns:
- the cardinality (the number of distinct values) of the feature
setCardinality
public void setCardinality(int cardinality)
- Sets the cardinality (the number of distinct values) of the feature
- Parameters:
cardinality
- the cardinality (the number of distinct values)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class FunctionValue
toString
public String toString()
- Overrides:
toString
in class FunctionValue
Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.