|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PofContext
The PofContext interface represents a set of user types that can be serialized to and deserialized from a POF stream.
Method Summary | |
---|---|
Class |
getClass(int nTypeId)
Determine the class associated with the given user type identifier. |
String |
getClassName(int nTypeId)
Determine the name of the class associated with the given user type identifier. |
PofSerializer |
getPofSerializer(int nTypeId)
Return a PofSerializer that can be used to serialize and deserialize an object of the specified user type to and from a POF stream. |
int |
getUserTypeIdentifier(Class clz)
Determine the user type identifier associated with the given class. |
int |
getUserTypeIdentifier(Object o)
Determine the user type identifier associated with the given object. |
int |
getUserTypeIdentifier(String sClass)
Determine the user type identifier associated with the given class name. |
boolean |
isUserType(Class clz)
Determine if the given class is a user type known to this PofContext. |
boolean |
isUserType(Object o)
Determine if the given object is of a user type known to this PofContext. |
boolean |
isUserType(String sClass)
Determine if the class with the given name is a user type known to this PofContext. |
Methods inherited from interface com.tangosol.io.Serializer |
---|
deserialize, serialize |
Methods inherited from interface com.tangosol.io.ClassLoaderAware |
---|
getContextClassLoader, setContextClassLoader |
Method Detail |
---|
PofSerializer getPofSerializer(int nTypeId)
nTypeId
- the type identifier of the user type that can be
serialized and deserialized using the returned
PofSerializer; must be non-negative
IllegalArgumentException
- if the specified user type is
negative or unknown to this PofContextint getUserTypeIdentifier(Object o)
o
- an instance of a user type; must not be null
IllegalArgumentException
- if the user type associated with the
given object is unknown to this PofContextint getUserTypeIdentifier(Class clz)
clz
- a user type class; must not be null
IllegalArgumentException
- if the user type associated with the
given class is unknown to this PofContextint getUserTypeIdentifier(String sClass)
sClass
- the name of a user type class; must not be null
IllegalArgumentException
- if the user type associated with the
given class name is unknown to this PofContextString getClassName(int nTypeId)
nTypeId
- the user type identifier; must be non-negative
IllegalArgumentException
- if the specified user type is
negative or unknown to this PofContextClass getClass(int nTypeId)
nTypeId
- the user type identifier; must be non-negative
IllegalArgumentException
- if the specified user type is
negative or unknown to this PofContextboolean isUserType(Object o)
o
- the object to test; must not be null
boolean isUserType(Class clz)
clz
- the class to test; must not be null
boolean isUserType(String sClass)
sClass
- the name of the class to test; must not be null
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |