01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: GlobalVar.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine;
09:
10: public class GlobalVar {
11: private int mGroupId = -1;
12:
13: private String[] mDefaultValues = null;
14:
15: GlobalVar(String[] defaultValues) {
16: if (defaultValues != null && 0 == defaultValues.length) {
17: defaultValues = null;
18: }
19:
20: mDefaultValues = defaultValues;
21: }
22:
23: GlobalVar setGroupId(int groupId) {
24: assert groupId > -1;
25:
26: mGroupId = groupId;
27:
28: return this ;
29: }
30:
31: public int getGroupId() {
32: return mGroupId;
33: }
34:
35: public String[] getDefaultValues() {
36: return mDefaultValues;
37: }
38: }
|