public class ConstraintFactoryImpl extends ConstraintFactory
| Constructor and Description |
|---|
ConstraintFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
FSMatchConstraint |
and(FSMatchConstraint c1,
FSMatchConstraint c2)
Conjoin two constraints.
|
FSBooleanConstraint |
createBooleanConstraint()
Create a new boolean constraint.
|
FSFloatConstraint |
createFloatConstraint()
Create a new float constraint.
|
FSIntConstraint |
createIntConstraint()
Create a new int constraint.
|
FSStringConstraint |
createStringConstraint()
Create a new String constraint.
|
FSTypeConstraint |
createTypeConstraint()
Create a new type constraint.
|
FSMatchConstraint |
embedConstraint(ArrayList<String> path,
FSConstraint constraint)
Embed a constraint under a path.
|
FSMatchConstraint |
embedConstraint(FeaturePath featPath,
FSConstraint constraint)
Combine a constraint test with a path from a feature structure instance to the value to be
tested.
|
FSMatchConstraint |
or(FSMatchConstraint c1,
FSMatchConstraint c2)
Disjoin two constraints.
|
instancepublic FSTypeConstraint createTypeConstraint()
ConstraintFactorycreateTypeConstraint in class ConstraintFactorypublic FSIntConstraint createIntConstraint()
ConstraintFactorycreateIntConstraint in class ConstraintFactorypublic FSFloatConstraint createFloatConstraint()
ConstraintFactorycreateFloatConstraint in class ConstraintFactorypublic FSStringConstraint createStringConstraint()
ConstraintFactorycreateStringConstraint in class ConstraintFactorypublic FSBooleanConstraint createBooleanConstraint()
ConstraintFactorycreateBooleanConstraint in class ConstraintFactorypublic FSMatchConstraint embedConstraint(FeaturePath featPath, FSConstraint constraint)
ConstraintFactoryembedConstraint in class ConstraintFactoryfeatPath - The path to embed the constraint under. Create a new path with
CAS.createFeaturePath().constraint - The constraint to be embedded.public FSMatchConstraint embedConstraint(ArrayList<String> path, FSConstraint constraint)
ConstraintFactoryembedConstraint in class ConstraintFactorypath - The path to embed the constraint under. This is a list of Feature names.constraint - The constraint to be embedded.public FSMatchConstraint and(FSMatchConstraint c1, FSMatchConstraint c2)
ConstraintFactoryand in class ConstraintFactoryc1 - The first conjunct.c2 - The second conjunct.c1 and
c2.public FSMatchConstraint or(FSMatchConstraint c1, FSMatchConstraint c2)
ConstraintFactoryor in class ConstraintFactoryc1 - The first disjunct.c2 - The second disjunct.c1 and
c2.Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.