com.ibm.di.config.base
Class LinkCriteriaConfigImpl

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

public class LinkCriteriaConfigImpl
extends BaseConfigurationImpl
implements LinkCriteriaConfig, MetamergeConfigChangeListener

Implements the configuration for a Link Criteria in a Connector.

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.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
 
Constructor Summary
LinkCriteriaConfigImpl()
           
LinkCriteriaConfigImpl(Object config)
           
 
Method Summary
 void configurationChanged(MetamergeConfigChange mcc)
          
 boolean flatten(List<String> excludedNS)
          This method combines all values from this object and its inherited objects into one single config object.
 String getAdvancedLinkCriteria()
           
 boolean getAdvancedLinkMode()
           
 BaseConfiguration getCriteria()
           
 LinkCriteriaItem getCriteria(Object name)
           
 List<String> getCriteriaNames()
           
 boolean getMatchAny()
           
 boolean isCriteriaLocal(Object name)
           
 LinkCriteriaItem newCriteria(Object name)
           
 void removeCriteria(Object attribute)
           
 List<Binding> search(String text, int options, int sizelimit, List<Binding> results)
          Searches a configuration object and optionally its children for a specific key or value.
 void setAdvancedLinkCriteria(String script)
           
 void setAdvancedLinkMode(boolean advanced)
           
 void setCriteria(LinkCriteriaItem item)
           
 void setInheritsFrom(BaseConfiguration inheritFrom)
          We override this method to change the inherited object if we inherit from a connector.
 void setMatchAny(boolean value)
           
 String toString()
          Answers a string containing the name of the config.
 
Methods inherited from class com.ibm.di.config.base.BaseConfigurationImpl
addListener, deepClone, detachFromParent, expandPropertyValue, expandPropertyValue, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getClone, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getEnabled, 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, getReferences, getResHash, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseConfigListeners, getUseListeners, getUserComment, hasParameter, init, isExpression, isParameterLocal, nameForChild, notifyChange, notifyChange, notifyChange, performNotifyChange, reattachToParent, removeListener, removeParameter, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setModTS, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setupInheritanceChain, setUseConfigListeners, setUseListeners, setUserComment, size, toEntry, 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, getClone, 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, getReferences, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseListeners, getUserComment, hasParameter, init, isExpression, isParameterLocal, nameForChild, notifyChange, notifyChange, notifyChange, reattachToParent, removeListener, removeParameter, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setModTS, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setupInheritanceChain, setUseListeners, setUserComment, size, toEntry, updateInheritsFrom, willFlatten
 

Constructor Detail

LinkCriteriaConfigImpl

public LinkCriteriaConfigImpl()

LinkCriteriaConfigImpl

public LinkCriteriaConfigImpl(Object config)
Method Detail

setInheritsFrom

public void setInheritsFrom(BaseConfiguration inheritFrom)
We override this method to change the inherited object if we inherit from a connector.

Specified by:
setInheritsFrom in interface BaseConfiguration
Overrides:
setInheritsFrom in class BaseConfigurationImpl
Parameters:
inheritFrom - The new inheritsFrom value.

configurationChanged

public void configurationChanged(MetamergeConfigChange mcc)
Description copied from class: BaseConfigurationImpl

Specified by:
configurationChanged in interface MetamergeConfigChangeListener
Overrides:
configurationChanged in class BaseConfigurationImpl

getCriteria

public BaseConfiguration getCriteria()
Specified by:
getCriteria in interface LinkCriteriaConfig

getCriteriaNames

public List<String> getCriteriaNames()
Specified by:
getCriteriaNames in interface LinkCriteriaConfig

getCriteria

public LinkCriteriaItem getCriteria(Object name)
Specified by:
getCriteria in interface LinkCriteriaConfig

setCriteria

public void setCriteria(LinkCriteriaItem item)
Specified by:
setCriteria in interface LinkCriteriaConfig

removeCriteria

public void removeCriteria(Object attribute)
Specified by:
removeCriteria in interface LinkCriteriaConfig

newCriteria

public LinkCriteriaItem newCriteria(Object name)
                             throws Exception
Specified by:
newCriteria in interface LinkCriteriaConfig
Throws:
Exception

isCriteriaLocal

public boolean isCriteriaLocal(Object name)
Specified by:
isCriteriaLocal in interface LinkCriteriaConfig

getAdvancedLinkCriteria

public String getAdvancedLinkCriteria()
Specified by:
getAdvancedLinkCriteria in interface LinkCriteriaConfig

setAdvancedLinkCriteria

public void setAdvancedLinkCriteria(String script)
Specified by:
setAdvancedLinkCriteria in interface LinkCriteriaConfig

getAdvancedLinkMode

public boolean getAdvancedLinkMode()
Specified by:
getAdvancedLinkMode in interface LinkCriteriaConfig

setAdvancedLinkMode

public void setAdvancedLinkMode(boolean advanced)
Specified by:
setAdvancedLinkMode in interface LinkCriteriaConfig

getMatchAny

public boolean getMatchAny()
Specified by:
getMatchAny in interface LinkCriteriaConfig

setMatchAny

public void setMatchAny(boolean value)
Specified by:
setMatchAny in interface LinkCriteriaConfig

flatten

public boolean flatten(List<String> excludedNS)
                throws Exception
Description copied from class: BaseConfigurationImpl
This method 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:
flatten in interface BaseConfiguration
Overrides:
flatten in class BaseConfigurationImpl
Parameters:
excludedNS - List of namespaces to exclude from flattening
Returns:
true if object attempted flattening, FALSE is this object inherits from an excluded namespace or has no inheritance
Throws:
Exception

search

public List<Binding> search(String text,
                            int options,
                            int sizelimit,
                            List<Binding> results)
Description copied from class: BaseConfigurationImpl
Searches a configuration object and optionally its children for a specific key or value.

Specified by:
search in interface BaseConfiguration
Overrides:
search in class BaseConfigurationImpl
Parameters:
text - The search text
options - Search options (oneLevel=1, exactCase=2, regExp=4, paramName=8)
sizelimit - Max number of hits returned
results - A list of results.
Returns:
the results from the performed search added into the provided results parameter.

toString

public String toString()
Description copied from class: BaseConfigurationImpl
Answers a string containing the name of the config.

Overrides:
toString in class BaseConfigurationImpl
Returns:
a printable representation of the name