CacheableObjectXml Class |
Note: This API is now obsolete.
Namespace: GemStone.GemFire.Cache
The CacheableObjectXml type exposes the following members.
Name | Description | |
---|---|---|
![]() | ClassId |
Returns the classId of the instance being serialized.
This is used by deserialization to determine what instance
type to create and deserialize into.
|
![]() | ObjectSize |
return the size of this object in bytes
|
![]() | Value |
Gets the object value.
|
Name | Description | |
---|---|---|
![]() ![]() | Create |
Static function to create a new instance from the given object.
|
![]() ![]() | CreateDeserializable |
Factory function to register this class.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | FromData |
Deserializes the [!:System.Object] using
[!:System.Xml.Serialization.XmlSerializer] class.
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToData |
Serializes this [!:System.Object] using
[!:System.Xml.Serialization.XmlSerializer] class.
|
![]() | ToString | (Overrides ObjectToString.) |
This class can contain any object and uses the [!:System.Xml.Serialization.XmlSerializer] to serialize and deserialize the object. So the user must use the XmlSerializer attributes to control the serialization/deserialization of the object (or implement the [!:System.Xml.Serialization.IXmlSerializable]) to change the serialization/deserialization. However, the latter should be avoided for efficiency reasons and the user should implement IGFSerializable instead.
The user must keep in mind that the rules that apply to XmlSerializer would be the rules that apply to this class. For instance the user cannot pass objects of class implementing or containing [!:System.Collections.IDictionary] class, must use [!:System.Xml.Serialization.XmlIncludeAttribute] to mark user-defined types etc.