com.ibm.di.server
Class AttributeMapping

java.lang.Object
  extended by com.ibm.di.server.AttributeMapping

public class AttributeMapping
extends java.lang.Object


Field Summary
static java.lang.String SCRIPT_OBJECT
           
 java.lang.Object value
           
 
Constructor Summary
AttributeMapping(java.lang.String name, TaskInterface context, Log log, ScriptEngine se)
           
 
Method Summary
 void declareBean(java.lang.String name, java.lang.Object bean)
           
 void declareStaticBean(java.lang.String name, java.lang.Object bean)
           
 boolean eval(java.lang.String attr)
           
 boolean getAutomap()
           
 java.lang.String getName()
           
 boolean hasAttribute(java.lang.String attr)
           
 boolean isDebugEnabled(java.lang.String attr)
           
 boolean isEmpty()
           
 void loadEventMap(HooksConfig map)
           
 void loadMap(AttributeMapConfig map)
           
 java.lang.Object mapAttribute(java.lang.String attr)
          Returns either an Entry or an Attribute...
 Entry mapEntry(Entry source, Entry newEntry)
           
 Entry mapEntry(Entry source, Entry newEntry, boolean mergeValues)
          Map one entry into another using the loaded attribute Mapping
 void popStackFrame()
           
 void pushStackFrame(AssemblyLineComponent tc)
           
 void releaseBeans()
           
 void setAutomap(boolean automap)
           
 void undeclareBean(java.lang.String name)
           
 void undeclareStaticBean(java.lang.String name)
           
 void unload()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.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 attributes
newEntry - The Entry that will contain the mapped attributes
mergeValues - If true, do not remove values from newEntry
Throws:
java.lang.Exception - if an attribute is not present

isEmpty

public boolean isEmpty()