|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
| 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 |
| 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-negativeIllegalArgumentException - 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 nullIllegalArgumentException - if the user type associated with the given object is unknown to this PofContext or if the object is nullint getUserTypeIdentifier(Class clz)
clz - a user type class; must not be nullIllegalArgumentException - if the user type associated with the given class is unknown to this PofContext or if the class is nullint getUserTypeIdentifier(String sClass)
sClass - the name of a user type class; must not be nullIllegalArgumentException - if the user type associated with the given class name is unknown to this PofContext or if the class name is nullString getClassName(int nTypeId)
nTypeId - the user type identifier; must be non-negativeIllegalArgumentException - if the specified user type is negative or unknown to this PofContextClass getClass(int nTypeId)
nTypeId - the user type identifier; must be non-negativeIllegalArgumentException - if the specified user type is negative or unknown to this PofContextboolean isUserType(Object o)
o - the object to test; must not be nullIllegalArgumentException - if the given object is nullboolean isUserType(Class clz)
clz - the class to test; must not be nullIllegalArgumentException - if the given class is nullboolean isUserType(String sClass)
sClass - the name of the class to test; must not be nullIllegalArgumentException - if the given class name is null
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||