Subversion Repositories SmartDukaan

Rev

Rev 35870 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35870 Rev 37071
Line 171... Line 171...
171
    public String getBrand() {
171
    public String getBrand() {
172
        return brand;
172
        return brand;
173
    }
173
    }
174
 
174
 
175
    public void setBrand(String brand) {
175
    public void setBrand(String brand) {
176
        this.brand = brand;
176
        this.brand = com.spice.profitmandi.common.util.StringUtils.normalizeWhitespace(brand);
177
    }
177
    }
178
 
178
 
179
    public String getModelName() {
179
    public String getModelName() {
180
        return modelName;
180
        return modelName;
181
    }
181
    }
182
 
182
 
183
    public void setModelName(String modelName) {
183
    public void setModelName(String modelName) {
184
        this.modelName = modelName != null ? modelName.replaceAll("^[\\s\\u00A0]+|[\\s\\u00A0]+$", "") : modelName;
184
        this.modelName = com.spice.profitmandi.common.util.StringUtils.normalizeWhitespace(modelName);
185
    }
185
    }
186
 
186
 
187
    public String getModelNumber() {
187
    public String getModelNumber() {
188
        return modelNumber;
188
        return modelNumber;
189
    }
189
    }
190
 
190
 
191
    public void setModelNumber(String modelNumber) {
191
    public void setModelNumber(String modelNumber) {
192
        this.modelNumber = modelNumber != null ? modelNumber.replaceAll("^[\\s\\u00A0]+|[\\s\\u00A0]+$", "") : modelNumber;
192
        this.modelNumber = com.spice.profitmandi.common.util.StringUtils.normalizeWhitespace(modelNumber);
193
    }
193
    }
194
 
194
 
195
    public String getColor() {
195
    public String getColor() {
196
        if (color != null && (color.startsWith("f_") || color.startsWith("F_"))) {
196
        if (color != null && (color.startsWith("f_") || color.startsWith("F_"))) {
197
            return color.substring(2);
197
            return color.substring(2);
Line 202... Line 202...
202
    public String getColorNatural() {
202
    public String getColorNatural() {
203
        return this.color;
203
        return this.color;
204
    }
204
    }
205
 
205
 
206
    public void setColor(String color) {
206
    public void setColor(String color) {
207
        this.color = color != null ? color.replaceAll("^[\\s\\u00A0]+|[\\s\\u00A0]+$", "") : color;
207
        this.color = com.spice.profitmandi.common.util.StringUtils.normalizeWhitespace(color);
208
    }
208
    }
209
 
209
 
210
    public ItemType getType() {
210
    public ItemType getType() {
211
        return type;
211
        return type;
212
    }
212
    }