|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.spi.DefaultKnowledgeHelper
public class DefaultKnowledgeHelper
Constructor Summary | |
---|---|
DefaultKnowledgeHelper(Rule rule,
Tuple tuple)
|
Method Summary | |
---|---|
void |
assertObject(java.lang.Object object)
Asserts an object, notice that it does not return the FactHandle |
void |
assertObject(java.lang.Object object,
boolean dynamic)
Asserts an object specifying that it implement the onPropertyChange listener, notice that it does not return the FactHandle. |
void |
clearAgenda()
Clears the agenda causing all existing Activations to fire ActivationCancelled events. |
java.util.List |
getObjects()
|
java.util.List |
getObjects(java.lang.Class objectClass)
Retruns a List of Objects that match the given Class in the paremeter. |
java.lang.String |
getRuleName()
|
void |
modifyObject(java.lang.Object object)
Modifies an object. |
void |
modifyObject(java.lang.Object oldObject,
java.lang.Object newObject)
Modifies an object by looking up the handle of the oldObject and replacing the oldObject with the newObject for the FactHandle. |
void |
retractObject(java.lang.Object object)
Retracts an object from the WorkingMemory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultKnowledgeHelper(Rule rule, Tuple tuple)
Method Detail |
---|
public void assertObject(java.lang.Object object) throws FactException
KnowledgeHelper
assertObject
in interface KnowledgeHelper
FactException
- -
Exceptions can be thrown by conditions which are wrapped and
returned as a FactExceptionobject
- -
the object to be assertedpublic void assertObject(java.lang.Object object, boolean dynamic) throws FactException
KnowledgeHelper
assertObject
in interface KnowledgeHelper
FactException
- -
Exceptions can be thrown by conditions which are wrapped and
returned as a FactExceptionobject
- -
the object to be asserteddynamic
- -
specifies the object implements onPropertyChangeListenerpublic void modifyObject(java.lang.Object object) throws FactException
KnowledgeHelper
modifyObject
in interface KnowledgeHelper
FactException
- -
Exceptions can be thrown by conditions which are wrapped and
returned as a FactExceptionobject
- -
the object to be modifiedpublic void modifyObject(java.lang.Object oldObject, java.lang.Object newObject) throws FactException
KnowledgeHelper
modifyObject
in interface KnowledgeHelper
FactException
oldObject
- -
The old object to be modifiednewObject
- -
the new modified objectpublic void retractObject(java.lang.Object object) throws FactException
KnowledgeHelper
retractObject
in interface KnowledgeHelper
FactException
- -
Wraps and returns any exception that may occur.object
- -
the object to be retracted.public java.lang.String getRuleName()
getRuleName
in interface KnowledgeHelper
public java.util.List getObjects()
getObjects
in interface KnowledgeHelper
public java.util.List getObjects(java.lang.Class objectClass)
KnowledgeHelper
getObjects
in interface KnowledgeHelper
objectClass
- -
The Class to filter by
public void clearAgenda()
KnowledgeHelper
clearAgenda
in interface KnowledgeHelper
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |