001: /**
002: * Copyright 2004-2005 jManage.org
003: *
004: * Licensed under the Apache License, Version 2.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.apache.org/licenses/LICENSE-2.0
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */package org.jmanage.testapp.mbeans;
016:
017: import java.util.Date;
018:
019: /**
020: *
021: * date: Dec 23, 2004
022: * @author Vandana Taneja
023: * @author Rakesh Kalra
024: */
025: public class DataTypeTest implements DataTypeTestMBean {
026:
027: private Integer i = new Integer(9);
028: private Short s = new Short((short) 9);
029: private Long l = new Long(9999);
030: private Float f = new Float(9.9f);
031: private Double d = new Double(9999.999);
032: private Character c = new Character('a');
033: private Boolean bo = new Boolean(true);
034: private Byte b = new Byte((byte) 1);
035: private Date dt = new Date();
036: private String[] strArray = new String[] { "abc", "xyz", "efg" };
037: private int[] intArray = new int[] { 1, 2, 3, 4 };
038:
039: public Integer getInteger() {
040: return i;
041: }
042:
043: public void setInteger(Integer i) {
044: this .i = i;
045: }
046:
047: public Short getShort() {
048: return s;
049: }
050:
051: public void setShort(Short s) {
052: this .s = s;
053: }
054:
055: public Long getLong() {
056: return l;
057: }
058:
059: public void setLong(Long l) {
060: this .l = l;
061: }
062:
063: public Float getFloat() {
064: return f;
065: }
066:
067: public void setFloat(Float f) {
068: this .f = f;
069: }
070:
071: public Double getDouble() {
072: return d;
073: }
074:
075: public void setDouble(Double d) {
076: this .d = d;
077: }
078:
079: public Character getCharacter() {
080: return c;
081: }
082:
083: public void setCharacter(Character c) {
084: this .c = c;
085: }
086:
087: public Boolean getBoolean() {
088: return bo;
089: }
090:
091: public void setBoolean(Boolean bo) {
092: this .bo = bo;
093: }
094:
095: public Byte getByte() {
096: return b;
097: }
098:
099: public void setByte(Byte b) {
100: this .b = b;
101: }
102:
103: public Date getDate() {
104: return dt;
105: }
106:
107: public void setDate(Date dt) {
108: this .dt = dt;
109: }
110:
111: public String[] getStringArray() {
112: return strArray;
113: }
114:
115: public void setStringArray(String[] strArray) {
116: this .strArray = strArray;
117: }
118:
119: public String[] stringArrayOperation() {
120: return strArray;
121: }
122:
123: public int[] getIntArray() {
124: return intArray;
125: }
126:
127: public void setIntArray(int[] intArray) {
128: this .intArray = intArray;
129: }
130:
131: public int[] intArrayOperation() {
132: return intArray;
133: }
134: }
|