com.ibm.di.server
Class AttributeMapping
java.lang.Object
com.ibm.di.server.AttributeMapping
public class AttributeMapping
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
public java.lang.Object value
SCRIPT_OBJECT
public static final java.lang.String SCRIPT_OBJECT
- See Also:
- Constant Field Values
AttributeMapping
public AttributeMapping(java.lang.String name,
TaskInterface context,
Log log,
ScriptEngine se)
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.Exception
- Returns 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()