|
Drools Workbench - Common Model 6.0.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.workbench.models.commons.shared.rule.FactPattern
public class FactPattern
A fact pattern is a declaration of a fact type, and its constraint, and perhaps a variable that is it bound to It is the equivalent of a "pattern" in drools terms.
| Constructor Summary | |
|---|---|
FactPattern()
|
|
FactPattern(String factType)
|
|
| Method Summary | |
|---|---|
void |
addConstraint(FieldConstraint constraint)
This will add a top level constraint. |
String |
getBoundName()
|
FieldConstraint |
getConstraint(int index)
|
CompositeFieldConstraint |
getConstraintList()
|
String |
getFactType()
|
FieldConstraint[] |
getFieldConstraints()
This will return the list of field constraints that are in the root CompositeFieldConstraint object. |
int |
getNumberOfConstraints()
|
CEPWindow |
getWindow()
|
boolean |
isBound()
Returns true if there is a variable bound to this fact. |
boolean |
isNegated()
|
void |
removeConstraint(int idx)
|
void |
setBoundName(String boundName)
|
void |
setFactType(String factType)
WARNING! |
void |
setFieldConstraints(List<FieldConstraint> sortedConstraints)
|
void |
setNegated(boolean isNegated)
|
void |
setWindow(CEPWindow window)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FactPattern()
public FactPattern(String factType)
| Method Detail |
|---|
public String getBoundName()
public void setBoundName(String boundName)
public boolean isNegated()
public void setNegated(boolean isNegated)
public void addConstraint(FieldConstraint constraint)
addConstraint in interface HasConstraintspublic void removeConstraint(int idx)
removeConstraint in interface HasConstraintspublic boolean isBound()
public FieldConstraint[] getFieldConstraints()
public void setFieldConstraints(List<FieldConstraint> sortedConstraints)
public String getFactType()
getFactType in interface IFactPatternpublic void setFactType(String factType)
factType - public void setWindow(CEPWindow window)
setWindow in interface HasCEPWindowpublic CEPWindow getWindow()
getWindow in interface HasCEPWindowpublic FieldConstraint getConstraint(int index)
getConstraint in interface HasConstraintspublic int getNumberOfConstraints()
getNumberOfConstraints in interface HasConstraintspublic CompositeFieldConstraint getConstraintList()
|
Drools Workbench - Common Model 6.0.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||