01: /*
02: * $RCSfile: ProductRequirement.java,v $
03: * @modification $Date: 2001/09/28 19:41:42 $
04: * @version $Id: ProductRequirement.java,v 1.1 2001/09/28 19:41:42 hfalk Exp $
05: *
06: */
07:
08: package com.memoire.vainstall.builder.util;
09:
10: /**
11: * This class represents an product requirement like a TextField
12: * that have to be filled out or a step that is missing
13: *
14: * @author Henrik Falk
15: * @version $Id: ProductRequirement.java,v 1.1 2001/09/28 19:41:42 hfalk Exp $
16: */
17: public class ProductRequirement {
18:
19: String requirementName;
20: String requirementHelp;
21:
22: protected ProductRequirement() {
23: super ();
24: }
25:
26: public ProductRequirement(String name, String help) {
27: super ();
28: this .requirementName = name;
29: this .requirementHelp = help;
30: }
31:
32: public String toString() {
33: return requirementName;
34: }
35:
36: public String getHelp() {
37: return requirementHelp;
38: }
39:
40: public boolean equals(Object obj) {
41:
42: if (obj instanceof ProductRequirement) {
43: if (((ProductRequirement) obj).toString()
44: .equals(toString()) == true) {
45: return true;
46: } else {
47: return false;
48: }
49: }
50: return super.equals(obj);
51: }
52:
53: }
|