com.ibm.di.config.base
Class EventHandlerActionConfigImpl

java.lang.Object
  extended by com.ibm.di.config.base.BaseConfigurationImpl
      extended by com.ibm.di.config.base.EventHandlerActionConfigImpl
All Implemented Interfaces:
BaseConfiguration, EventHandlerActionConfig, MetamergeConfigChangeListener, Serializable

public class EventHandlerActionConfigImpl
extends BaseConfigurationImpl
implements EventHandlerActionConfig

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.di.config.base.BaseConfigurationImpl
NAME
 
Fields inherited from interface com.ibm.di.config.interfaces.EventHandlerActionConfig
ACTIONS_ERROR, ACTIONS_FALSE, ACTIONS_TRUE, CONDITIONS
 
Fields inherited from interface com.ibm.di.config.interfaces.BaseConfiguration
DISABLE_EXTPROPS, DISABLE_INHERITANCE, INHERIT_NONE, INHERIT_PARENT, ONE_LEVEL, RECURSIVE, RECURSIVE_ONELEVEL, RECURSIVE_SUBTREE, SEARCH_EXACTCASE, SEARCH_ONELEVEL, SEARCH_PARAMNAME, SEARCH_PARAMNAME_RE, SEARCH_PROPERTY, SEARCH_REGEX, SUBTREE
 
Constructor Summary
EventHandlerActionConfigImpl()
           
EventHandlerActionConfigImpl(Object config)
           
EventHandlerActionConfigImpl(Object config, BaseConfiguration parent)
           
 
Method Summary
 EventHandlerActionItemConfig addAction(int type, String command)
          Adds a feature to the Action attribute of the EventHandlerActionConfig object
 EventHandlerConditionConfig addCondition(boolean script)
          Adds a feature to the Condition attribute of the EventHandlerActionConfig object
 Vector getActions(int actionType)
          Gets the actions attribute of the EventHandlerActionConfig object
 Vector getConditions()
          Gets the conditions attribute of the EventHandlerActionConfig object
 boolean getConsumeEvent()
          Gets the consumeEvent attribute of the EventHandlerActionConfig object
 boolean getEnabled()
          Gets the enabled attribute of the BaseConfiguration object
 boolean getMatchAnyCondition()
          Gets the matchAnyCondition attribute of the EventHandlerActionConfig object
 String getShortName()
          Gets the shortName attribute of the BaseConfiguration object.
 void init()
          init - method called after internal data structure is set
 void moveAction(int type, int fromIndex, int toIndex)
          Move an action
 void removeAction(int type, int index)
          Remove an action
 void removeCondition(int index)
          Remove a Condition
 void setConsumeEvent(boolean consume)
          Sets the consumeEvent attribute of the EventHandlerActionConfig object
 void setEnabled(boolean enabled)
          Gets the enabled attribute of the BaseConfiguration object
 void setMatchAnyCondition(boolean matchAny)
          Sets the matchAnyCondition attribute of the EventHandlerActionConfig object
 void setName(String name)
          Sets the name attribute of the BaseConfiguration object
 
Methods inherited from class com.ibm.di.config.base.BaseConfigurationImpl
addListener, configurationChanged, deepClone, expandPropertyValue, expandPropertyValue, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getClone, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getMetamergeConfig, getModified, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterPropertySourceFromValue, getParameterRaw, getParent, getParentName, getPath, getReferences, getResHash, getScript, getScriptEngine, getStringParameter, getSubstitutionMap, getUseListeners, getUserComment, hasParameter, isParameterLocal, nameForChild, notifyChange, notifyChange, performNotifyChange, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setupInheritanceChain, setUseListeners, setUserComment, size, toEntry, toString, updateInheritsFrom, willExpandProps, willFlatten, willUseInherited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.di.config.interfaces.BaseConfiguration
addListener, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getClone, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getMetamergeConfig, getModified, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterRaw, getParent, getPath, getReferences, getScript, getScriptEngine, getStringParameter, getSubstitutionMap, getUseListeners, getUserComment, hasParameter, isParameterLocal, nameForChild, notifyChange, notifyChange, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setupInheritanceChain, setUseListeners, setUserComment, size, toEntry, updateInheritsFrom, willFlatten
 

Constructor Detail

EventHandlerActionConfigImpl

public EventHandlerActionConfigImpl()

EventHandlerActionConfigImpl

public EventHandlerActionConfigImpl(Object config)

EventHandlerActionConfigImpl

public EventHandlerActionConfigImpl(Object config,
                                    BaseConfiguration parent)
Method Detail

init

public void init()
Description copied from class: BaseConfigurationImpl
init - method called after internal data structure is set

Specified by:
init in interface BaseConfiguration
Overrides:
init in class BaseConfigurationImpl

getMatchAnyCondition

