View Javadoc

1   /*
2    * $Id: Bean.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.math.BigDecimal;
24  import java.math.BigInteger;
25  
26  public class Bean {
27      private String stringField;
28      private int intField;
29      private boolean booleanField;
30      private char charField;
31      private long longField;
32      private float floatField;
33      private double doubleField;
34      private Object objectField;
35      private byte byteField;
36      private AnEnum enumField;
37      private AnEnumBean enumBean;
38      private BigDecimal bigDecimal;
39      private BigInteger bigInteger;
40  
41      /***
42       * @return the byteField
43       */
44      public byte getByteField() {
45          return this.byteField;
46      }
47  
48      /***
49       * @param byteField
50       *            the byteField to set
51       */
52      public void setByteField(byte byteField) {
53          this.byteField = byteField;
54      }
55  
56      public boolean isBooleanField() {
57          return this.booleanField;
58      }
59  
60      public void setBooleanField(boolean booleanField) {
61          this.booleanField = booleanField;
62      }
63  
64      public char getCharField() {
65          return this.charField;
66      }
67  
68      public void setCharField(char charField) {
69          this.charField = charField;
70      }
71  
72      public double getDoubleField() {
73          return this.doubleField;
74      }
75  
76      public void setDoubleField(double doubleField) {
77          this.doubleField = doubleField;
78      }
79  
80      public float getFloatField() {
81          return this.floatField;
82      }
83  
84      public void setFloatField(float floatField) {
85          this.floatField = floatField;
86      }
87  
88      public int getIntField() {
89          return this.intField;
90      }
91  
92      public void setIntField(int intField) {
93          this.intField = intField;
94      }
95  
96      public long getLongField() {
97          return this.longField;
98      }
99  
100     public void setLongField(long longField) {
101         this.longField = longField;
102     }
103 
104     public Object getObjectField() {
105         return this.objectField;
106     }
107 
108     public void setObjectField(Object objectField) {
109         this.objectField = objectField;
110     }
111 
112     public String getStringField() {
113         return this.stringField;
114     }
115 
116     public void setStringField(String stringField) {
117         this.stringField = stringField;
118     }
119 
120     public AnEnum getEnumField() {
121         return enumField;
122     }
123 
124     public void setEnumField(AnEnum enumField) {
125         this.enumField = enumField;
126     }
127 
128     public AnEnumBean getEnumBean() {
129         return enumBean;
130     }
131 
132     public void setEnumBean(AnEnumBean enumBean) {
133         this.enumBean = enumBean;
134     }
135 
136     public BigInteger getBigInteger() {
137         return bigInteger;
138     }
139 
140     public void setBigInteger(BigInteger bigInteger) {
141         this.bigInteger = bigInteger;
142     }
143 
144     public BigDecimal getBigDecimal() {
145         return bigDecimal;
146     }
147 
148     public void setBigDecimal(BigDecimal bigDecimal) {
149         this.bigDecimal = bigDecimal;
150     }
151 }