001package com.ganteater.ae.web; 002 003import org.apache.commons.lang.StringUtils; 004 005public class WebInputItem { 006 007 private String value; 008 private String desc; 009 private String name; 010 private String type; 011 012 public WebInputItem(String name, String description, String defaultValue, String type) { 013 this.desc = StringUtils.replace(description, "\n", "<br/>"); 014 this.name = StringUtils.replace(name, "\n", "<br/>"); 015 this.value = defaultValue; 016 this.type = type; 017 } 018 019 public String getValue() { 020 return value; 021 } 022 023 public void setValue(String value) { 024 this.value = value; 025 } 026 027 public String getDesc() { 028 return desc; 029 } 030 031 public String getName() { 032 return name; 033 } 034 035 public String getType() { 036 return type; 037 } 038 039 public void setType(String type) { 040 this.type = type; 041 } 042 043}