Show / Hide Table of Contents

Class NullImplementation.NullPofContext

An implementation of IPofContext that does nothing.

Inheritance
object
NullImplementation.NullPofContext
Implements
IPofContext
ISerializer
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Tangosol.Util
Assembly: Coherence.dll
Syntax
public class NullImplementation.NullPofContext : IPofContext, ISerializer

Fields

Instance

Singleton instance.

Declaration
public static readonly NullImplementation.NullPofContext Instance
Field Value
Type Description
NullImplementation.NullPofContext

Methods

Deserialize(DataReader)

Deserialize an object from a stream by reading its state using the specified DataReader object.

Declaration
public object Deserialize(DataReader reader)
Parameters
Type Name Description
DataReader reader

The DataReader with which to read the object's state.

Returns
Type Description
object

The deserialized user type instance.

Exceptions
Type Condition
IOException

If an I/O error occurs.

GetPofSerializer(int)

Return an IPofSerializer that can be used to serialize and deserialize an object of the specified user type to and from a POF stream.

Declaration
public IPofSerializer GetPofSerializer(int typeId)
Parameters
Type Name Description
int typeId

The type identifier of the user type that can be serialized and deserialized using the returned IPofSerializer; must be non-negative.

Returns
Type Description
IPofSerializer

An IPofSerializer for the specified user type.

Exceptions
Type Condition
ArgumentException

If the specified user type is negative or unknown to this IPofContext.

GetType(int)

Determine the type associated with the given user type identifier.

Declaration
public Type GetType(int typeId)
Parameters
Type Name Description
int typeId

The user type identifier; must be non-negative.

Returns
Type Description
Type

The type associated with the specified user type identifier.

Exceptions
Type Condition
ArgumentException

If the specified user type is negative or unknown to this IPofContext.

GetTypeName(int)

Determine the name of the type associated with a user type identifier.

Declaration
public string GetTypeName(int typeId)
Parameters
Type Name Description
int typeId

The user type identifier; must be non-negative.

Returns
Type Description
string

The name of the type associated with the specified user type identifier.

Exceptions
Type Condition
ArgumentException

If the specified user type is negative or unknown to this IPofContext.

GetUserTypeIdentifier(object)

Determine the user type identifier associated with the given object.

Declaration
public int GetUserTypeIdentifier(object o)
Parameters
Type Name Description
object o

An instance of a user type; must not be null.

Returns
Type Description
int

The type identifier of the user type associated with the given object.

Exceptions
Type Condition
ArgumentException

If the user type associated with the given object is unknown to this IPofContext.

GetUserTypeIdentifier(string)

Determine the user type identifier associated with the given type name.

Declaration
public int GetUserTypeIdentifier(string typeName)
Parameters
Type Name Description
string typeName

The name of a user type; must not be null.

Returns
Type Description
int

The type identifier of the user type associated with the given type name.

Exceptions
Type Condition
ArgumentException

If the user type associated with the given type name is unknown to this IPofContext.

GetUserTypeIdentifier(Type)

Determine the user type identifier associated with the given type.

Declaration
public int GetUserTypeIdentifier(Type type)
Parameters
Type Name Description
Type type

A user type; must not be null.

Returns
Type Description
int

The type identifier of the user type associated with the given type.

Exceptions
Type Condition
ArgumentException

If the user type associated with the given type is unknown to this IPofContext.

IsUserType(object)

Determine if the given object is of a user type known to this IPofContext.

Declaration
public bool IsUserType(object o)
Parameters
Type Name Description
object o

The object to test; must not be null.

Returns
Type Description
bool

true iff the specified object is of a valid user type.

IsUserType(string)

Determine if the type with the given name is a user type known to this IPofContext.

Declaration
public bool IsUserType(string typeName)
Parameters
Type Name Description
string typeName

The name of the type to test; must not be null.

Returns
Type Description
bool

true iff the type with the specified name is a valid user type.

IsUserType(Type)

Determine if the given type is a user type known to this IPofContext.

Declaration
public bool IsUserType(Type type)
Parameters
Type Name Description
Type type

The type to test; must not be null.

Returns
Type Description
bool

true iff the specified type is a valid user type.

Serialize(DataWriter, object)

Serialize an object to a stream by writing its state using the specified DataWriter object.

Declaration
public void Serialize(DataWriter writer, object o)
Parameters
Type Name Description
DataWriter writer

The DataWriter with which to write the object's state.

object o

The object to serialize.

Exceptions
Type Condition
IOException

If an I/O error occurs.

Implements

IPofContext
ISerializer
In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.