public interface FSBooleanConstraint extends FSConstraint
To use the constraint, invoke its match(boolean)
method, passing the value to test. You
can also embed this test with a path specification, using the
ConstraintFactory.embedConstraint(FeaturePath, FSConstraint)
method,
and use it to test feature structures, or combine it with other tests using the
ConstraintFactory.and(FSMatchConstraint, FSMatchConstraint)
and
ConstraintFactory.or(FSMatchConstraint, FSMatchConstraint)
methods.
Modifier and Type | Method and Description |
---|---|
void |
eq(boolean condition)
Set the constraint.
|
boolean |
match(boolean condition)
Check the condition.
|
void eq(boolean condition)
condition
- The condition that needs to be matched to satisfy the constraint.boolean match(boolean condition)
condition
- Value to compare with the condition.Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.