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 parameters restriction. 8 * 9 * @author InstantBank (Roberto Contreras ). 10 * @created October 23, 2002 11 */ 12 public class ParmCell 13 implements Serializable { 14 15 /** 16 * The color of a cell for a set of parameter points. 17 * value: {0 = undefined | 1= first definition found | 2 = defined} 18 */ 19 private String cellColor; 20 21 /** 22 * Value of the cell. 23 * It is never NULL. It can be 'undefined'. 24 */ 25 private String cellValue; 26 27 /** 28 * When parameterType == "set" 29 * this array contains Strings of the form "possibleValue[i]" + "," + "yes"|"no 30 * depending is possibleValue[i] is part (or not) of the set value at this cell. 31 * Else this attribute is NULL 32 */ 33 34 private ArrayList setValues = new ArrayList(); 35 36 /** 37 * The color of a small cell for a set of level parameter. 38 * value: {0 = OK | 1= defined in excluded combination | 2 = undefined in forced combination} 39 */ 40 private String smallCellColor; 41 42 43 /** 44 * Constructor . <br> 45 * <br> 46 * 47 * @param cellColor Description of the Parameter 48 * @param cellValue Description of the Parameter 49 * @param setValues Description of the Parameter 50 * @param smallCellColor Description of the Parameter 51 */ 52 public ParmCell(String cellColor, String cellValue, ArrayList setValues, String smallCellColor) { 53 54 this.cellColor = cellColor; 55 this.cellValue = cellValue; 56 this.setValues = setValues; 57 this.smallCellColor = smallCellColor; 58 } 59 60 61 /** 62 * Setter method for the color of a cell for each set of level parameter. 63 * 64 * @param cellColor The color of a cell for each set of level parameter. 65 */ 66 public void setParmCellCellColor(String cellColor) { 67 this.cellColor = cellColor; 68 } 69 70 71 /** 72 * Getter method for the color of a cell for each set of level parameter. 73 * 74 * @return cellColor The color of a cell for each set of level parameter. 75 */ 76 public String getParmCellCellColor() { 77 return (this.cellColor); 78 } 79 80 81 /** 82 * Getter method for the value of the cell. 83 * 84 * @return cellValue The value of the cell. 85 */ 86 public String getParmCellCellValue() { 87 return (this.cellValue); 88 } 89 90 91 /** 92 * Getter method for the possible values of the cell when parameterType = set . 93 * 94 * @return setValues The possible values of the cell when parameterType = set . 95 */ 96 public ArrayList getParmCellSetValues() { 97 return (this.setValues); 98 } 99 100 101 /** 102 * Getter method for the color of a small cell for each set of level parameter. 103 * 104 * @return smallCellColor The color of a small cell for each set of level parameter. 105 */ 106 public String getParmCellSmallCellColor() { 107 return (this.smallCellColor); 108 } 109 110 111 /** 112 * Setter method for the color of a small cell for each set of level parameter. 113 * 114 * @param smallCellColor The color of a small cell for each set of level parameter. 115 */ 116 public void setParmCellSmallCellColor(String smallCellColor) { 117 this.smallCellColor = smallCellColor; 118 } 119 } 120