01: /*
02: Mdarad-Toolobox is a collection of tools for Architected RAD
03: (Rapid Application Development) based on an MDA approach.
04: The toolbox contains frameworks and generators for many environments
05: (JAVA, J2EE, Hibernate, .NET, C++, etc.) which allow to generate
06: applications from a design Model
07: Copyright (C) 2004-2005 Elapse Technologies Inc.
08:
09: This library is free software; you can redistribute it and/or
10: modify it under the terms of the GNU General Public
11: License as published by the Free Software Foundation; either
12: version 2.1 of the License, or (at your option) any later version.
13:
14: This library is distributed in the hope that it will be useful,
15: but WITHOUT ANY WARRANTY; without even the implied warranty of
16: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17: General Public License for more details.
18:
19: You should have received a copy of the GNU General Public
20: License along with this library; if not, write to the Free Software
21: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22: */
23: package org.mdarad.framework.util.struts.criteria;
24:
25: import java.io.Serializable;
26:
27: /**
28: * This class keeps the structure of a property associated to
29: * a query criterion
30: * @author Philippe Brouillette
31: * @version 1.0
32: */
33: public class CriterionProperty implements Serializable {
34: /**
35: * Constructor that takes the name and the resource key as argument
36: * @param name property name
37: * @param key resource key name
38: */
39: public CriterionProperty(String name, String key) {
40: setName(name);
41: setKey(key);
42: }
43:
44: /**
45: * Property that keeps the name of the property
46: */
47: private String name;
48:
49: public String getName() {
50: return name;
51: }
52:
53: public void setName(String name) {
54: this .name = name;
55: }
56:
57: /**
58: * This property keeps the key where the resource is store
59: * in the property bundle.
60: */
61: private String key;
62:
63: public String getKey() {
64: return key;
65: }
66:
67: public void setKey(String key) {
68: this.key = key;
69: }
70: }
|