public interface Container
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 {
InputHeader inputHeader = container.getInputHeader();
String interfaceNS = inputHeader.getInterfaceNamespace();
AbstractTrace trace = container.getTrace();
trace.addDebugMessage("Interface namespace: "+interfaceNS);
return interfaceNS;
}
GlobalContainer| Modifier and Type | Method and Description |
|---|---|
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.
|
Object getParameter(String name)
setParameter(String, Object)
method. If no such parameter exists, null is returned.name - the name of the parametersetParameter method or null if
there is no such paramter.void setParameter(String name, Object value)
name - the name of the parametervalue - the value to bind to this nameAbstractTrace getTrace()
GlobalContainer getGlobalContainer()
InputHeader getInputHeader()
InputParameters getInputParameters()
OutputHeader getOutputHeader()
OutputParameters getOutputParameters()
Map getTransformationParameters()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] SAP_XIAF
|
[sap.com] com.sap.aii.mapping.lib.facade
|
api
|
BC-XI
|
Copyright 2016 SAP AG Complete Copyright Notice