Package com.ibm.di.server
Class AttributeMapping
- java.lang.Object
-
- com.ibm.di.server.AttributeMapping
-
public class AttributeMapping extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSCRIPT_OBJECTjava.lang.Objectvalue
-
Constructor Summary
Constructors Constructor Description AttributeMapping(java.lang.String name, TaskInterface context, Log log, ScriptEngine se)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeclareBean(java.lang.String name, java.lang.Object bean)voiddeclareStaticBean(java.lang.String name, java.lang.Object bean)booleaneval(java.lang.String attr)booleangetAutomap()java.lang.StringgetName()booleanhasAttribute(java.lang.String attr)booleanisDebugEnabled(java.lang.String attr)booleanisEmpty()voidloadEventMap(HooksConfig map)voidloadMap(AttributeMapConfig map)java.lang.ObjectmapAttribute(java.lang.String attr)Returns either an Entry or an Attribute...EntrymapEntry(Entry source, Entry newEntry)EntrymapEntry(Entry source, Entry newEntry, boolean mergeValues)Map one entry into another using the loaded attribute MappingvoidpopStackFrame()voidpushStackFrame(AssemblyLineComponent tc)voidreleaseBeans()voidsetAutomap(boolean automap)voidundeclareBean(java.lang.String name)voidundeclareStaticBean(java.lang.String name)voidunload()
-
-
-
Field Detail
-
value
public java.lang.Object value
-
SCRIPT_OBJECT
public static final java.lang.String SCRIPT_OBJECT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AttributeMapping
public AttributeMapping(java.lang.String name, TaskInterface context, Log log, ScriptEngine se)
-
-
Method Detail
-
setAutomap
public void setAutomap(boolean automap)
-
getAutomap
public boolean getAutomap()
-
declareStaticBean
public void declareStaticBean(java.lang.String name, java.lang.Object bean) throws java.lang.Exception- Throws:
java.lang.Exception
-
declareBean
public void declareBean(java.lang.String name, java.lang.Object bean) throws java.lang.Exception- Throws:
java.lang.Exception
-
releaseBeans
public void releaseBeans()
-
undeclareBean
public void undeclareBean(java.lang.String name) throws java.lang.Exception- Throws:
java.lang.Exception
-
undeclareStaticBean
public void undeclareStaticBean(java.lang.String name) throws java.lang.Exception- Throws:
java.lang.Exception
-
pushStackFrame
public void pushStackFrame(AssemblyLineComponent tc) throws java.lang.Exception
- Throws:
java.lang.Exception
-
popStackFrame
public void popStackFrame()
-
unload
public void unload()
-
loadMap
public void loadMap(AttributeMapConfig map) throws java.lang.Exception
- Throws:
java.lang.Exception
-
loadEventMap
public void loadEventMap(HooksConfig map) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getName
public java.lang.String getName()
-
hasAttribute
public boolean hasAttribute(java.lang.String attr)
-
isDebugEnabled
public boolean isDebugEnabled(java.lang.String attr)
-
eval
public boolean eval(java.lang.String attr) throws java.lang.Exception- Throws:
java.lang.Exception
-
mapAttribute
public java.lang.Object mapAttribute(java.lang.String attr) throws java.lang.ExceptionReturns either an Entry or an Attribute... FOR INTERNAL USE ONLY!!!- Parameters:
attr- the attribute name.- Returns:
- either an Entry or an Attribute
- Throws:
java.lang.Exception
-
mapEntry
public Entry mapEntry(Entry source, Entry newEntry) throws java.lang.Exception
- Throws:
java.lang.Exception
-
mapEntry
public Entry mapEntry(Entry source, Entry newEntry, boolean mergeValues) throws java.lang.Exception
Map one entry into another using the loaded attribute Mapping- Parameters:
source- The Entry containing the source attributesnewEntry- The Entry that will contain the mapped attributesmergeValues- If true, do not remove values from newEntry- Throws:
java.lang.Exception- if an attribute is not present
-
isEmpty
public boolean isEmpty()
-
-