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, Roberto Contreras).
10    * @created October 2002
11    */
12   
13   public class ParameterValue
14       implements Serializable {
15   
16     /**
17      *  Code of parameter.
18      */
19     private String codeParameter;
20   
21     /**
22      *  Type of parameter, for all remaining types, this attribute is NULL.
23      *  value: {numeric% | boolean | numeric_int | set | enum | string}
24      */
25     private String parameterType;
26   
27     /**
28      * key Object:   'Coordinate' Class
29      * Notice that all coordinates of any of the form
30      * (level1, level2), (level1,*) (*,level2) (*.*)
31      * must exist in this HashTable
32      * value Object: String
33      * In case parameterType == 'set', parmValue is a ','
34      * separated string of all items from possibleValues
35      * being part of the value in this Coordinate
36      */
37     private Hashtable parmValue;
38   
39   
40     /**
41      *  Constructor . <br>
42      *  <br>
43      *
44      * @param codeParameter The code of parameter.
45      * @param parameterType The type of parameter.
46      * @param parmValue The HashTable of parameter values.
47      */
48     public ParameterValue(String codeParameter, String parameterType,
49                           Hashtable parmValue) {
50   
51       this.codeParameter = codeParameter;
52       this.parameterType = parameterType;
53       this.parmValue = parmValue;
54     }
55   
56   
57     /**
58      *  Getter method for code parameter.
59      *
60      * @return The code parameter value
61      */
62     public String getValueCodeParameter() {
63       return (this.codeParameter);
64     }
65   
66   
67     /**
68      *  Getter method for type of parameter.
69      *
70      * @return The type value
71      */
72     public String getValueParameterType() {
73       return (this.parameterType);
74     }
75   
76   
77     /**
78      *  Getter method for the values for each point.
79      *
80      * @return The parmValue values
81      */
82     public Hashtable getValueParmValue() {
83       return (this.parmValue);
84     }
85   }
86   
87