|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.metaparadigm.jsonrpc.serializer.AbstractSerializer
public abstract class AbstractSerializer
Convenience class for implementing Serializers providing default setOwner and canSerialize implementations.
| Constructor Summary | |
|---|---|
AbstractSerializer()
|
|
| Method Summary | |
|---|---|
boolean |
canSerialize(java.lang.Class clazz,
java.lang.Class jsonClazz)
Default check that simply tests the given serializeable class arrays to determine if the pair of classes can be serialized/deserialized from this Serializer. |
void |
setOwner(JSONSerializer ser)
Set the owning JSONSerializer of this Serializer instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.metaparadigm.jsonrpc.serializer.Serializer |
|---|
getJSONClasses, getSerializableClasses, marshall, tryUnmarshall, unmarshall |
| Constructor Detail |
|---|
public AbstractSerializer()
| Method Detail |
|---|
public boolean canSerialize(java.lang.Class clazz,
java.lang.Class jsonClazz)
canSerialize in interface Serializerclazz - java type to check if this Serializer can handle.jsonClazz - json type to check this Serializer can handle.
public void setOwner(JSONSerializer ser)
Serializer
setOwner in interface Serializerser - the owning JSONSerializer of this Serializer instance.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||