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.

SerializerTestState.java 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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.SharedState;
  23. import com.vaadin.shared.ui.ContentMode;
  24. import elemental.json.JsonBoolean;
  25. import elemental.json.JsonValue;
  26. public class SerializerTestState extends SharedState {
  27. public boolean booleanValue;
  28. public Boolean booleanObjectValue;
  29. public boolean[] booleanArray;
  30. public byte byteValue;
  31. public Byte byteObjectValue;
  32. public byte[] byteArray;
  33. public char charValue;
  34. public Character charObjectValue;
  35. public char[] charArray;
  36. public int intValue;
  37. public Integer intObjectValue;
  38. public int[] intArray;
  39. public long longValue;
  40. public Long longObjectValue;
  41. public long[] longArray;
  42. public float floatValue;
  43. public Float floatObjectValue;
  44. public float[] floatArray;
  45. public double doubleValue;
  46. public Double doubleObjectValue;
  47. public double[] doubleArray;
  48. public String string;
  49. public String[] stringArray;
  50. public String nullString;
  51. public Connector connector;
  52. public ComplexTestBean complexTestBean;
  53. public SimpleTestBean simpleTestBean;
  54. public SimpleTestBean[] simpleTestBeanArray;
  55. public int[][] nestedIntArray;
  56. public SimpleTestBean[][] nestedBeanArray;
  57. public List<Integer> intList;
  58. public List<Connector> connectorList;
  59. public List<SimpleTestBean> simpleTestBeanList;
  60. public List<int[]> primitiveArrayList;
  61. public List<Integer[]> objectArrayList;
  62. public List<SimpleTestBean[]> beanArrayList;
  63. public List<Integer>[] objectListArray;
  64. public List<SimpleTestBean>[] beanListArray;
  65. public Set<Integer> intSet;
  66. public Set<Connector> connectorSet;
  67. public Set<SimpleTestBean> beanSet;
  68. public Map<String, SimpleTestBean> stringMap;
  69. public Map<Connector, SimpleTestBean> connectorMap;
  70. public Map<Integer, Connector> intMap;
  71. public Map<SimpleTestBean, SimpleTestBean> beanMap;
  72. public Map<Set<SimpleTestBean>, Map<Integer, List<SimpleTestBean>>> generics;
  73. public ContentMode contentMode;
  74. public ContentMode[] array;
  75. public List<ContentMode> list;
  76. public SimpleTestBean bean;
  77. public Date date1;
  78. public Date date2;
  79. public Date[] dateArray;
  80. public BeanWithAbstractSuperclass beanWithAbstractSuperclass;
  81. public JsonValue jsonNull = null;
  82. public JsonValue jsonString = null;
  83. public JsonBoolean jsonBoolean = null;
  84. }