/**
* Copyright 2005-2014 Restlet
*
* The contents of this file are subject to the terms of one of the following
* open source licenses: Apache 2.0 or or EPL 1.0 (the "Licenses"). You can
* select the license that you prefer but you may not use this file except in
* compliance with one of these Licenses.
*
* You can obtain a copy of the Apache 2.0 license at
* http://www.opensource.org/licenses/apache-2.0
*
* You can obtain a copy of the EPL 1.0 license at
* http://www.opensource.org/licenses/eclipse-1.0
*
* See the Licenses for the specific language governing permissions and
* limitations under the Licenses.
*
* Alternatively, you can obtain a royalty free commercial license with less
* limitations, transferable or non-transferable, directly at
* http://restlet.com/products/restlet-framework
*
* Restlet is a registered trademark of Restlet S.A.S.
*/
package org.restlet.example.book.restlet.ch09.client;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.JsArrayString;
import com.google.gwt.user.client.rpc.impl.TypeHandler;
import java.util.HashMap;
import java.util.Map;
import com.google.gwt.core.client.GwtScriptOnly;
public class ContactsResourceProxy_TypeSerializer extends com.google.gwt.user.client.rpc.impl.SerializerBase {
private static final MethodMap methodMapNative;
private static final JsArrayString signatureMapNative;
static {
methodMapNative = loadMethodsNative();
signatureMapNative = loadSignaturesNative();
}
@SuppressWarnings("deprecation")
@GwtScriptOnly
private static native MethodMap loadMethodsNative() /*-{
var result = {};
result["java.lang.String/2004016611"] = [
@com.google.gwt.user.client.rpc.core.java.lang.String_CustomFieldSerializer::instantiate(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;),
@com.google.gwt.user.client.rpc.core.java.lang.String_CustomFieldSerializer::deserialize(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;Ljava/lang/String;),
@com.google.gwt.user.client.rpc.core.java.lang.String_CustomFieldSerializer::serialize(Lcom/google/gwt/user/client/rpc/SerializationStreamWriter;Ljava/lang/String;)
];
result["java.util.ArrayList/4159755760"] = [
@com.google.gwt.user.client.rpc.core.java.util.ArrayList_FieldSerializer::instantiate(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;),
@com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer::deserialize(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;Ljava/util/ArrayList;),
@com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer::serialize(Lcom/google/gwt/user/client/rpc/SerializationStreamWriter;Ljava/util/ArrayList;)
];
result["org.restlet.example.book.restlet.ch09.common.ContactRepresentation/2761230316"] = [
@org.restlet.example.book.restlet.ch09.common.ContactRepresentation_FieldSerializer::instantiate(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;),
@org.restlet.example.book.restlet.ch09.common.ContactRepresentation_FieldSerializer::deserialize(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;Lorg/restlet/example/book/restlet/ch09/common/ContactRepresentation;),
@org.restlet.example.book.restlet.ch09.common.ContactRepresentation_FieldSerializer::serialize(Lcom/google/gwt/user/client/rpc/SerializationStreamWriter;Lorg/restlet/example/book/restlet/ch09/common/ContactRepresentation;)
];
result["org.restlet.example.book.restlet.ch09.common.ContactsRepresentation/2682797382"] = [
@org.restlet.example.book.restlet.ch09.common.ContactsRepresentation_FieldSerializer::instantiate(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;),
@org.restlet.example.book.restlet.ch09.common.ContactsRepresentation_FieldSerializer::deserialize(Lcom/google/gwt/user/client/rpc/SerializationStreamReader;Lorg/restlet/example/book/restlet/ch09/common/ContactsRepresentation;),
@org.restlet.example.book.restlet.ch09.common.ContactsRepresentation_FieldSerializer::serialize(Lcom/google/gwt/user/client/rpc/SerializationStreamWriter;Lorg/restlet/example/book/restlet/ch09/common/ContactsRepresentation;)
];
return result;
}-*/;
@SuppressWarnings("deprecation")
@GwtScriptOnly
private static native JsArrayString loadSignaturesNative() /*-{
var result = [];
result[@com.google.gwt.core.client.impl.Impl::getHashCode(Ljava/lang/Object;)(@java.lang.String::class)] = "java.lang.String/2004016611";
result[@com.google.gwt.core.client.impl.Impl::getHashCode(Ljava/lang/Object;)(@java.util.ArrayList::class)] = "java.util.ArrayList/4159755760";
result[@com.google.gwt.core.client.impl.Impl::getHashCode(Ljava/lang/Object;)(@org.restlet.example.book.restlet.ch09.common.ContactRepresentation::class)] = "org.restlet.example.book.restlet.ch09.common.ContactRepresentation/2761230316";
result[@com.google.gwt.core.client.impl.Impl::getHashCode(Ljava/lang/Object;)(@org.restlet.example.book.restlet.ch09.common.ContactsRepresentation::class)] = "org.restlet.example.book.restlet.ch09.common.ContactsRepresentation/2682797382";
return result;
}-*/;
public ContactsResourceProxy_TypeSerializer() {
super(null, methodMapNative, null, signatureMapNative);
}
}