public class Param extends Object implements Serializable
Result
,
Record
,
Serialized FormModifier and Type | Field and Description |
---|---|
static String |
BOOLEAN_CONST
Constant for "boolean" parameter type.
|
static String |
COLLECTION_CONST
Constant for "collection" parameter type.
|
static String |
DOUBLE_CONST
Constant for "double" parameter type.
|
static String |
ERR_MSG
Constant for errmsg parameter name.
|
static String |
HTTP_STATUS_CODE
Constant for httpStatusCode parameter name.
|
static String |
INT_CONST
Constant for "int" parameter type.
|
static String |
NUMBER_CONST
Constant for "number" parameter type.
|
static String |
OPSTATUS
Constant for opstatus parameter name.
|
static String |
STRING_CONST
Constant for "string" parameter type.
|
Constructor and Description |
---|
Param()
Creates a Param with default values.
|
Param(String name,
String value)
Creates a Param with specified name and value.
|
Param(String name,
String value,
String type)
Creates a Param with specified name, value and type.
|
Param(String name,
String value,
String type,
String format,
String formatValue)
Creates a Param with specified properties.
|
Param(String name,
String value,
String type,
String format,
String formatValue,
String accessType)
Creates a Param with specified properties.
|
Modifier and Type | Method and Description |
---|---|
String |
getAccessType()
Gets the access type of the Param, for example "readonly".
|
String |
getEscapeXMLValue()
Gets the escaped (or encoded) value the Param so that it is safe to use it
in XML strings.
|
String |
getFormat()
Gets the format or sub-type of the Param, for example "Currency".
|
String |
getFormatValue()
Gets the format value of the Param, for example "YYYY-MM-DD" for date.
|
String |
getName()
Gets the name of the Param.
|
Object |
getObjectValue()
Gets the value of the Param.
|
String |
getType()
Gets the type of the Param, for example "boolean", or "int", or
"collection".
|
String |
getValue()
Gets the value of the Param.
|
boolean |
isObjectSet()
Gets whether proper object value has been set or not.
|
void |
setAccessType(String accessType)
Sets the access type of the Param, for example "readonly".
|
void |
setFormat(String format)
Sets the format or sub-type of the Param, for example "Currency".
|
void |
setFormatValue(String formatValue)
Sets the format value of the Param, for example "YYYY-MM-DD" for date.
|
void |
setName(String name)
Sets the name of the Param.
|
void |
setObjectValue(Object objectValue)
Sets the value of the Param as proper object.
|
void |
setType(String type)
Sets the type of the Param, for example "boolean", or "int", or
"collection".
|
void |
setValue(String value)
Sets the value of the Param.
|
String |
toString() |
public static final String OPSTATUS
public static final String ERR_MSG
public static final String HTTP_STATUS_CODE
public static final String INT_CONST
public static final String STRING_CONST
public static final String NUMBER_CONST
public static final String DOUBLE_CONST
public static final String BOOLEAN_CONST
public static final String COLLECTION_CONST
public Param()
public Param(String name, String value)
name
- The name of the Paramvalue
- The value of the Parampublic Param(String name, String value, String type)
name
- The name of the Paramvalue
- The value of the Paramtype
- The type of the Parampublic Param(String name, String value, String type, String format, String formatValue)
name
- The name of the Paramvalue
- The value of the Paramtype
- The type of the Paramformat
- The format of the ParamformatValue
- The format value of the Parampublic Param(String name, String value, String type, String format, String formatValue, String accessType)
name
- The name of the Paramvalue
- The value of the Paramtype
- The type of the Paramformat
- The format of the ParamformatValue
- The format value of the ParamaccessType
- The access type of the Parampublic String getName()
public void setName(String name)
name
- The name to setpublic String getValue()
public void setValue(String value)
value
- The value to setpublic String getType()
public void setType(String type)
type
- The type to setpublic String getFormat()
public void setFormat(String format)
format
- The format to setpublic String getFormatValue()
public void setFormatValue(String formatValue)
formatValue
- The format value to setpublic String getAccessType()
public void setAccessType(String accessType)
accessType
- The access type to setpublic String getEscapeXMLValue()
public boolean isObjectSet()
public Object getObjectValue()
public void setObjectValue(Object objectValue)
objectValue
- The value of the Param as objectCopyright © 2019. All rights reserved.