package refactoring.struts.beans; import java.io.Serializable; import java.util.ArrayList; import java.util.List; public class MappingAnnotationBean implements Serializable { private static final long serialVersionUID = -8049453063876648129L; private transient boolean DAalreadyContainsMapping; private String dispatchActionClassName; private String path; private String formBean; private String attribute; private String formBeanClass; // Class private String input; private String module; private String scope; private boolean validate; private String parameter; private String customMappingClass; // Class private String[] customMappingProperties; private List forwardList; private List exceptionList; private String newDAName; // used for DA subclasses created private String newDAFile; public MappingAnnotationBean() { this.forwardList = new ArrayList(); this.exceptionList = new ArrayList(); } public MappingAnnotationBean(String dispatchActionClassName, String path, String formBean, String formBeanClass, String input, String module, String scope, boolean validate, String customMappingClass, String[] customMappingProperties) { super(); this.dispatchActionClassName = dispatchActionClassName; this.path = path; this.formBean = formBean; this.formBeanClass = formBeanClass; this.input = input; this.module = module; this.scope = scope; this.validate = validate; this.customMappingClass = customMappingClass; this.customMappingProperties = customMappingProperties; this.forwardList = new ArrayList(); this.exceptionList = new ArrayList(); } public String getPath() { return path; } public void setPath(String path) { this.path = path; } public String getFormBean() { return formBean; } public void setFormBean(String formBean) { this.formBean = formBean; } public String getFormBeanClass() { return formBeanClass; } public void setFormBeanClass(String formBeanClass) { this.formBeanClass = formBeanClass; } public String getInput() { return input; } public void setInput(String input) { this.input = input; } public String getModule() { return module; } public void setModule(String module) { this.module = module; } public String getScope() { return scope; } public void setScope(String scope) { this.scope = scope; } public boolean isValidate() { return validate; } public void setValidate(boolean validate) { this.validate = validate; } public String getCustomMappingClass() { return customMappingClass; } public void setCustomMappingClass(String customMappingClass) { this.customMappingClass = customMappingClass; } public String[] getCustomMappingProperties() { return customMappingProperties; } public void setCustomMappingProperties(String[] customMappingProperties) { this.customMappingProperties = customMappingProperties; } public String getDispatchActionClassName() { return dispatchActionClassName; } public void setDispatchActionClassName(String dispatchActionClassName) { this.dispatchActionClassName = dispatchActionClassName; } public List getForwardList() { return forwardList; } public void setForwardList(List forwardList) { this.forwardList = forwardList; } public List getExceptionList() { return exceptionList; } public void setExceptionList(List exceptionList) { this.exceptionList = exceptionList; } public void addForward(ForwardAnnotationBean forward) { this.forwardList.add(forward); } public void addExceptionHandler(ExceptionHandlingBean exceptionHandler) { this.exceptionList.add(exceptionHandler); } public String getNewDAName() { return newDAName; } public void setNewDAName(String newDAName) { this.newDAName = newDAName; } public String getNewDAFile() { return newDAFile; } public void setNewDAFile(String newDAFile) { this.newDAFile = newDAFile; } public boolean isDAalreadyContainsMapping() { return DAalreadyContainsMapping; } public void setDAalreadyContainsMapping(boolean dAalreadyContainsMapping) { DAalreadyContainsMapping = dAalreadyContainsMapping; } public String getAttribute() { return attribute; } public void setAttribute(String attribute) { this.attribute = attribute; } public String getParameter() { return parameter; } public void setParameter(String parameter) { this.parameter = parameter; } }