01: package org.jmanage.core.config;
02:
03: /**
04: *
05: * date: Jun 13, 2004
06: * @author Rakesh Kalra
07: */
08: public class ConfigParam {
09:
10: private String name;
11: private String displayName;
12: private String defaultValue;
13:
14: public ConfigParam(String name, String displayName) {
15: this .name = name;
16: this .displayName = displayName;
17: }
18:
19: public ConfigParam(String name, String displayName,
20: String defaultValue) {
21: this (name, displayName);
22: this .defaultValue = defaultValue;
23: }
24:
25: public String getName() {
26: return name;
27: }
28:
29: public String getDisplayName() {
30: return displayName;
31: }
32:
33: public String getDefaultValue() {
34: return defaultValue;
35: }
36:
37: public int hashCode() {
38: return name.hashCode();
39: }
40:
41: public boolean equals(Object obj) {
42: if (obj instanceof ConfigParam) {
43: ConfigParam param = (ConfigParam) obj;
44: if (this .name.equals(param.name)) {
45: return true;
46: }
47: }
48: return false;
49: }
50: }
|