You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SerializerTestRpc.java 3.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. * Copyright 2000-2016 Vaadin Ltd.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. * use this file except in compliance with the License. You may obtain a copy of
  6. * the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. * License for the specific language governing permissions and limitations under
  14. * the License.
  15. */
  16. package com.vaadin.tests.widgetset.client;
  17. import java.util.Date;
  18. import java.util.List;
  19. import java.util.Map;
  20. import java.util.Set;
  21. import com.vaadin.shared.Connector;
  22. import com.vaadin.shared.communication.ClientRpc;
  23. import com.vaadin.shared.communication.ServerRpc;
  24. import com.vaadin.shared.ui.ContentMode;
  25. import elemental.json.JsonString;
  26. import elemental.json.JsonValue;
  27. @SuppressWarnings("javadoc")
  28. public interface SerializerTestRpc extends ServerRpc, ClientRpc {
  29. public void sendBoolean(boolean value, Boolean boxedValue, boolean[] array);
  30. public void sendByte(byte value, Byte boxedValue, byte[] array);
  31. public void sendChar(char value, Character boxedValue, char[] array);
  32. public void sendInt(int value, Integer boxedValue, int[] array);
  33. public void sendLong(long value, Long boxedValue, long[] array);
  34. public void sendFloat(float value, Float boxedValue, float[] array);
  35. public void sendDouble(double value, Double boxedValue, double[] array);
  36. public void sendString(String value, String[] array);
  37. public void sendConnector(Connector connector);
  38. public void sendBean(ComplexTestBean complexBean, SimpleTestBean simpleBean,
  39. SimpleTestBean[] array);
  40. public void sendNull(String value1, String value2);
  41. public void sendNestedArray(int[][] nestedIntArray,
  42. SimpleTestBean[][] nestedBeanArray);
  43. public void sendList(List<Integer> intList, List<Connector> connectorList,
  44. List<SimpleTestBean> beanList);
  45. public void sendArrayList(List<int[]> primitiveArrayList,
  46. List<Integer[]> objectArrayList,
  47. List<SimpleTestBean[]> beanArrayList);
  48. public void sendListArray(List<Integer>[] objectListArray,
  49. List<SimpleTestBean>[] beanListArray);
  50. public void sendSet(Set<Integer> intSet, Set<Connector> connectorSet,
  51. Set<SimpleTestBean> beanSet);
  52. public void sendMap(Map<String, SimpleTestBean> stringMap,
  53. Map<Connector, SimpleTestBean> connectorMap,
  54. Map<Integer, Connector> intMap,
  55. Map<SimpleTestBean, SimpleTestBean> beanMap);
  56. public void sendWrappedGenerics(
  57. Map<Set<SimpleTestBean>, Map<Integer, List<SimpleTestBean>>> generics);
  58. public void sendEnum(ContentMode contentMode, ContentMode[] array,
  59. List<ContentMode> list);
  60. public void sendBeanSubclass(SimpleTestBean bean);
  61. public void sendDate(Date date);
  62. public void sendDateArray(Date[] dates);
  63. public void sendJson(JsonValue value1, JsonValue value2, JsonString string);
  64. public void log(String string);
  65. }