com.sap.aii.mappingtool.tf7.rt

Interface Container


public interface Container

An instance of this object enables you to cache the values that you want to read again when you next call the same user-defined function. Each user defined function has its own container instance.

The following source code queries the interface namespace of the message header in a user-defined function getInterfaceNamesapce, displays it as information by using the AbstractTrace object and returns it as a result of the function:

public String getInterfaceNamespace(Container container)throws StreamTransformationException {

}

See Also:
GlobalContainer

Method Summary
 GlobalContainer getGlobalContainer()
          Returns the global container for storing objects shich should be accessable in other user defined functions.
 InputHeader getInputHeader()
          Returns the access to the message header input parameters, like sender system , receiver system, etc.
 InputParameters getInputParameters()
          Returns the access to the import parameters which have been defined in the signature tab of the message mapping editor.
 OutputHeader getOutputHeader()
          Returns the access to the message header output parameters.
 OutputParameters getOutputParameters()
          Returns the access to the export parameters which have been defined in the signature tab of the message mapping editor.
 Object getParameter(String name)
          Returns the parameter that was saved under the given name in this user-specific function by using setParameter(String, Object) method.
 AbstractTrace getTrace()
          Returns the mapping trace object that can be used to add trace messages.
 Map getTransformationParameters()
          Deprecated. use getInputParameters() instead
 void setParameter(String name, Object value)
          Saves an object under the given name in a container for a user-specific function.
 

Method Detail

getParameter

Object getParameter(String name)
Returns the parameter that was saved under the given name in this user-specific function by using setParameter(String, Object) method. If no such parameter exists, null is returned.

Parameters:
name - the name of the parameter
Returns:
parameter that have been stored before with setParameter method or null if there is no such paramter.

setParameter

void setParameter(String name,
                  Object value)
Saves an object under the given name in a container for a user-specific function.

Parameters:
name - the name of the parameter
value - the value to bind to this name

getTrace

AbstractTrace getTrace()
Returns the mapping trace object that can be used to add trace messages.


getGlobalContainer

GlobalContainer getGlobalContainer()
Returns the global container for storing objects shich should be accessable in other user defined functions.


getInputHeader

InputHeader getInputHeader()
Returns the access to the message header input parameters, like sender system , receiver system, etc.


getInputParameters

InputParameters getInputParameters()
Returns the access to the import parameters which have been defined in the signature tab of the message mapping editor.


getOutputHeader

OutputHeader getOutputHeader()
Returns the access to the message header output parameters.


getOutputParameters

OutputParameters getOutputParameters()
Returns the access to the export parameters which have been defined in the signature tab of the message mapping editor.


getTransformationParameters

Map getTransformationParameters()
Deprecated. use getInputParameters() instead

Returns a map with all input parameters. Left for compatibility with old mapping API.



Copyright 2007 SAP AG Complete Copyright Notice