1    package com.instantbank.component.parameter.util;
2    
3    import java.util.*;
4    import java.io.Serializable;
5    
6    /**
7     *  Utility class allowing manipulation of set parameter values.
8     *
9     * @author InstantBank (Jorge Cardenas).
10    * @created October 2002
11    */
12   
13   public class Header
14       implements Serializable {
15   
16     /**
17      * 1 (green): this combination is forced
18      *   see SV_PARM_RESTRICTION.LEVEL_1_2
19      * 2 (pink) : this combination is allowed
20      *            see SV_PARM_RESTRICTION.LEVEL_1_ANY
21      */
22     private String color;
23   
24     /**
25      * header[0].label = "1,2"
26      * header[1].label = "1,ANY"
27      * header[2].label = "ANY,2"
28      * header[3].label = "ANY,ANY"
29      */
30     private String label;
31   
32     /**
33      * header[0].skipped = ""
34      * header[3].skipped = ""
35      *  if CMP_SV_PARM_SEARCH2 == "1,*" {
36      *    header[1].skipped =
37      *    CMP_SV_PARM_SKIP2 == "yes" ? "[SKIP]" : ""
38      *    header[2].skipped =
39      *    CMP_SV_PARM_SKIP3 == "yes" ? "[SKIP]" : ""
40      *  }
41      *  else {
42      *    header[1].skipped =
43      *    CMP_SV_PARM_SKIP3 == "yes" ? "[SKIP]" : ""
44      *    header[2].skipped =
45      *    CMP_SV_PARM_SKIP2 == "yes" ? "[SKIP]" : ""
46      *  }
47      */
48     private String skipped;
49   
50     /**
51      * header[0].note = SV_PARM_RESTRICTION.LEVEL_1_2
52      * header[1].note = SV_PARM_RESTRICTION.LEVEL_1_ANY
53      * header[2].note = SV_PARM_RESTRICTION.LEVEL_ANY_2
54      * header[3].note = SV_PARM_RESTRICTION.LEVEL_ANY_ANY
55      */
56     private String note;
57   
58   
59     /**
60      *  Constructor . <br>
61      *  <br>
62      *
63      *
64      *
65      * @param color Value label color for the parameter.
66      * @param label Value label name and order for the parameter.
67      * @param note Value label description for the parameter.
68      * @param skipped Description of the Parameter
69      */
70     public Header(String color, String label, String skipped, String note) {
71   
72       this.color = color;
73       this.label = label;
74       this.note = note;
75       this.skipped = skipped;
76     }
77   
78   
79     /**
80      * Setter method for color value of the label of paramater.
81      *
82      * @param color The value color of the label of paramater
83      */
84     public void setHeaderColor(String color) {
85       this.color = color;
86     }
87   
88   
89     /**
90      * Getter method for color value of the label of paramater.
91      *
92      * @return The color value
93      */
94     public String getHeaderColor() {
95       return (this.color);
96     }
97   
98   
99     /**
100     * Getter method for label value of parameter:
101     *  "1,2", "1,ANY"|"SKIP", "ANY,2"|"SKIP" or "ANY,ANY"
102     *
103     * @return The label value
104     */
105    public String getHeaderLabel() {
106      return (this.label);
107    }
108  
109  
110    /**
111     * Getter method for skipped value of parameter value.
112     *
113     * @return The skipped value
114     */
115    public String getHeaderSkipped() {
116      return (this.skipped);
117    }
118  
119  
120    /**
121     * Getter method for note value of parameter value.
122     *
123     * @return The note value
124     */
125    public String getHeaderNote() {
126      return (this.note);
127    }
128  }
129