|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ElementFactory
ElementFactory is a class representing domain objects for use by parser and conditions. All elements should be inserted using ElementFactory. Importatnt note - the implementing classes MUST have constructor with parameter StatefulKnowledgeSession as it's the constructor analyzer is looking for! This will be a subject to further improvements.
| Method Summary | |
|---|---|
Collection<Element> |
getElements()
Gets all elements inserted through this ElementFactory |
void |
insertElement(Element element)
Inserts element using this ElementFactory |
void |
insertEvent(String entrypoint,
Object event)
Inserts an object using specific entry point using this ElementFactory |
void |
setAsGlobal(String name)
Sets this instance of ElementFactory as a global variable with given name |
void |
setGlobal(String name,
Object instance)
Sets a global variable with given name with given value |
| Method Detail |
|---|
Collection<Element> getElements()
void setGlobal(String name,
Object instance)
name - - name of the global to setinstance - -value of the global to setvoid setAsGlobal(String name)
name - - name of the global to set with this instancevoid insertElement(Element element)
element - - element to insert
void insertEvent(String entrypoint,
Object event)
entrypoint - - entry point to insert the object throughevent - - object to insert
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||