Subversion Repositories SmartDukaan

Rev

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

Rev 35869 Rev 35870
Line 179... Line 179...
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;
184
        this.modelName = modelName != null ? modelName.replaceAll("^[\\s\\u00A0]+|[\\s\\u00A0]+$", "") : 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;
192
        this.modelNumber = modelNumber != null ? modelNumber.replaceAll("^[\\s\\u00A0]+|[\\s\\u00A0]+$", "") : 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);