public class EntityType_CustomFieldSerializer extends com.google.gwt.user.client.rpc.CustomFieldSerializer<EntityType>
EntityType objects.| Modifier and Type | Field and Description |
|---|---|
static byte |
ANNOTATION_PROPERTY_MARKER |
static byte |
CLASS_MARKER |
static byte |
DATA_PROPERTY_MARKER |
static byte |
DATATYPE_MARKER |
static byte |
NAMED_INDIVIDUAL_PROPERTY_MARKER |
static byte |
OBJECT_PROPERTY_MARKER |
| Constructor and Description |
|---|
EntityType_CustomFieldSerializer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
deserialize(com.google.gwt.user.client.rpc.SerializationStreamReader streamReader,
EntityType instance) |
void |
deserializeInstance(com.google.gwt.user.client.rpc.SerializationStreamReader streamReader,
EntityType instance)
Deserializes the content of the object from the
SerializationStreamReader. |
boolean |
hasCustomInstantiateInstance() |
static EntityType |
instantiate(com.google.gwt.user.client.rpc.SerializationStreamReader streamReader) |
EntityType |
instantiateInstance(com.google.gwt.user.client.rpc.SerializationStreamReader streamReader)
Instantiates an object from the
SerializationStreamReader. |
static void |
serialize(com.google.gwt.user.client.rpc.SerializationStreamWriter streamWriter,
EntityType instance) |
void |
serializeInstance(com.google.gwt.user.client.rpc.SerializationStreamWriter streamWriter,
EntityType instance)
Serializes the content of the object into the
SerializationStreamWriter. |
public static final byte CLASS_MARKER
public static final byte OBJECT_PROPERTY_MARKER
public static final byte DATA_PROPERTY_MARKER
public static final byte ANNOTATION_PROPERTY_MARKER
public static final byte NAMED_INDIVIDUAL_PROPERTY_MARKER
public static final byte DATATYPE_MARKER
public boolean hasCustomInstantiateInstance()
hasCustomInstantiateInstance in class com.google.gwt.user.client.rpc.CustomFieldSerializer<EntityType>true if a specialist instantiateInstance(com.google.gwt.user.client.rpc.SerializationStreamReader) is
implemented; false otherwisepublic EntityType instantiateInstance(com.google.gwt.user.client.rpc.SerializationStreamReader streamReader) throws com.google.gwt.user.client.rpc.SerializationException
SerializationStreamReader.
Most of the time, this can be left unimplemented and the framework will instantiate the instance itself. This is typically used when the object being deserialized is immutable, hence it has to be created with its state already set.
If this is overridden, the hasCustomInstantiateInstance() method
must return true in order for the framework to know to call
it.
instantiateInstance in class com.google.gwt.user.client.rpc.CustomFieldSerializer<EntityType>streamReader - the SerializationStreamReader to read the
object's content fromSerializationStreamReadercom.google.gwt.user.client.rpc.SerializationException - if the instantiation operation is not
successfulpublic static EntityType instantiate(com.google.gwt.user.client.rpc.SerializationStreamReader streamReader) throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationExceptionpublic void serializeInstance(com.google.gwt.user.client.rpc.SerializationStreamWriter streamWriter,
EntityType instance)
throws com.google.gwt.user.client.rpc.SerializationException
SerializationStreamWriter.serializeInstance in class com.google.gwt.user.client.rpc.CustomFieldSerializer<EntityType>streamWriter - the SerializationStreamWriter to write the
object's content toinstance - the object instance to serializecom.google.gwt.user.client.rpc.SerializationException - if the serialization operation is not
successfulpublic static void serialize(com.google.gwt.user.client.rpc.SerializationStreamWriter streamWriter,
EntityType instance)
throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationExceptionpublic void deserializeInstance(com.google.gwt.user.client.rpc.SerializationStreamReader streamReader,
EntityType instance)
throws com.google.gwt.user.client.rpc.SerializationException
SerializationStreamReader.deserializeInstance in class com.google.gwt.user.client.rpc.CustomFieldSerializer<EntityType>streamReader - the SerializationStreamReader to read the
object's content frominstance - the object instance to deserializecom.google.gwt.user.client.rpc.SerializationException - if the deserialization operation is not
successfulpublic static void deserialize(com.google.gwt.user.client.rpc.SerializationStreamReader streamReader,
EntityType instance)
throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationExceptionCopyright © 2017. All rights reserved.