com.google.gwt.user.rebind.rpc
Class CustomFieldSerializerValidator

java.lang.Object
  extended by com.google.gwt.user.rebind.rpc.CustomFieldSerializerValidator

public class CustomFieldSerializerValidator
extends java.lang.Object

Checks that a custom serializer is valid.


Method Summary
static JMethod getDeserializationMethod(JClassType serializer, JClassType serializee)
           
static JMethod getInstantiationMethod(JClassType serializer, JClassType serializee)
           
static JMethod getSerializationMethod(JClassType serializer, JClassType serializee)
           
static boolean hasDeserializationMethod(JClassType serializer, JClassType serializee)
           
static boolean hasInstantiationMethod(JClassType serializer, JClassType serializee)
           
static boolean hasSerializationMethod(JClassType serializer, JClassType serializee)
           
static java.util.List<java.lang.String> validate(JClassType serializer, JClassType serializee)
          Returns a list of error messages associated with the custom field serializer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDeserializationMethod

public static JMethod getDeserializationMethod(JClassType serializer,
                                               JClassType serializee)

getInstantiationMethod

public static JMethod getInstantiationMethod(JClassType serializer,
                                             JClassType serializee)

getSerializationMethod

public static JMethod getSerializationMethod(JClassType serializer,
                                             JClassType serializee)

hasDeserializationMethod

public static boolean hasDeserializationMethod(JClassType serializer,
                                               JClassType serializee)

hasInstantiationMethod

public static boolean hasInstantiationMethod(JClassType serializer,
                                             JClassType serializee)

hasSerializationMethod

public static boolean hasSerializationMethod(JClassType serializer,
                                             JClassType serializee)

validate

public static java.util.List<java.lang.String> validate(JClassType serializer,
                                                        JClassType serializee)
Returns a list of error messages associated with the custom field serializer.

Parameters:
serializer - the class which performs the serialization
serializee - the class being serialized
Returns:
list of error messages, if any, associated with the custom field serializer