Path: blob/master/test/jdk/javax/management/query/TestQuery.java
41152 views
/*1* Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/2223/**24* Class TestQuery25* MBean used for testing the types wired when using QueryExp.26* It is heavily linked to QueryFactory.27*/28public class TestQuery extends QueryData implements TestQueryMBean {2930/**31* Attribute : BooleanAtt32*/33private boolean booleanAtt = booleanValue;3435/**36* Attribute : DoubleAtt37*/38private double doubleAtt = doubleValue;3940/**41* Attribute : FloatAtt42*/43private float floatAtt = floatValue;4445/**46* Attribute : IntAtt47*/48private int intAtt = intValue;4950/**51* Attribute : IntegerAtt52*/53private Integer integerAtt = integerValue;5455/**56* Attribute : LongAtt57*/58private long longAtt = longValue;5960/**61* Attribute : StringAtt62*/63private String stringAtt = stringValue;6465public TestQuery() {66}6768/**69* Get Att of type boolean70*/71public boolean getBooleanAtt() {72return booleanAtt;73}7475/**76* Set Att of type boolean77*/78public void setBooleanAtt(boolean value) {79booleanAtt = value;80}8182/**83* Get Att of type double84*/85public double getDoubleAtt() {86return doubleAtt;87}8889/**90* Set Att of type double91*/92public void setDoubleAtt(double value) {93doubleAtt = value;94}9596/**97* Get Att of type float98*/99public float getFloatAtt() {100return floatAtt;101}102103/**104* Set Att of type float105*/106public void setFloatAtt(float value) {107floatAtt = value;108}109110/**111* Get Att of type int112*/113public int getIntAtt() {114return intAtt;115}116117/**118* Set Att of type int119*/120public void setIntAtt(int value) {121intAtt = value;122}123124/**125* Get Att of type Integer126*/127public Integer getIntegerAtt() {128return integerAtt;129}130131/**132* Set Att of type Integer133*/134public void setIntegerAtt(Integer value) {135integerAtt = value;136}137138/**139* Get Att of type long140*/141public long getLongAtt() {142return longAtt;143}144145/**146* Set Att of type long147*/148public void setLongAtt(long value) {149longAtt = value;150}151152/**153* Get Att of type String154*/155public String getStringAtt() {156return stringAtt;157}158159/**160* Set Att of type String161*/162public void setStringAtt(String value) {163stringAtt = value;164}165166}167168169