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 2.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*
  2. * Copyright 2011 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.List;
  18. import java.util.Map;
  19. import java.util.Set;
  20. import com.vaadin.shared.Connector;
  21. import com.vaadin.shared.communication.ClientRpc;
  22. import com.vaadin.shared.communication.ServerRpc;
  23. import com.vaadin.shared.ui.label.ContentMode;
  24. @SuppressWarnings("javadoc")
  25. public interface SerializerTestRpc extends ServerRpc, ClientRpc {
  26. public void sendBoolean(boolean value, Boolean boxedValue, boolean[] array);
  27. public void sendByte(byte value, Byte boxedValue, byte[] array);
  28. public void sendChar(char value, Character boxedValue, char[] array);
  29. public void sendInt(int value, Integer boxedValue, int[] array);
  30. public void sendLong(long value, Long boxedValue, long[] array);
  31. public void sendFloat(float value, Float boxedValue, float[] array);
  32. public void sendDouble(double value, Double boxedValue, double[] array);
  33. public void sendString(String value);
  34. public void sendConnector(Connector connector);
  35. public void sendBean(ComplexTestBean complexBean,
  36. SimpleTestBean simpleBean, SimpleTestBean[] array);
  37. public void sendNull(String value1, String value2);
  38. public void sendNestedArray(int[][] nestedIntArray,
  39. SimpleTestBean[][] nestedBeanArray);
  40. public void sendList(List<Integer> intList, List<Connector> connectorList,
  41. List<SimpleTestBean> beanList);
  42. public void sendArrayList(List<int[]> primitiveArrayList,
  43. List<Integer[]> objectArrayList,
  44. List<SimpleTestBean[]> beanArrayList);
  45. public void sendListArray(List<Integer>[] objectListArray,
  46. List<SimpleTestBean>[] beanListArray);
  47. public void sendSet(Set<Integer> intSet, Set<Connector> connectorSet,
  48. Set<SimpleTestBean> beanSet);
  49. public void sendMap(Map<String, SimpleTestBean> stringMap,
  50. Map<Connector, SimpleTestBean> connectorMap,
  51. Map<Integer, Connector> intMap,
  52. Map<SimpleTestBean, SimpleTestBean> beanMap);
  53. public void sendWrappedGenerics(
  54. Map<Set<SimpleTestBean>, Map<Integer, List<SimpleTestBean>>> generics);
  55. public void sendEnum(ContentMode contentMode, ContentMode[] array,
  56. List<ContentMode> list);
  57. public void sendBeanSubclass(SimpleTestBean bean);
  58. }