public abstract class MOperation extends MBaseOperation
Modifier and Type | Field and Description |
---|---|
protected MInstance |
m_operationInstance |
protected MTrackingInfo |
m_trackingInfo |
protected java.lang.Object |
m_userClosure |
m_app, m_classDescription, m_operationClassName, m_operationDescription, m_operationName
OPERATION_CLOSURE_TAG, OPERATION_EXCEPTIONDATA_TAG, OPERATION_EXCEPTIONNAME_TAG, OPERATION_HASEXCEPTION_TAG, OPERATION_REQUEST_TAG, OPERATION_RETURNVALUE_TAG, OPERATION_USERCLOSURE_TAG
Modifier and Type | Method and Description |
---|---|
java.util.Enumeration |
get()
Enumerate over the list of parameter values.
|
java.lang.Object |
get(java.lang.String attributeName)
Return the value of a parameter.
|
java.lang.Object |
getClosure()
Retrieve a user-defined closure from this
MOperation instance. |
java.util.Enumeration |
getKeys()
Enumerate over the list of parameter names.
|
MTrackingInfo |
getTrackingInfo()
Retrieve the tracking information from the
MOperation object. |
boolean |
isNullData(java.lang.String attributeName)
Determine whether the value of the specified attribute has been explicitly set to null.
|
void |
set(java.lang.String attributeName,
java.lang.Object data)
Set the value of the specified attribute.
|
void |
setClosure(java.lang.Object data)
Set the user-defined closure.
|
void |
setNullData(java.lang.String attributeName)
Set the value of the specified attribute explicitly to null.
|
void |
setTrackingInfo(MTrackingInfo data)
Forward the tracking information to a new
MOperation object. |
protected boolean |
validateParameter(java.lang.String attributeName) |
getClassDescription, getOperationDescription, retrieveClasssDescription, retrieveOperationDescription
protected MInstance m_operationInstance
protected MTrackingInfo m_trackingInfo
protected java.lang.Object m_userClosure
public void set(java.lang.String attributeName, java.lang.Object data) throws MException, MInvalidInputException
attributeName
- Name of the attribute for which you want to change the value.data
- New value for this attribute.MException
- if the value being set is null. Use the method setNullData(String)
to set the value to null explicitly.MInvalidInputException
- if no attribute with the specified name is found.setClosure(Object)
,
setNullData(String)
public java.lang.Object get(java.lang.String attributeName) throws MInvalidInputException
MInvalidInputException
- if no parameter with this name is found.public java.util.Enumeration get()
public java.lang.Object getClosure()
MOperation
instance.setClosure(Object)
public void setClosure(java.lang.Object data)
data
- Closure datagetClosure()
public MTrackingInfo getTrackingInfo()
MOperation
object.
A new MTrackingInfo
instance is created if there isn't one.
setTrackingInfo(MTrackingInfo)
public void setTrackingInfo(MTrackingInfo data)
MOperation
object.data
- The information to forward.getTrackingInfo()
public boolean isNullData(java.lang.String attributeName) throws MException
attributeName
- Attribute for which you want to check whether it has been explicitly set to null.MException
setClosure(Object)
,
"Setting Data to NULL Explicitly, in TIBCO Adapter SDK Programmer's Guide"public void setNullData(java.lang.String attributeName) throws MException
attributeName
- Name of the attribute that you want to set explicitly to null.MException
isNullData(String)
,
"Setting Data to NULL Explicitly, in TIBCO Adapter SDK Programmer's Guide"public java.util.Enumeration getKeys()
Enumeration.nextElement()
can be cast to String
.protected boolean validateParameter(java.lang.String attributeName) throws MException
MException