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 - Jorge Cardenas). 10 * @created October 2002 11 */ 12 public class ParmRestriction 13 implements Serializable { 14 15 /** 16 * A value of level_1_2 of parameter restriction. 17 * value: {forced, allowed, excluded} 18 */ 19 private String level_1_2; 20 21 /** 22 * A value of level_1_any of parameter restriction. 23 * value: {forced, allowed, excluded} 24 */ 25 private String level_1_any; 26 27 /** 28 * A value of level_any_2 of parameter restriction. 29 * value: {forced, allowed, excluded} 30 */ 31 private String level_any_2; 32 33 /** 34 * A value of level_any_any of parameter restriction. 35 * value: {forced, allowed, excluded} 36 */ 37 private String level_any_any; 38 39 /** 40 * Indicates if exist more than 1 combination with value "forced" 41 */ 42 private String warning; 43 44 /** 45 * A readable description of the parameter. 46 */ 47 private String description; 48 49 /** 50 * Name of the parameter. 51 */ 52 private String name; 53 54 /** 55 * A numeric code of the parameter. 56 */ 57 private String code_parameter; 58 59 60 /** 61 * Constructor . <br> 62 * <br> 63 * 64 * @param code_parameter The code of the parameter. 65 * @param name The name of the parameter. 66 * @param description The description of the parameter. 67 * @param warning All combinations not posible. 68 * @param level_1_2 Value of restriction of the parameter. 69 * @param level_1_any Value of restriction of the parameter. 70 * @param level_any_2 Value of restriction of the parameter. 71 * @param level_any_any Value of restriction of the parameter. 72 */ 73 public ParmRestriction(String code_parameter, String name, String description, 74 String warning, String level_1_2, String level_1_any, 75 String level_any_2, String level_any_any) { 76 77 this.level_1_2 = level_1_2; 78 this.level_1_any = level_1_any; 79 this.level_any_2 = level_any_2; 80 this.level_any_any = level_any_any; 81 this.warning = warning; 82 this.description = description; 83 this.name = name; 84 this.code_parameter = code_parameter; 85 86 } 87 88 89 /** 90 * Getter method for code of parameter. 91 * 92 * @return The code parameter 93 */ 94 public String getCodeParameter() { 95 return (this.code_parameter); 96 } 97 98 99 /** 100 * Getter method for name of parameter. 101 * 102 * @return The name parameter 103 */ 104 public String getName() { 105 return (this.name); 106 } 107 108 109 /** 110 * Getter method for description of parameter. 111 * 112 * @return The description parameter 113 */ 114 public String getDescription() { 115 return (this.description); 116 } 117 118 119 /** 120 * Getter method for warning of parameter. 121 * 122 * @return The warning for each parameter 123 */ 124 public String getWarning() { 125 return (this.warning); 126 } 127 128 129 /** 130 * Getter method for level_1_2 value of parameter. 131 * 132 * @return The level_1_2 parameter value 133 */ 134 public String getLevel_1_2() { 135 return (this.level_1_2); 136 } 137 138 139 /** 140 * Getter method for level_1_any value of parameter. 141 * 142 * @return The level_1_any parameter value 143 */ 144 public String getLevel_1_any() { 145 return (this.level_1_any); 146 } 147 148 149 /** 150 * Getter method for level_any_2 value of parameter. 151 * 152 * @return The level_any_2 parameter value 153 */ 154 public String getLevel_any_2() { 155 return (this.level_any_2); 156 } 157 158 159 /** 160 * Getter method for level_any_any value of parameter. 161 * 162 * @return The level_any_any parameter value 163 */ 164 public String getLevel_any_any() { 165 return (this.level_any_any); 166 } 167 168 } 169