com.ibm.di.server
Class AttributeMapping

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

public class AttributeMapping
extends Object


Field Summary
static String SCRIPT_OBJECT
           
 Object value
           
 
Constructor Summary
AttributeMapping(String name, TaskInterface context, Log log, ScriptEngine se)
           
 
Method Summary
 void declareBean(String name, Object bean)
           
 void declareStaticBean(String name, Object bean)
           
 boolean eval(String attr)
           
 boolean getAutomap()
           
 String getName()
           
 boolean hasAttribute(String attr)
           
 boolean isDebugEnabled(String attr)
           
 boolean isEmpty()
           
 void loadEventMap(HooksConfig map)
           
 void loadMap(AttributeMapConfig map)
           
 Object mapAttribute(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(String name)
           
 void undeclareStaticBean(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 Object value

SCRIPT_OBJECT

public static final String SCRIPT_OBJECT
See Also:
Constant Field Values
Constructor Detail

AttributeMapping

public AttributeMapping(String name,
                        TaskInterface context,
                        Log log,
                        ScriptEngine se)
Method Detail

setAutomap

public void setAutomap(boolean automap)

getAutomap

public boolean getAutomap()

declareStaticBean

public void declareStaticBean(String name,
                              Object bean)
                       throws Exception
Throws:
Exception

declareBean

public void declareBean(String name,
                        Object bean)
                 throws Exception
Throws:
Exception

releaseBeans

public void releaseBeans()

undeclareBean

public void undeclareBean(String name)
                   throws Exception
Throws:
Exception

undeclareStaticBean

public void undeclareStaticBean(String name)
                         throws Exception
Throws:
Exception

pushStackFrame

public void pushStackFrame(AssemblyLineComponent tc)
                    throws Exception
Throws:
Exception

popStackFrame

public void popStackFrame()

unload

public void unload()

loadMap

public void loadMap(AttributeMapConfig map)
             throws Exception
Throws:
Exception

loadEventMap

public void loadEventMap(HooksConfig map)
                  throws Exception
Throws:
Exception

getName

public String getName()

hasAttribute

public boolean hasAttribute(String attr)

isDebugEnabled

public boolean isDebugEnabled(String attr)

eval

public boolean eval(String attr)
             throws Exception
Throws:
Exception

mapAttribute

public Object mapAttribute(String attr)
                    throws 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:
Exception

mapEntry

public Entry mapEntry(Entry source,
                      Entry newEntry)
               throws Exception
Throws:
Exception

mapEntry

public Entry mapEntry(Entry source,
                      Entry newEntry,
                      boolean mergeValues)
               throws 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:
Exception - if an attribute is not present

isEmpty

public boolean isEmpty()