public boolean getMatchAnyCondition()
Description copied from interface: EventHandlerActionConfig
Gets the matchAnyCondition attribute of the EventHandlerActionConfig object

Specified by:
getMatchAnyCondition in interface EventHandlerActionConfig
Returns:
The matchAnyCondition value

setMatchAnyCondition

public void setMatchAnyCondition(boolean matchAny)
Description copied from interface: EventHandlerActionConfig
Sets the matchAnyCondition attribute of the EventHandlerActionConfig object

Specified by:
setMatchAnyCondition in interface EventHandlerActionConfig
Parameters:
matchAny - The new matchAnyCondition value

getEnabled

public boolean getEnabled()
Description copied from interface: BaseConfiguration
Gets the enabled attribute of the BaseConfiguration object

Specified by:
getEnabled in interface BaseConfiguration
Specified by:
getEnabled in interface EventHandlerActionConfig
Overrides:
getEnabled in class BaseConfigurationImpl
Returns:
The nullBehaviorValue value

setEnabled

public void setEnabled(boolean enabled)
Description copied from interface: BaseConfiguration
Gets the enabled attribute of the BaseConfiguration object

Specified by:
setEnabled in interface BaseConfiguration
Specified by:
setEnabled in interface EventHandlerActionConfig
Overrides:
setEnabled in class BaseConfigurationImpl
Parameters:
enabled - The new enabled value

getConsumeEvent

public boolean getConsumeEvent()
Description copied from interface: EventHandlerActionConfig
Gets the consumeEvent attribute of the EventHandlerActionConfig object

Specified by:
getConsumeEvent in interface EventHandlerActionConfig
Returns:
The consumeEvent value

setConsumeEvent

public void setConsumeEvent(boolean consume)
Description copied from interface: EventHandlerActionConfig
Sets the consumeEvent attribute of the EventHandlerActionConfig object

Specified by:
setConsumeEvent in interface EventHandlerActionConfig
Parameters:
consume - The new consumeEvent value

getActions

public Vector getActions(int actionType)
Description copied from interface: EventHandlerActionConfig
Gets the actions attribute of the EventHandlerActionConfig object

Specified by:
getActions in interface EventHandlerActionConfig
Parameters:
actionType - The type of the action
Returns:
Returns a list of EventHandlerActionItemConfig objects

getConditions

public Vector getConditions()
Description copied from interface: EventHandlerActionConfig
Gets the conditions attribute of the EventHandlerActionConfig object

Specified by:
getConditions in interface EventHandlerActionConfig
Returns:
Returns a list of EventHandlerActionItemConfig objects.

addAction

public EventHandlerActionItemConfig addAction(int type,
                                              String command)
Description copied from interface: EventHandlerActionConfig
Adds a feature to the Action attribute of the EventHandlerActionConfig object

Specified by:
addAction in interface EventHandlerActionConfig
Parameters:
type - The feature to be added to the Action attribute
command - The feature to be added to the Action attribute
Returns:
Object, describing the action in case of such type of action

addCondition

public EventHandlerConditionConfig addCondition(boolean script)
Description copied from interface: EventHandlerActionConfig
Adds a feature to the Condition attribute of the EventHandlerActionConfig object

Specified by:
addCondition in interface EventHandlerActionConfig
Parameters:
script - The feature to be added to the Condition attribute
Returns:
An EventHandlerConditionConfig object

removeAction

public void removeAction(int type,
                         int index)
Description copied from interface: EventHandlerActionConfig
Remove an action

Specified by:
removeAction in interface EventHandlerActionConfig
Parameters:
type - The type of action
index - The position of the object, describing the action

removeCondition

public void removeCondition(int index)
Description copied from interface: EventHandlerActionConfig
Remove a Condition

Specified by:
removeCondition in interface EventHandlerActionConfig
Parameters:
index - The position of the object, describing the condition

moveAction

public void moveAction(int type,
                       int fromIndex,
                       int toIndex)
Description copied from interface: EventHandlerActionConfig
Move an action

Specified by:
moveAction in interface EventHandlerActionConfig
Parameters:
type - The type of action
fromIndex - The position from which to take the action object
toIndex - The new position of the action object

getShortName

public String getShortName()
Description copied from interface: BaseConfiguration
Gets the shortName attribute of the BaseConfiguration object. The short name is the last component in a multi component name. E.g.: AssemblyLines/MyName --> "MyName"

Specified by:
getShortName in interface BaseConfiguration
Overrides:
getShortName in class BaseConfigurationImpl
Returns:
The shortName value

setName

public void setName(String name)
             throws Exception
Description copied from interface: BaseConfiguration
Sets the name attribute of the BaseConfiguration object

Specified by:
setName in interface BaseConfiguration
Overrides:
setName in class BaseConfigurationImpl
Parameters:
name - The new name value
Throws:
Exception - if the operation does not succeed