KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > memoire > vainstall > builder > util > ProductRequirement


1 /*
2  * $RCSfile: ProductRequirement.java,v $
3  * @modification $Date: 2001/09/28 19:41:42 $
4  * @version $Id: ProductRequirement.java,v 1.1 2001/09/28 19:41:42 hfalk Exp $
5  *
6  */

7
8 package com.memoire.vainstall.builder.util;
9
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 JavaDoc requirementName;
20     String JavaDoc requirementHelp;
21
22     protected ProductRequirement() {
23         super();
24     }
25
26     public ProductRequirement(String JavaDoc name, String JavaDoc help) {
27         super();
28         this.requirementName = name;
29         this.requirementHelp = help;
30     }
31
32     public String JavaDoc toString() {
33         return requirementName;
34     }
35
36     public String JavaDoc getHelp() {
37         return requirementHelp;
38     }
39
40     public boolean equals(Object JavaDoc obj) {
41     
42         if (obj instanceof ProductRequirement) {
43             if(((ProductRequirement)obj).toString().equals(toString()) == true) {
44                 return true;
45             } else {
46                 return false;
47             }
48         }
49         return super.equals(obj);
50     }
51     
52 }
53
54
Popular Tags