01: /*
02: * Copyright 2006-2007 Pentaho Corporation. All rights reserved.
03: * This software was developed by Pentaho Corporation and is provided under the terms
04: * of the Mozilla Public License, Version 1.1, or any later version. You may not use
05: * this file except in compliance with the license. If you need a copy of the license,
06: * please go to http://www.mozilla.org/MPL/MPL-1.1.txt.
07: *
08: * Software distributed under the Mozilla Public License is distributed on an "AS IS"
09: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Please refer to
10: * the license for the specific language governing your rights and limitations.
11: *
12: * Additional Contributor(s): Martin Schmid gridvision engineering GmbH
13: */
14:
15: /**
16: * User: Martin
17: * Date: 21.02.2007
18: * Time: 21:26:37
19: */package org.pentaho.reportdesigner.crm.report.tests;
20:
21: import java.io.Serializable;
22:
23: @SuppressWarnings({"ALL"})
24: public class Hugo implements Serializable {
25: public static final Hugo ONE = new Hugo("ONE", 1);//NON-NLS
26: public static final Hugo TWO = new Hugo("TWO", 2);//NON-NLS
27: public static final Hugo THREE = new Hugo("THREE", 3);//NON-NLS
28:
29: private final String myName; // for debug only
30:
31: private int val;
32:
33: private Hugo(String name, int val) {
34: this .val = val;
35: myName = name;
36: }
37:
38: public String toString() {
39: return myName;
40: }
41:
42: public int getVal() {
43: return val;
44: }
45:
46: public void setVal(int val) {
47: this.val = val;
48: }
49: }
|