package com.jware.apps.scheduler.web.struts.definition;

import java.io.Serializable;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionMapping;

import com.jware.base.web.struts.jWareBaseForm;


public class ParameterAddForm extends jWareBaseForm implements Serializable {

	private String name;
	private String parameterName;
	private String parameterDescription;
	private boolean required;

	/**
	 * 
	 */
	public ParameterAddForm() {
		super();
		// TODO Auto-generated constructor stub
	}

	/**
	 * @return
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param string
	 */
	public void setName(String string) {
		name = string;
	}

	/**
	 * Reset all properties to their default values.
	 *
	 * @param mapping The mapping used to select this instance
	 * @param request The servlet request we are processing
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		/**
    	 * This will set LoginUserId From Session  
    	 */
    	super.reset(mapping, request);		
    	
    	/**
    	 * Reset all properties to their default values.
    	 */
		this.name = null;
		this.parameterDescription = null;
		this.required = false;
		
	}

	/**
	 * @return
	 */
	public boolean getRequired() {
		return required;
	}

	/**
	 * @param b
	 */
	public void setRequired(boolean b) {
		required = b;
	}

    /**
     * @return Returns the parameterName.
     */
    public String getParameterName() {
        return parameterName;
    }
    /**
     * @param parameterName The parameterName to set.
     */
    public void setParameterName(String parameterName) {
        this.parameterName = parameterName;
    }
	/**
	 * @return Returns the parameterDescription.
	 */
	public String getParameterDescription() {
		return parameterDescription;
	}
	/**
	 * @param parameterDescription The parameterDescription to set.
	 */
	public void setParameterDescription(String parameterDescription) {
		this.parameterDescription = parameterDescription;
	}
}
