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.9KB

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