|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.ide.common.client.modeldriven.brl.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.
| Field Summary | |
|---|---|
CompositeFieldConstraint |
constraintList
|
| 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)
|
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 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 |
| Field Detail |
|---|
public CompositeFieldConstraint constraintList
| 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 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 HasConstraints
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||