|
||||||||||
| 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()
|
String |
getFactType()
|
FieldConstraint[] |
getFieldConstraints()
This will return the list of field constraints that are in the root CompositeFieldConstraint object. |
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)
public void removeConstraint(int idx)
public 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 HasCEPWindow
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||