com.eventgnosis.filters
Class ConditionList

java.lang.Object
  extended bycom.eventgnosis.filters.ConditionList
All Implemented Interfaces:
EmmlParmBuilder

public class ConditionList
extends java.lang.Object
implements EmmlParmBuilder

List of Conditions.

See Also:
Condition

Constructor Summary
ConditionList()
           
 
Method Summary
 java.lang.String build(Log log, com.eventgnosis.config.ConfigurationManager configMgr, org.w3c.dom.Element elem)
          After object is instantiated this method is called to parse the EMML DOM element, setting its internal state to the parsed values.
 Condition get(int i)
          Gets Condition from the list of Conditions by index
 java.lang.String getConfigXml()
           
static ConditionList getDefault()
          Gets default ConditionList.
 java.util.ArrayList getList()
          Returns list of Conditions.
 int size()
          Returns number of Conditions in ConditionList
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConditionList

public ConditionList()
Method Detail

build

public java.lang.String build(Log log,
                              com.eventgnosis.config.ConfigurationManager configMgr,
                              org.w3c.dom.Element elem)
Description copied from interface: EmmlParmBuilder
After object is instantiated this method is called to parse the EMML DOM element, setting its internal state to the parsed values.

Specified by:
build in interface EmmlParmBuilder
Parameters:
log - logger instance for tracking error, warning and info messages.
configMgr - holds configuration data structure used to properly configure runtime setup based on input ECA(s).
elem - emml(dom) node to be parsed
Returns:
precise error statement if there are any errors; null is returned if there are no errors and object is build sucessfully.

get

public Condition get(int i)
Gets Condition from the list of Conditions by index

Parameters:
i - index
Returns:
Condition from the i-th position in the list

getConfigXml

public java.lang.String getConfigXml()

getDefault

public static ConditionList getDefault()
Gets default ConditionList.

Returns:
empty ConditionList

getList

public java.util.ArrayList getList()
Returns list of Conditions.

Returns:
ArrayList of Conditions.

size

public int size()
Returns number of Conditions in ConditionList

Returns:
size of ConditionList

toString

public java.lang.String toString()