|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.config.base.BaseConfigurationImpl
com.ibm.di.config.base.AttributeMapConfigImpl
public class AttributeMapConfigImpl
The implementation class for the configuration of an AttributeMap
| 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 | |
|---|---|
AttributeMapConfigImpl()
Constructor |
|
AttributeMapConfigImpl(Object config)
Constructor providing a TreeMap of attribute/value pairs. |
|
| 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. |
AttributeMapItem |
getAttributeMapItem(Object attrName)
Returns the AttributeMapItem for attribute |
List<String> |
getAttributeNames()
Returns a list of attribute names in this object. |
BaseConfiguration |
getChild(Object name)
|
List<String> |
getChildNames()
Returns a list of names for all child configuration object |
Object |
getClone()
|
boolean |
hasAttributeMapItem(Object attribute)
Checks if a named attribute is local (not inherited or null) to this object. |
void |
init()
Called after internal data structure is set. |
AttributeMapItem |
newAttributeMapItem(Object name)
Creates and adds a new attribute map item to this object. |
void |
removeAttributeMapItem(Object attribute)
Removes a named attribute from this map. |
void |
renameAttributeMapItem(Object newName,
AttributeMapItem map)
Changes the name of an existing attributemapitem |
void |
setAttributeMapItem(AttributeMapItem map)
Sets a attributeMapItem attribute of the AttributeMapConfig object |
void |
setInheritsFrom(BaseConfiguration inheritFrom)
We override this method to change the inherited object if we inherit from a connector. |
void |
setupInheritanceChain()
Established the inheritance chain for this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AttributeMapConfigImpl()
public AttributeMapConfigImpl(Object config)
config - initial config| Method Detail |
|---|
public void init()
throws Exception
init in interface BaseConfigurationinit in class BaseConfigurationImplException - if the initialization fails.
public void setupInheritanceChain()
throws Exception
setupInheritanceChain in interface BaseConfigurationsetupInheritanceChain in class BaseConfigurationImplException - if the operation could not be performedpublic void setInheritsFrom(BaseConfiguration inheritFrom)
setInheritsFrom in interface BaseConfigurationsetInheritsFrom in class BaseConfigurationImplinheritFrom - if this is ConnectorConfig object we take his
AttributeMap to inherit from else standard behavior.public void configurationChanged(MetamergeConfigChange mcc)
configurationChanged in interface MetamergeConfigChangeListenerconfigurationChanged in class BaseConfigurationImpl
public AttributeMapItem newAttributeMapItem(Object name)
throws Exception
newAttributeMapItem in interface AttributeMapConfigname - The attribute name
Exception - Any errors encountered by the underlying driverpublic void setAttributeMapItem(AttributeMapItem map)
setAttributeMapItem in interface AttributeMapConfigmap - The new AttributeMapItempublic void removeAttributeMapItem(Object attribute)
removeAttributeMapItem in interface AttributeMapConfigattribute - The attribute name
public void renameAttributeMapItem(Object newName,
AttributeMapItem map)
throws Exception
renameAttributeMapItem in interface AttributeMapConfignewName - The new namemap - The existing AttributeMapItem
Exception - Any errors encountered by the underlying driverpublic AttributeMapItem getAttributeMapItem(Object attrName)
getAttributeMapItem in interface AttributeMapConfigattrName - The attribute name
public boolean hasAttributeMapItem(Object attribute)
hasAttributeMapItem in interface AttributeMapConfigattribute - The attribute name
public List<String> getAttributeNames()
getAttributeNames in interface AttributeMapConfig
public boolean flatten(List<String> excludedNS)
throws Exception
flatten in interface BaseConfigurationflatten in class BaseConfigurationImplexcludedNS - List of namespaces to exclude from flattening
true if object attempted flattening, FALSE is this
object inherits from an excluded namespace or has no inheritance
Exception
public Object getClone()
throws Exception
getClone in interface BaseConfigurationgetClone in class BaseConfigurationImplExceptionpublic BaseConfiguration getChild(Object name)
getChild in interface BaseConfigurationgetChild in class BaseConfigurationImplname - The name of the configuration object
public List<String> getChildNames()
getChildNames in interface BaseConfigurationgetChildNames in class BaseConfigurationImpl
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||