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: /**
018: * Created by IntelliJ IDEA.
019: * User: Administrator
020: * Date: Dec 23, 2004
021: * Time: 1:33:56 PM
022: * To change this template use Options | File Templates.
023: */
024: public class PrimitiveDataTypeTest implements
025: PrimitiveDataTypeTestMBean {
026:
027: private int i = 9;
028: private short s = 9;
029: private long l = 9999;
030: private float f = 9.9f;
031: private double d = 9999.999;
032: private char c = 'a';
033: private boolean bo = true;
034: private boolean bo2 = true;
035: private byte b = 1;
036:
037: public int getInt() {
038: return i;
039: }
040:
041: public void setInt(int i) {
042: this .i = i;
043: }
044:
045: public short getShort() {
046: return s;
047: }
048:
049: public void setShort(short s) {
050: this .s = s;
051: }
052:
053: public long getLong() {
054: return l;
055: }
056:
057: public void setLong(long l) {
058: this .l = l;
059: }
060:
061: public float getFloat() {
062: return f;
063: }
064:
065: public void setFloat(float f) {
066: this .f = f;
067: }
068:
069: public double getDouble() {
070: return d;
071: }
072:
073: public void setDouble(double d) {
074: this .d = d;
075: }
076:
077: public char getChar() {
078: return c;
079: }
080:
081: public void setChar(char c) {
082: this .c = c;
083: }
084:
085: public boolean getBoolean() {
086: return bo;
087: }
088:
089: public void setBoolean(boolean bo) {
090: this .bo = bo;
091: }
092:
093: public boolean getBoolean2() {
094: return bo2;
095: }
096:
097: public void setBoolean2(boolean bo) {
098: this .bo2 = bo;
099: }
100:
101: public byte getByte() {
102: return b;
103: }
104:
105: public void setByte(byte b) {
106: this.b = b;
107: }
108:
109: }
|