|
||||||||||
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(java.lang.Object config)
Constructor providing a TreeMap of attribute/value pairs. |
Method Summary | |
---|---|
void |
configurationChanged(MetamergeConfigChange mcc)
|
boolean |
flatten(java.util.List<java.lang.String> excludedNS)
This method combines all values from this object and its inherited objects into one single config object. |
AttributeMapItem |
getAttributeMapItem(java.lang.Object attrName)
Returns the AttributeMapItem for attribute |
java.util.List<java.lang.String> |
getAttributeNames()
Returns a list of attribute names in this object. |
BaseConfiguration |
getChild(java.lang.Object name)
|
java.util.List<java.lang.String> |
getChildNames()
Returns a list of names for all child configuration object |
java.lang.Object |
getClone()
|
boolean |
hasAttributeMapItem(java.lang.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(java.lang.Object name)
Creates and adds a new attribute map item to this object. |
void |
removeAttributeMapItem(java.lang.Object attribute)
Removes a named attribute from this map. |
void |
renameAttributeMapItem(java.lang.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(java.lang.Object config)
config
- initial configMethod Detail |
---|
public void init() throws java.lang.Exception
init
in interface BaseConfiguration
init
in class BaseConfigurationImpl
java.lang.Exception
- if the initialization fails.public void setupInheritanceChain() throws java.lang.Exception
setupInheritanceChain
in interface BaseConfiguration
setupInheritanceChain
in class BaseConfigurationImpl
java.lang.Exception
- if the operation could not be performedpublic void setInheritsFrom(BaseConfiguration inheritFrom)
setInheritsFrom
in interface BaseConfiguration
setInheritsFrom
in class BaseConfigurationImpl
inheritFrom
- if this is ConnectorConfig
object we take his
AttributeMap to inherit from else standard behavior.public void configurationChanged(MetamergeConfigChange mcc)
configurationChanged
in interface MetamergeConfigChangeListener
configurationChanged
in class BaseConfigurationImpl
public AttributeMapItem newAttributeMapItem(java.lang.Object name) throws java.lang.Exception
newAttributeMapItem
in interface AttributeMapConfig
name
- The attribute name
java.lang.Exception
- Any errors encountered by the underlying driverpublic void setAttributeMapItem(AttributeMapItem map)
setAttributeMapItem
in interface AttributeMapConfig
map
- The new AttributeMapItempublic void removeAttributeMapItem(java.lang.Object attribute)
removeAttributeMapItem
in interface AttributeMapConfig
attribute
- The attribute namepublic void renameAttributeMapItem(java.lang.Object newName, AttributeMapItem map) throws java.lang.Exception
renameAttributeMapItem
in interface AttributeMapConfig
newName
- The new namemap
- The existing AttributeMapItem
java.lang.Exception
- Any errors encountered by the underlying driverpublic AttributeMapItem getAttributeMapItem(java.lang.Object attrName)
getAttributeMapItem
in interface AttributeMapConfig
attrName
- The attribute name
public boolean hasAttributeMapItem(java.lang.Object attribute)
hasAttributeMapItem
in interface AttributeMapConfig
attribute
- The attribute name
public java.util.List<java.lang.String> getAttributeNames()
getAttributeNames
in interface AttributeMapConfig
public boolean flatten(java.util.List<java.lang.String> excludedNS) throws java.lang.Exception
flatten
in interface BaseConfiguration
flatten
in class BaseConfigurationImpl
excludedNS
- 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
java.lang.Exception
public java.lang.Object getClone() throws java.lang.Exception
getClone
in interface BaseConfiguration
getClone
in class BaseConfigurationImpl
java.lang.Exception
public BaseConfiguration getChild(java.lang.Object name)
getChild
in interface BaseConfiguration
getChild
in class BaseConfigurationImpl
name
- The name of the configuration object
public java.util.List<java.lang.String> getChildNames()
getChildNames
in interface BaseConfiguration
getChildNames
in class BaseConfigurationImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |