public class ModuleData extends Object implements Serializable
ModuleDate
is the container which carries the module input data and module output data.
It distinguishes between PrincipalData that should contain the message and SupplementalData that carries
add-on values which represent e.g. intermediate results to be exchanged between modules.Modifier and Type | Field and Description |
---|---|
protected Vector |
moduleLogs |
protected Object |
principalData |
protected Hashtable |
supplementalDataTable |
Constructor and Description |
---|
ModuleData() |
Modifier and Type | Method and Description |
---|---|
String |
contentToString()
String serialization for logging purposes.
|
Object |
getPrincipalData()
Retrieves the current principle data, usually the message
|
Object |
getSupplementalData(String name)
Gets one supplement data value.
|
Enumeration |
getSupplementalDataNames()
Returns the names of all currently existing supplement data.
|
void |
setPrincipalData(Object principalData)
Sets the principle data that represents usually the message to be processed.
|
void |
setSupplementalData(String name,
Object supplementalData)
Sets a supplement data for the rest of the module chain
|
protected Hashtable supplementalDataTable
protected Object principalData
protected Vector moduleLogs
public Enumeration getSupplementalDataNames()
public void setSupplementalData(String name, Object supplementalData)
name
- Name of the supplement data, should contain a namespacesupplementalData
- Supplement data value, can be an arbitrary object, the receiver must know
the object typepublic Object getSupplementalData(String name)
name
- Name of the supplement datapublic void setPrincipalData(Object principalData)
principalData
- The module interfaces do not require a specific message class
Thus the principalData might be a XMBMessage, a MS Message, a XIMessage or another Java class.
The administrator however must ensure that the pre-module output is type compatible to the post-module input.public Object getPrincipalData()
public String contentToString()
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] SAP_XIAF
|
[sap.com] com.sap.aii.af.lib.facade
|
api
|
BC-XI
|
Copyright 2019 SAP AG Complete Copyright Notice