View Javadoc

1   /*
2    * $Id: WrapperClassBean.java 799110 2009-07-29 22:44:26Z musachy $
3    *
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *  http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  package org.apache.struts2.json;
22  
23  import java.util.List;
24  import java.util.Map;
25  
26  public class WrapperClassBean {
27  
28      private String stringField;
29      private Integer intField;
30      private int nullIntField;
31      private Boolean booleanField;
32      private boolean primitiveBooleanField1;
33      private boolean primitiveBooleanField2;
34      private boolean primitiveBooleanField3;
35      private Character charField;
36      private Long longField;
37      private Float floatField;
38      private Double doubleField;
39      private Object objectField;
40      private Byte byteField;
41      private List<SimpleValue> listField;
42      private List<Map<String, Long>> listMapField;
43      private Map<String, List<Long>> mapListField;
44      private Map<String, Long>[] arrayMapField;
45  
46      public List<SimpleValue> getListField() {
47          return listField;
48      }
49  
50      public void setListField(List<SimpleValue> listField) {
51          this.listField = listField;
52      }
53  
54      public List<Map<String, Long>> getListMapField() {
55          return listMapField;
56      }
57  
58      public void setListMapField(List<Map<String, Long>> listMapField) {
59          this.listMapField = listMapField;
60      }
61  
62      public Map<String, List<Long>> getMapListField() {
63          return mapListField;
64      }
65  
66      public void setMapListField(Map<String, List<Long>> mapListField) {
67          this.mapListField = mapListField;
68      }
69  
70      public Map<String, Long>[] getArrayMapField() {
71          return arrayMapField;
72      }
73  
74      public void setArrayMapField(Map<String, Long>[] arrayMapField) {
75          this.arrayMapField = arrayMapField;
76      }
77  
78      public Boolean getBooleanField() {
79          return booleanField;
80      }
81  
82      public void setBooleanField(Boolean booleanField) {
83          this.booleanField = booleanField;
84      }
85  
86      public boolean isPrimitiveBooleanField1() {
87          return primitiveBooleanField1;
88      }
89  
90      public void setPrimitiveBooleanField1(boolean primitiveBooleanField1) {
91          this.primitiveBooleanField1 = primitiveBooleanField1;
92      }
93  
94      public boolean isPrimitiveBooleanField2() {
95          return primitiveBooleanField2;
96      }
97  
98      public void setPrimitiveBooleanField2(boolean primitiveBooleanField2) {
99          this.primitiveBooleanField2 = primitiveBooleanField2;
100     }
101 
102     public boolean isPrimitiveBooleanField3() {
103         return primitiveBooleanField3;
104     }
105 
106     public void setPrimitiveBooleanField3(boolean primitiveBooleanField3) {
107         this.primitiveBooleanField3 = primitiveBooleanField3;
108     }
109 
110     public Byte getByteField() {
111         return byteField;
112     }
113 
114     public void setByteField(Byte byteField) {
115         this.byteField = byteField;
116     }
117 
118     public Character getCharField() {
119         return charField;
120     }
121 
122     public void setCharField(Character charField) {
123         this.charField = charField;
124     }
125 
126     public Double getDoubleField() {
127         return doubleField;
128     }
129 
130     public void setDoubleField(Double doubleField) {
131         this.doubleField = doubleField;
132     }
133 
134     public Float getFloatField() {
135         return floatField;
136     }
137 
138     public void setFloatField(Float floatField) {
139         this.floatField = floatField;
140     }
141 
142     public Integer getIntField() {
143         return intField;
144     }
145 
146     public void setIntField(Integer intField) {
147         this.intField = intField;
148     }
149 
150     public int getNullIntField() {
151         return nullIntField;
152     }
153 
154     public void setNullIntField(int nullIntField) {
155         this.nullIntField = nullIntField;
156     }
157 
158     public Long getLongField() {
159         return longField;
160     }
161 
162     public void setLongField(Long longField) {
163         this.longField = longField;
164     }
165 
166     public Object getObjectField() {
167         return objectField;
168     }
169 
170     public void setObjectField(Object objectField) {
171         this.objectField = objectField;
172     }
173 
174     public String getStringField() {
175         return stringField;
176     }
177 
178     public void setStringField(String stringField) {
179         this.stringField = stringField;
180     }
181 }