Package com.ibm.di.config.base
Class LinkCriteriaConfigImpl
- java.lang.Object
-
- com.ibm.di.config.base.BaseConfigurationImpl
-
- com.ibm.di.config.base.LinkCriteriaConfigImpl
-
- All Implemented Interfaces:
BaseConfiguration,LinkCriteriaConfig,MetamergeConfigChangeListener,java.io.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
Constructors Constructor Description LinkCriteriaConfigImpl()LinkCriteriaConfigImpl(java.lang.Object config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigurationChanged(MetamergeConfigChange mcc)booleanflatten(java.util.List<java.lang.String> excludedNS)This method combines all values from this object and its inherited objects into one single config object.java.lang.StringgetAdvancedLinkCriteria()booleangetAdvancedLinkMode()BaseConfigurationgetCriteria()LinkCriteriaItemgetCriteria(java.lang.Object name)java.util.List<java.lang.String>getCriteriaNames()booleangetMatchAny()booleanisCriteriaLocal(java.lang.Object name)LinkCriteriaItemnewCriteria(java.lang.Object name)voidremoveCriteria(java.lang.Object attribute)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.voidsetAdvancedLinkCriteria(java.lang.String script)voidsetAdvancedLinkMode(boolean advanced)voidsetCriteria(LinkCriteriaItem item)voidsetInheritsFrom(BaseConfiguration inheritFrom)We override this method to change the inherited object if we inherit from a connector.voidsetMatchAny(boolean value)java.lang.StringtoString()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, isProtectedParameter, 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, 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, isProtectedParameter, 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, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setupInheritanceChain, setUseListeners, setUserComment, size, toEntry, updateInheritsFrom, willFlatten
-
-
-
-
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:
setInheritsFromin interfaceBaseConfiguration- Overrides:
setInheritsFromin classBaseConfigurationImpl- Parameters:
inheritFrom- The new inheritsFrom value.
-
configurationChanged
public void configurationChanged(MetamergeConfigChange mcc)
Description copied from class:BaseConfigurationImpl- Specified by:
configurationChangedin interfaceMetamergeConfigChangeListener- Overrides:
configurationChangedin classBaseConfigurationImpl
-
getCriteria
public BaseConfiguration getCriteria()
- Specified by:
getCriteriain interfaceLinkCriteriaConfig
-
getCriteriaNames
public java.util.List<java.lang.String> getCriteriaNames()
- Specified by:
getCriteriaNamesin interfaceLinkCriteriaConfig
-
getCriteria
public LinkCriteriaItem getCriteria(java.lang.Object name)
- Specified by:
getCriteriain interfaceLinkCriteriaConfig
-
setCriteria
public void setCriteria(LinkCriteriaItem item)
- Specified by:
setCriteriain interfaceLinkCriteriaConfig
-
removeCriteria
public void removeCriteria(java.lang.Object attribute)
- Specified by:
removeCriteriain interfaceLinkCriteriaConfig
-
newCriteria
public LinkCriteriaItem newCriteria(java.lang.Object name) throws java.lang.Exception
- Specified by:
newCriteriain interfaceLinkCriteriaConfig- Throws:
java.lang.Exception
-
isCriteriaLocal
public boolean isCriteriaLocal(java.lang.Object name)
- Specified by:
isCriteriaLocalin interfaceLinkCriteriaConfig
-
getAdvancedLinkCriteria
public java.lang.String getAdvancedLinkCriteria()
- Specified by:
getAdvancedLinkCriteriain interfaceLinkCriteriaConfig
-
setAdvancedLinkCriteria
public void setAdvancedLinkCriteria(java.lang.String script)
- Specified by:
setAdvancedLinkCriteriain interfaceLinkCriteriaConfig
-
getAdvancedLinkMode
public boolean getAdvancedLinkMode()
- Specified by:
getAdvancedLinkModein interfaceLinkCriteriaConfig
-
setAdvancedLinkMode
public void setAdvancedLinkMode(boolean advanced)
- Specified by:
setAdvancedLinkModein interfaceLinkCriteriaConfig
-
getMatchAny
public boolean getMatchAny()
- Specified by:
getMatchAnyin interfaceLinkCriteriaConfig
-
setMatchAny
public void setMatchAny(boolean value)
- Specified by:
setMatchAnyin interfaceLinkCriteriaConfig
-
flatten
public boolean flatten(java.util.List<java.lang.String> excludedNS) throws java.lang.ExceptionDescription copied from class:BaseConfigurationImplThis 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:
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
-
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.
-
toString
public java.lang.String toString()
Description copied from class:BaseConfigurationImplAnswers a string containing the name of the config.- Overrides:
toStringin classBaseConfigurationImpl- Returns:
- a printable representation of the name
-
-