public interface MData
extends java.io.Serializable
MData
(and any subclass of it) behaves like an instance of this class.
Unlike an MTree
in which any arbitrary structure can be constructed,
the MData
depends upon its class description predefined in the
repository and encapsulated in an MMetaDescription
object.Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Deprecated.
Unsupported API
|
java.lang.Object |
get(java.lang.String name) |
int |
getCategory() |
MClassDescription |
getClassDescription()
Return the class description from which this data is created,
that is, the class description that encapsulates the metadata
describing this data.
|
MTrackingInfo |
getTrackingInfo()
Retrieve the tracking information from the
MData object. |
int |
hashCode() |
MTree |
serialize()
Convert this
MData instance to an MTree |
MTree |
serialize(int formatHint)
Convert this
MData instance to an MTree |
void |
set(java.lang.String name,
java.lang.Object val) |
void |
setTrackingInfo(MTrackingInfo data)
Forward the tracking info to a new
MData object. |
MClassDescription getClassDescription()
MTree serialize() throws MException
MData
instance to an MTree
MException
- on any error serializing this instance into an MTree
object.MTree serialize(int formatHint) throws MException
MData
instance to an MTree
formatHint
- Required parameter specifying the message format.
Valid message format values are
MMessageFormat.AERV
- for AERv message format
MMessageFormat.XMLJMS
- for JMS XML message format
MMessageFormat.XMLRV
- for RV XML message formatMException
- on any error serializing this instance into an MTree
object.java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
int hashCode()
hashCode
in class java.lang.Object
int getCategory()
java.lang.Object get(java.lang.String name) throws MException
MException
void set(java.lang.String name, java.lang.Object val) throws MException
MException
MTrackingInfo getTrackingInfo()
MData
object.
If there isnt any tracking data available, create a new tracking data with "source undefined" as tracking information.
setTrackingInfo(MTrackingInfo)
void setTrackingInfo(MTrackingInfo data)
MData
object.data
- The information to forward.getTrackingInfo()