View Javadoc

1   /*
2    * $Id: OtherBean.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  public class OtherBean {
24      private int primitiveInt;
25  
26      private Integer intField;
27      private Boolean booleanField;
28      private Character charField;
29      private Long longField;
30      private Float floatField;
31      private Double doubleField;
32      private Byte byteField;
33  
34      public Boolean isBooleanField() {
35          return booleanField;
36      }
37  
38      public void setBooleanField(Boolean booleanField) {
39          this.booleanField = booleanField;
40      }
41  
42      public Byte getByteField() {
43          return byteField;
44      }
45  
46      public void setByteField(Byte byteField) {
47          this.byteField = byteField;
48      }
49  
50      public Character getCharField() {
51          return charField;
52      }
53  
54      public void setCharField(Character charField) {
55          this.charField = charField;
56      }
57  
58      public Double getDoubleField() {
59          return doubleField;
60      }
61  
62      public void setDoubleField(Double doubleField) {
63          this.doubleField = doubleField;
64      }
65  
66      public Float getFloatField() {
67          return floatField;
68      }
69  
70      public void setFloatField(Float floatField) {
71          this.floatField = floatField;
72      }
73  
74      public Integer getIntField() {
75          return intField;
76      }
77  
78      public void setIntField(Integer intField) {
79          this.intField = intField;
80      }
81  
82      public Long getLongField() {
83          return longField;
84      }
85  
86      public void setLongField(Long longField) {
87          this.longField = longField;
88      }
89  
90      public int getPrimitiveInt() {
91          return primitiveInt;
92      }
93  
94      public void setPrimitiveInt(int primitiveInt) {
95          this.primitiveInt = primitiveInt;
96      }
97  }