public class ConstraintViolationException_CustomFieldSerializer extends CustomFieldSerializer<javax.validation.ConstraintViolationException>
ConstraintViolationException
.Constructor and Description |
---|
ConstraintViolationException_CustomFieldSerializer() |
Modifier and Type | Method and Description |
---|---|
static void |
deserialize(SerializationStreamReader streamReader,
javax.validation.ConstraintViolationException instance) |
void |
deserializeInstance(SerializationStreamReader streamReader,
javax.validation.ConstraintViolationException instance)
Deserializes the content of the object from the
SerializationStreamReader . |
boolean |
hasCustomInstantiateInstance() |
static javax.validation.ConstraintViolationException |
instantiate(SerializationStreamReader streamReader) |
javax.validation.ConstraintViolationException |
instantiateInstance(SerializationStreamReader streamReader)
Instantiates an object from the
SerializationStreamReader . |
static void |
serialize(SerializationStreamWriter streamWriter,
javax.validation.ConstraintViolationException instance) |
void |
serializeInstance(SerializationStreamWriter streamWriter,
javax.validation.ConstraintViolationException instance)
Serializes the content of the object into the
SerializationStreamWriter . |
public ConstraintViolationException_CustomFieldSerializer()
public static void deserialize(SerializationStreamReader streamReader, javax.validation.ConstraintViolationException instance) throws SerializationException
SerializationException
public static javax.validation.ConstraintViolationException instantiate(SerializationStreamReader streamReader) throws SerializationException
SerializationException
public static void serialize(SerializationStreamWriter streamWriter, javax.validation.ConstraintViolationException instance) throws SerializationException
SerializationException
public void deserializeInstance(SerializationStreamReader streamReader, javax.validation.ConstraintViolationException instance) throws SerializationException
CustomFieldSerializer
SerializationStreamReader
.deserializeInstance
in class CustomFieldSerializer<javax.validation.ConstraintViolationException>
streamReader
- the SerializationStreamReader
to read the
object's content frominstance
- the object instance to deserializeSerializationException
- if the deserialization operation is not
successfulpublic boolean hasCustomInstantiateInstance()
hasCustomInstantiateInstance
in class CustomFieldSerializer<javax.validation.ConstraintViolationException>
true
if a specialist CustomFieldSerializer.instantiateInstance(com.google.gwt.user.client.rpc.SerializationStreamReader)
is
implemented; false
otherwisepublic javax.validation.ConstraintViolationException instantiateInstance(SerializationStreamReader streamReader) throws SerializationException
CustomFieldSerializer
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 CustomFieldSerializer.hasCustomInstantiateInstance()
method
must return true
in order for the framework to know to call
it.
instantiateInstance
in class CustomFieldSerializer<javax.validation.ConstraintViolationException>
streamReader
- the SerializationStreamReader
to read the
object's content fromSerializationStreamReader
SerializationException
- if the instantiation operation is not
successfulpublic void serializeInstance(SerializationStreamWriter streamWriter, javax.validation.ConstraintViolationException instance) throws SerializationException
CustomFieldSerializer
SerializationStreamWriter
.serializeInstance
in class CustomFieldSerializer<javax.validation.ConstraintViolationException>
streamWriter
- the SerializationStreamWriter
to write the
object's content toinstance
- the object instance to serializeSerializationException
- if the serialization operation is not
successfulCopyright © 2018. All rights reserved.