|
|||||||||||
| 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.AttributeMapItemImpl
public class AttributeMapItemImpl
The implementation class of the AttributeMapItem interface.
| Field Summary |
|---|
| Fields inherited from class com.ibm.di.config.base.BaseConfigurationImpl |
|---|
NAME |
| Fields inherited from interface com.ibm.di.config.interfaces.AttributeMapItem |
|---|
ADVANCED_MAPPING, SIMPLE_MAPPING, SUBSTITUTION_MAPPING |
| 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 | |
|---|---|
AttributeMapItemImpl()
Default Constructor. |
|
AttributeMapItemImpl(java.lang.Object config)
Constructor. |
|
| Method Summary | |
|---|---|
static AttributeMapItem |
clone(AttributeMapItem ami)
Clone an Attribute Map Item. |
boolean |
detachFromParent()
Detach this Attribute Map item from its parent Attribute Map. |
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. |
boolean |
getAdd()
Gets the add attribute of the AttributeMapItem object |
java.util.List |
getChildAttributeMaps()
Returns a list of child attribute map items. |
boolean |
getEnabled()
Gets the enabled attribute of this object. |
boolean |
getModify()
Gets the modify attribute of the AttributeMapItem object |
java.lang.String |
getScript()
Gets the script attribute of this object. |
java.lang.String |
getSimple()
Gets the simple attribute of the AttributeMapItem object |
java.lang.String |
getSubstitution()
Gets the substitution template attribute of the AttributeMapItem object |
java.lang.String |
getType()
Gets the type attribute of the AttributeMapItem object |
void |
init()
Called after internal data structure is set. |
boolean |
isAdvanced()
Returns true if this AttributeMapItem is an advanced attribute map (mapped by a script) |
boolean |
isSimple()
Returns true if this AttributeMapItem is a simple attribute map |
boolean |
isSubstitution()
Returns true if this attribute map item is subject to property expansion |
boolean |
reattachToParent(int position)
Re-attach this Attribute Map item to its parent Attribute Map. |
void |
setAdd(boolean add)
Sets the add attribute of the AttributeMapItem object |
void |
setEnabled(boolean enabled)
Sets the enabled attribute of this object. |
void |
setInheritsFrom(BaseConfiguration inheritFrom)
Sets the object from which this object inherits data. |
void |
setModify(boolean modify)
Sets the modify attribute of the AttributeMapItem object |
void |
setScript(java.lang.String script)
Sets the script attribute of this object. |
void |
setSimple(java.lang.String attribute)
Sets the simple attribute of the AttributeMapItem object |
void |
setSubstitution(java.lang.String str)
Sets the substitution template attribute of the AttributeMapItem object |
void |
setType(java.lang.String type)
Sets the type attribute of the AttributeMapItem object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AttributeMapItemImpl()
public AttributeMapItemImpl(java.lang.Object config)
config - TreeMap of attribute/value pairs.| Method Detail |
|---|
public void init()
throws java.lang.Exception
init in interface BaseConfigurationinit in class BaseConfigurationImpljava.lang.Exception - if the initialization fails.public static AttributeMapItem clone(AttributeMapItem ami)
ami - Attribute Map Item, which will be cloned.
public boolean getEnabled()
getEnabled in interface AttributeMapItemgetEnabled in interface BaseConfigurationgetEnabled in class BaseConfigurationImplpublic void setEnabled(boolean enabled)
setEnabled in interface AttributeMapItemsetEnabled in interface BaseConfigurationsetEnabled in class BaseConfigurationImplenabled - true for enabling; false otherwise.public java.lang.String getScript()
getScript in interface AttributeMapItemgetScript in interface BaseConfigurationgetScript in class BaseConfigurationImplpublic void setScript(java.lang.String script)
setScript in interface AttributeMapItemsetScript in interface BaseConfigurationsetScript in class BaseConfigurationImplscript - The new script valuepublic boolean getModify()
getModify in interface AttributeMapItempublic void setModify(boolean modify)
setModify in interface AttributeMapItemmodify - The new modify valuepublic boolean getAdd()
getAdd in interface AttributeMapItempublic void setAdd(boolean add)
setAdd in interface AttributeMapItemadd - The new add valuepublic java.lang.String getSimple()
getSimple in interface AttributeMapItempublic void setSimple(java.lang.String attribute)
setSimple in interface AttributeMapItemattribute - The new simple valuepublic void setType(java.lang.String type)
setType in interface AttributeMapItemtype - The new type valuepublic java.lang.String getType()
getType in interface AttributeMapItempublic boolean isSimple()
isSimple in interface AttributeMapItempublic boolean isAdvanced()
isAdvanced in interface AttributeMapItempublic boolean isSubstitution()
isSubstitution in interface AttributeMapItempublic void setSubstitution(java.lang.String str)
setSubstitution in interface AttributeMapItemstr - The substitution templatepublic java.lang.String getSubstitution()
getSubstitution in interface AttributeMapItem
public boolean flatten(java.util.List<java.lang.String> excludedNS)
throws java.lang.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
java.lang.Exceptionpublic boolean detachFromParent()
reattachToParent(int) method.
detachFromParent in interface BaseConfigurationdetachFromParent in class BaseConfigurationImplpublic boolean reattachToParent(int position)
reattachToParent in interface BaseConfigurationreattachToParent in class BaseConfigurationImplposition - This parameter is ignored.
public java.util.List getChildAttributeMaps()
getChildAttributeMaps in interface AttributeMapItempublic void setInheritsFrom(BaseConfiguration inheritFrom)
Note: Call this method to setup a temporary (non persistent) object for inheritance.
setInheritsFrom in interface BaseConfigurationsetInheritsFrom in class BaseConfigurationImplinheritFrom - The new inheritsFrom value.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||