MaltParser 1.4.1

org.maltparser.core.feature.value
Class FeatureValue

java.lang.Object
  extended by org.maltparser.core.feature.value.FunctionValue
      extended by org.maltparser.core.feature.value.FeatureValue
Direct Known Subclasses:
MultipleFeatureValue, SingleFeatureValue

public abstract class FeatureValue
extends FunctionValue

Since:
1.0
Author:
Johan Hall

Field Summary
protected  int cardinality
           
protected  boolean nullValue
           
 
Fields inherited from class org.maltparser.core.feature.value.FunctionValue
function
 
Constructor Summary
FeatureValue(Function function)
           
 
Method Summary
 boolean equals(Object obj)
           
 int getCardinality()
          Returns the cardinality (the number of distinct values) of the feature
 boolean isNullValue()
           
 void reset()
           
 void setCardinality(int cardinality)
          Sets the cardinality (the number of distinct values) of the feature
 void setNullValue(boolean nullValue)
           
 String toString()
           
 
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

nullValue

protected boolean nullValue

cardinality

protected int cardinality
Constructor Detail

FeatureValue

public FeatureValue(Function function)
Method Detail

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

MaltParser 1.4.1

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