1 21 package com.jaspersoft.jasperserver.api.metadata.common.domain.client; 22 23 import com.jaspersoft.jasperserver.api.metadata.common.domain.DataType; 24 25 26 30 public class DataTypeImpl extends ResourceImpl implements DataType 31 { 32 33 36 private byte type = TYPE_TEXT; 37 private Integer maxLength = null; 38 private Integer decimals = null; 39 private String regularExpr = null; 40 private Comparable minValue = null; 41 private Comparable maxValue = null; 42 private boolean isStrictMin = false; 43 private boolean isStrictMax = false; 44 45 46 49 public byte getType() 50 { 51 return type; 52 } 53 54 57 public void setType(byte type) 58 { 59 this.type = type; 60 } 61 62 65 public Integer getMaxLength() 66 { 67 return maxLength; 68 } 69 70 73 public void setMaxLength(Integer maxLength) 74 { 75 this.maxLength = maxLength; 76 } 77 78 81 public Integer getDecimals() 82 { 83 return decimals; 84 } 85 86 89 public void setDecimals(Integer decimals) 90 { 91 this.decimals = decimals; 92 } 93 94 97 public String getRegularExpr() 98 { 99 return regularExpr; 100 } 101 102 105 public void setRegularExpr(String regularExpr) 106 { 107 this.regularExpr = regularExpr; 108 } 109 110 113 public Comparable getMinValue() 114 { 115 return minValue; 116 } 117 118 121 public void setMinValue(Comparable min) 122 { 123 this.minValue = min; 124 } 125 126 129 public Comparable getMaxValue() 130 { 131 return maxValue; 132 } 133 134 137 public void setMaxValue(Comparable max) 138 { 139 this.maxValue = max; 140 } 141 142 145 public boolean isStrictMin() 146 { 147 return isStrictMin; 148 } 149 150 153 public void setStrictMin(boolean isStrictMin) 154 { 155 this.isStrictMin = isStrictMin; 156 } 157 158 161 public boolean isStrictMax() 162 { 163 return isStrictMax; 164 } 165 166 169 public void setStrictMax(boolean isStrictMax) 170 { 171 this.isStrictMax = isStrictMax; 172 } 173 174 protected Class getImplementingItf() { 175 return DataType.class; 176 } 177 178 } 179 | Popular Tags |