org.anadix
Interface ElementFactory

All Known Implementing Classes:
AbstractElementFactory, HTMLElementFactory

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.

Version:
$Id: $
Author:
tomason

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

getElements

Collection<Element> getElements()
Gets all elements inserted through this ElementFactory

Returns:
Collection of Elements

setGlobal

void setGlobal(String name,
               Object instance)
Sets a global variable with given name with given value

Parameters:
name - - name of the global to set
instance - -value of the global to set

setAsGlobal

void setAsGlobal(String name)
Sets this instance of ElementFactory as a global variable with given name

Parameters:
name - - name of the global to set with this instance

insertElement

void insertElement(Element element)
Inserts element using this ElementFactory

Parameters:
element - - element to insert

insertEvent

void insertEvent(String entrypoint,
                 Object event)
Inserts an object using specific entry point using this ElementFactory

Parameters:
entrypoint - - entry point to insert the object through
event - - object to insert


Copyright © 2011. All Rights Reserved.