Package org.apache.uima.cas.impl
Class FSBooleanConstraintImpl
- java.lang.Object
-
- org.apache.uima.cas.impl.FSBooleanConstraintImpl
-
- All Implemented Interfaces:
java.io.Serializable,FSBooleanConstraint,FSConstraint
public class FSBooleanConstraintImpl extends java.lang.Object implements FSBooleanConstraint
See interface for documentation.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private booleancondition
-
Constructor Summary
Constructors Constructor Description FSBooleanConstraintImpl()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voideq(boolean cond)Set the constraint.booleanmatch(boolean cond)Check the condition.java.lang.StringtoString()
-
-
-
Method Detail
-
eq
public void eq(boolean cond)
Description copied from interface:FSBooleanConstraintSet the constraint.- Specified by:
eqin interfaceFSBooleanConstraint- Parameters:
cond- The condition that needs to be matched to satisfy the constraint.
-
match
public boolean match(boolean cond)
Description copied from interface:FSBooleanConstraintCheck the condition.- Specified by:
matchin interfaceFSBooleanConstraint- Parameters:
cond- Value to compare with the condition.- Returns:
- True if value and constraint are equal, false else.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-