|
|||||||||||
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(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(List<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 |
List |
getChildAttributeMaps()
Returns a list of child attribute map items. |
Object |
getClone()
|
boolean |
getEnabled()
Gets the enabled attribute of this object. |
boolean |
getModify()
Gets the modify attribute of the AttributeMapItem object |
String |
getScript()
Gets the script attribute of this object. |
String |
getSimple()
Gets the simple attribute of the AttributeMapItem object |
String |
getSubstitution()
Gets the substitution template attribute of the AttributeMapItem object |
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(String script)
Sets the script attribute of this object. |
void |
setSimple(String attribute)
Sets the simple attribute of the AttributeMapItem object |
void |
setSubstitution(String str)
Sets the substitution template attribute of the AttributeMapItem object |
void |
setType(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(Object config)
config
- TreeMap of attribute/value pairs.Method Detail |
---|
public void init() throws Exception
init
in interface BaseConfiguration
init
in class BaseConfigurationImpl
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 AttributeMapItem
getEnabled
in interface BaseConfiguration
getEnabled
in class BaseConfigurationImpl
public void setEnabled(boolean enabled)
setEnabled
in interface AttributeMapItem
setEnabled
in interface BaseConfiguration
setEnabled
in class BaseConfigurationImpl
enabled
- true
for enabling; false
otherwise.public String getScript()
getScript
in interface AttributeMapItem
getScript
in interface BaseConfiguration
getScript
in class BaseConfigurationImpl
public void setScript(String script)
setScript
in interface AttributeMapItem
setScript
in interface BaseConfiguration
setScript
in class BaseConfigurationImpl
script
- The new script valuepublic boolean getModify()
getModify
in interface AttributeMapItem
public void setModify(boolean modify)
setModify
in interface AttributeMapItem
modify
- The new modify valuepublic boolean getAdd()
getAdd
in interface AttributeMapItem
public void setAdd(boolean add)
setAdd
in interface AttributeMapItem
add
- The new add valuepublic String getSimple()
getSimple
in interface AttributeMapItem
public void setSimple(String attribute)
setSimple
in interface AttributeMapItem
attribute
- The new simple valuepublic void setType(String type)
setType
in interface AttributeMapItem
type
- The new type valuepublic String getType()
getType
in interface AttributeMapItem
public boolean isSimple()
isSimple
in interface AttributeMapItem
public boolean isAdvanced()
isAdvanced
in interface AttributeMapItem
public boolean isSubstitution()
isSubstitution
in interface AttributeMapItem
public void setSubstitution(String str)
setSubstitution
in interface AttributeMapItem
str
- The substitution templatepublic String getSubstitution()
getSubstitution
in interface AttributeMapItem
public boolean flatten(List<String> excludedNS) throws 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
Exception
public boolean detachFromParent()
reattachToParent(int)
method.
detachFromParent
in interface BaseConfiguration
detachFromParent
in class BaseConfigurationImpl
public boolean reattachToParent(int position)
reattachToParent
in interface BaseConfiguration
reattachToParent
in class BaseConfigurationImpl
position
- This parameter is ignored.
public List getChildAttributeMaps()
getChildAttributeMaps
in interface AttributeMapItem
public void setInheritsFrom(BaseConfiguration inheritFrom)
Note: Call this method to setup a temporary (non persistent) object for inheritance.
setInheritsFrom
in interface BaseConfiguration
setInheritsFrom
in class BaseConfigurationImpl
inheritFrom
- The new inheritsFrom value.public Object getClone() throws Exception
getClone
in interface BaseConfiguration
getClone
in class BaseConfigurationImpl
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |