Class GwtSerialization.Property

  • Enclosing class:
    GwtSerialization

    public static class GwtSerialization.Property
    extends java.lang.Object
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getGetter

        public java.lang.String getGetter()
      • getType

        public java.lang.String getType()
      • getName

        public java.lang.String getName()
      • getGwtType

        public java.lang.String getGwtType()
        Returns the suffix in serializer method names for values of the given type. For example, if the type is "int" then the returned value will be "Int" because the serializer methods are called readInt and writeInt. There are methods for all primitive types and String; every other type uses readObject and writeObject.
      • getGwtCast

        public java.lang.String getGwtCast()
        Returns a string to be inserted before the call to the readFoo() call so that the expression can be assigned to the given type. For primitive types and String, the readInt() etc methods already return the right type so the string is empty. For other types, the string is a cast like "(Foo) ".
      • isCastingUnchecked

        public boolean isCastingUnchecked()