Package com.ibm.di.config.base
Class LoopConfigImpl
- java.lang.Object
-
- com.ibm.di.config.base.BaseConfigurationImpl
-
- com.ibm.di.config.base.ContainerConfigImpl
-
- com.ibm.di.config.base.BranchingConfigImpl
-
- com.ibm.di.config.base.LoopConfigImpl
-
- All Implemented Interfaces:
BaseConfiguration,BranchingConfig,ContainerConfig,LoopConfig,MetamergeConfigChangeListener,java.io.Serializable
public class LoopConfigImpl extends BranchingConfigImpl implements LoopConfig
Implements the configuration for a Loop Component in an AssemblyLine.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ConnectorConfigloopConnector-
Fields inherited from class com.ibm.di.config.base.BranchingConfigImpl
conditions
-
Fields inherited from class com.ibm.di.config.base.ContainerConfigImpl
items
-
Fields inherited from class com.ibm.di.config.base.BaseConfigurationImpl
NAME
-
Fields inherited from interface com.ibm.di.config.interfaces.BaseConfiguration
CHILD_PATH_SEPARATOR, 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, SEARCH_SUBSTRING, SUBTREE
-
Fields inherited from interface com.ibm.di.config.interfaces.BranchingConfig
BRANCH_CASE, BRANCH_ELSE, BRANCH_ELSEIF, BRANCH_IF, BRANCH_SWITCH
-
Fields inherited from interface com.ibm.di.config.interfaces.LoopConfig
LOOP_COLLECTION, LOOP_CONDITIONS, LOOP_CONNECTOR_FC, OPTION_INITIALIZE, OPTION_NONE, OPTION_SELECT
-
-
Constructor Summary
Constructors Constructor Description LoopConfigImpl()Constructor for the loopConnectorImpl objectLoopConfigImpl(java.lang.Object data)Constructor for the loopConnectorImpl object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanflatten(java.util.List<java.lang.String> excludedNS)flatten - combines all values from this object and its inherited objects into one single config object.java.lang.ObjectgetClone()Return self cloneintgetInitConnectorOption()Returns the type of loop we are doingjava.lang.StringgetLoopAttributeName()Returns the name of the loop attribute that has one value from the work attribute for each loopConnectorConfiggetLoopConnector()Returns the Loop connector configurationintgetLoopType()Returns the type of loop we are doingjava.util.List<java.lang.String>getReferences(java.util.List<java.lang.String> list)java.lang.StringgetWorkAttributeName()Returns the name of the work attribute whose values to loop overvoidnotifyChange(java.lang.Object source, java.lang.Object key, int operation, java.lang.Object userObject)Notifies listeners for a change event.java.util.List<javax.naming.Binding>search(java.lang.String text, int options, int sizelimit, java.util.List<javax.naming.Binding> results)Searches a configuration object and optionally its children for a specific key or value.voidsetInitConnectorOption(int option)Sets the loop typevoidsetLoopAttributeName(java.lang.String name)Sets the name of the work attribute whose values to loop overvoidsetLoopConnector(ConnectorConfig cc)voidsetLoopType(int type)Sets the loop typevoidsetupInheritanceChain()Established the inheritance chain for this object.voidsetWorkAttributeName(java.lang.String name)Sets the name of the work attribute whose values to loop over-
Methods inherited from class com.ibm.di.config.base.BranchingConfigImpl
getBranchType, getConditions, getEnabled, getMatchAny, init, newCondition, numberLoops, setBranchType, setConditions, setMatchAny, totalSize
-
Methods inherited from class com.ibm.di.config.base.ContainerConfigImpl
addConfig, containsConfig, getChild, getChildNames, getConfig, getConfig, getConfig, getConfigurations, getInheritedConfigurations, indexOf, indexOf, insertConfig, moveConfig, moveConfig, moveConfig, removeConfig, removeConfig, removeConfig, size
-
Methods inherited from class com.ibm.di.config.base.BaseConfigurationImpl
addListener, configurationChanged, deepClone, detachFromParent, expandPropertyValue, expandPropertyValue, fromEntry, getBooleanParameter, getChildForPath, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getLongName, getMetamergeConfig, getModified, getModTS, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterPropertySourceFromValue, getParameterRaw, getParent, getParentName, getPath, getResHash, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseConfigListeners, getUseListeners, getUserComment, hasParameter, isExpression, isParameterLocal, isProtectedParameter, nameForChild, notifyChange, notifyChange, performNotifyChange, reattachToParent, removeListener, removeParameter, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setModTS, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setUseConfigListeners, setUseListeners, setUserComment, 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, detachFromParent, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getEnabled, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getMetamergeConfig, getModified, getModTS, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterRaw, getParent, getPath, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseListeners, getUserComment, hasParameter, init, isExpression, isParameterLocal, isProtectedParameter, nameForChild, notifyChange, notifyChange, reattachToParent, removeListener, removeParameter, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setModTS, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setUseListeners, setUserComment, toEntry, updateInheritsFrom, willFlatten
-
Methods inherited from interface com.ibm.di.config.interfaces.BranchingConfig
getBranchType, getConditions, getMatchAny, newCondition, numberLoops, setBranchType, setMatchAny, totalSize
-
Methods inherited from interface com.ibm.di.config.interfaces.ContainerConfig
addConfig, containsConfig, getConfig, getConfig, getConfig, getConfigurations, getInheritedConfigurations, indexOf, indexOf, insertConfig, moveConfig, moveConfig, moveConfig, removeConfig, removeConfig, removeConfig, size
-
-
-
-
Field Detail
-
loopConnector
protected ConnectorConfig loopConnector
-
-
Method Detail
-
getLoopConnector
public ConnectorConfig getLoopConnector() throws java.lang.Exception
Returns the Loop connector configuration- Specified by:
getLoopConnectorin interfaceLoopConfig- Throws:
java.lang.Exception
-
setLoopConnector
public void setLoopConnector(ConnectorConfig cc)
-
getLoopType
public int getLoopType()
Returns the type of loop we are doing- Specified by:
getLoopTypein interfaceLoopConfig
-
setLoopType
public void setLoopType(int type)
Sets the loop type- Specified by:
setLoopTypein interfaceLoopConfig
-
getInitConnectorOption
public int getInitConnectorOption()
Returns the type of loop we are doing- Specified by:
getInitConnectorOptionin interfaceLoopConfig
-
setInitConnectorOption
public void setInitConnectorOption(int option)
Sets the loop type- Specified by:
setInitConnectorOptionin interfaceLoopConfig
-
getWorkAttributeName
public java.lang.String getWorkAttributeName()
Returns the name of the work attribute whose values to loop over- Specified by:
getWorkAttributeNamein interfaceLoopConfig
-
setWorkAttributeName
public void setWorkAttributeName(java.lang.String name)
Sets the name of the work attribute whose values to loop over- Specified by:
setWorkAttributeNamein interfaceLoopConfig
-
getLoopAttributeName
public java.lang.String getLoopAttributeName()
Returns the name of the loop attribute that has one value from the work attribute for each loop- Specified by:
getLoopAttributeNamein interfaceLoopConfig
-
setLoopAttributeName
public void setLoopAttributeName(java.lang.String name)
Sets the name of the work attribute whose values to loop over- Specified by:
setLoopAttributeNamein interfaceLoopConfig
-
notifyChange
public void notifyChange(java.lang.Object source, java.lang.Object key, int operation, java.lang.Object userObject)Description copied from class:BaseConfigurationImplNotifies listeners for a change event.Note: This method is typically called by setParameter method but not from user code.
- Specified by:
notifyChangein interfaceBaseConfiguration- Overrides:
notifyChangein classBaseConfigurationImpl- Parameters:
source- The caller initiating the change eventkey- The key that changedoperation- The operation performed on keyuserObject- Arbitrary object provided by caller
-
getClone
public java.lang.Object getClone() throws java.lang.ExceptionReturn self clone- Specified by:
getClonein interfaceBaseConfiguration- Overrides:
getClonein classBranchingConfigImpl- Returns:
- A cloned object of this
- Throws:
java.lang.Exception
-
flatten
public boolean flatten(java.util.List<java.lang.String> excludedNS) throws java.lang.Exceptionflatten - combines all values from this object and its inherited objects into one single config object. After flattening, the object is a complete object with no inherited values except those from the excludedNS list.- Specified by:
flattenin interfaceBaseConfiguration- Overrides:
flattenin classBaseConfigurationImpl- Parameters:
excludedNS- List of namespaces to exclude from flattening- Returns:
trueif object attempted flattening, FALSE is this object inherits from an excluded namespace or has no inheritance- Throws:
java.lang.Exception
-
getReferences
public java.util.List<java.lang.String> getReferences(java.util.List<java.lang.String> list)
Description copied from class:BaseConfigurationImpl- Specified by:
getReferencesin interfaceBaseConfiguration- Overrides:
getReferencesin classBaseConfigurationImpl- Parameters:
list- If non-null, the object must use the provided list rather than creating its own- Returns:
- a list of all references to other object from which this object or its children inherit from.
-
search
public java.util.List<javax.naming.Binding> search(java.lang.String text, int options, int sizelimit, java.util.List<javax.naming.Binding> results)Description copied from class:BaseConfigurationImplSearches a configuration object and optionally its children for a specific key or value.- Specified by:
searchin interfaceBaseConfiguration- Overrides:
searchin classBaseConfigurationImpl- Parameters:
text- The search textoptions- Search options (oneLevel=1, exactCase=2, regExp=4, paramName=8)sizelimit- Max number of hits returnedresults- A list of results.- Returns:
- the results from the performed search added into the provided
resultsparameter.
-
setupInheritanceChain
public void setupInheritanceChain() throws java.lang.ExceptionDescription copied from class:BaseConfigurationImplEstablished the inheritance chain for this object.- Specified by:
setupInheritanceChainin interfaceBaseConfiguration- Overrides:
setupInheritanceChainin classContainerConfigImpl- Throws:
java.lang.Exception- if the operation could not be performed
-
-