au.com.whitesquare.waf.command
Class RequestParameter

java.lang.Object
  extended byau.com.whitesquare.waf.command.RequestParameter

public class RequestParameter
extends Object


Last Modified $Date: 2006/11/10 23:59:52 $

Version:
$Revision: 1.12 $
Author:
Steve Mactaggart

Field Summary
static int BOOLEAN
           
static int BOOLEAN_DEFAULT_FALSE
           
static int BOOLEAN_DEFAULT_TRUE
           
static int DOUBLE
           
static int DOUBLE_ARRAY
           
static int FLOAT
           
static int FLOAT_ARRAY
           
static int INTEGER
           
static int INTEGER_ARRAY
           
static int LONG
           
static int LONG_ARRAY
           
static int OBJECT
           
static int STRING
           
static int STRING_ARRAY
           
 
Constructor Summary
RequestParameter(String code, int type, boolean mand, String description)
           
 
Method Summary
 Boolean getBoolean()
           
 String getCode()
           
 String getDescription()
           
 Double getDouble()
           
 Double[] getDoubleArray()
           
 Float getFloat()
           
 Float[] getFloatArray()
           
 Integer getInteger()
           
 Integer[] getIntegerArray()
           
 Long getLong()
           
 Long[] getLongArray()
           
 Object getObject()
           
 String getString()
           
 String[] getStringArray()
           
 int getType()
           
protected  String getTypeString()
           
 Object getValue()
          This method returns the value of the Parameter irrelivant of which type of object the parameter was defined as.
 boolean isMandatory()
           
 void setCode(String code)
           
 void setDescription(String description)
           
 void setDouble(Double double2)
           
 void setDoubleArray(Double[] double2)
           
 void setFloat(Float float2)
           
 void setFloatArray(Float[] float2)
           
 void setInteger(Integer integer2)
           
 void setIntegerArray(Integer[] integer2)
           
 void setLong(Long long2)
           
 void setLongArray(Long[] long2)
           
 void setMandatory(boolean mandatory)
           
 void setObject(Object object2)
           
 void setString(String string2)
           
 void setStringArray(String[] string)
           
 void setType(int type)
           
 void validate(Map params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRING

public static final int STRING
See Also:
Constant Field Values

LONG

public static final int LONG
See Also:
Constant Field Values

FLOAT

public static final int FLOAT
See Also:
Constant Field Values

DOUBLE

public static final int DOUBLE
See Also:
Constant Field Values

INTEGER

public static final int INTEGER
See Also:
Constant Field Values

OBJECT

public static final int OBJECT
See Also:
Constant Field Values

BOOLEAN

public static final int BOOLEAN
See Also:
Constant Field Values

BOOLEAN_DEFAULT_FALSE

public static final int BOOLEAN_DEFAULT_FALSE
See Also:
Constant Field Values

BOOLEAN_DEFAULT_TRUE

public static final int BOOLEAN_DEFAULT_TRUE
See Also:
Constant Field Values

STRING_ARRAY

public static final int STRING_ARRAY
See Also:
Constant Field Values

LONG_ARRAY

public static final int LONG_ARRAY
See Also:
Constant Field Values

FLOAT_ARRAY

public static final int FLOAT_ARRAY
See Also:
Constant Field Values

DOUBLE_ARRAY

public static final int DOUBLE_ARRAY
See Also:
Constant Field Values

INTEGER_ARRAY

public static final int INTEGER_ARRAY
See Also:
Constant Field Values
Constructor Detail

RequestParameter

public RequestParameter(String code,
                        int type,
                        boolean mand,
                        String description)
Method Detail

validate

public void validate(Map params)
              throws FieldValidationException
Throws:
FieldValidationException

getCode

public String getCode()

setCode

public void setCode(String code)

setDescription

public void setDescription(String description)

getDescription

public String getDescription()

setType

public void setType(int type)

getType

public int getType()

setMandatory

public void setMandatory(boolean mandatory)

isMandatory

public boolean isMandatory()

getBoolean

public Boolean getBoolean()

setString

public void setString(String string2)

getString

public String getString()

setStringArray

public void setStringArray(String[] string)

getStringArray

public String[] getStringArray()

setInteger

public void setInteger(Integer integer2)

getInteger

public Integer getInteger()

setIntegerArray

public void setIntegerArray(Integer[] integer2)

getIntegerArray

public Integer[] getIntegerArray()

setLong

public void setLong(Long long2)

getLong

public Long getLong()

setLongArray

public void setLongArray(Long[] long2)

getLongArray

public Long[] getLongArray()

setDouble

public void setDouble(Double double2)

getDouble

public Double getDouble()

setDoubleArray

public void setDoubleArray(Double[] double2)

getDoubleArray

public Double[] getDoubleArray()

setFloat

public void setFloat(Float float2)

getFloat

public Float getFloat()

setFloatArray

public void setFloatArray(Float[] float2)

getFloatArray

public Float[] getFloatArray()

setObject

public void setObject(Object object2)

getObject

public Object getObject()

getTypeString

protected String getTypeString()

getValue

public Object getValue()
This method returns the value of the Parameter irrelivant of which type of object the parameter was defined as.

Returns:
the value supplied for this parameter.


Copyright © 2004 Whitesquare Software. All Rights Reserved.