Annotation Type RequestParameter
-
@Retention(RUNTIME) @Target(METHOD) public @interface RequestParameter
The
RequestParametermethod annotation indicates that asetXXXmethod is a structured input data parameter on aBusinessApplicationPluginclass that has perRequestInputData=false.Request parameters are implemented as Java bean properties on the plug-in class. The plug-in must implement a
setXXXproperty method for each request parameter. The request parameter name is the name of the Java bean property. The parameter type can only use the supported data types. The request parameters will be converted by the CPF from the input data to the correct Java type.Before execution of the plug-in the request methods will be invoked to set the request parameter values.
A
RequestParametermethod can also be marked as aJobParameterif the parameter can be specified either at the job or request level.The following example shows the use of the annotation.
private String algorithmName; @RequestParameter public void setAlgorithmName(final String algorithmName) { this.algorithmName = algorithmName; }
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringdescriptionThe description of the request parameter to display on the plug-in overview page and as instructions on the create job forms.StringdescriptionUrlThe url to a page that describes the parameter in greater detail than is possible on the form.intindexThe index (position) of the parameter in the input file form.intlengthThe maximum length of the parameter including the scale.StringmaxValueThe maximum allowed value for numeric parameters.StringminValueThe minimum allowed value for numeric parameters.intscaleThe number of decimal places for fixed precision numeric types.StringunitsThe units of measurement for numeric fields (e.g.
-
-
-
Element Detail
-
description
String description
The description of the request parameter to display on the plug-in overview page and as instructions on the create job forms.- Default:
- ""
-
-
-
descriptionUrl
String descriptionUrl
The url to a page that describes the parameter in greater detail than is possible on the form. If specified the name of the parameter will be a hyper-link to this URL.- Default:
- ""
-
-
-
maxValue
String maxValue
The maximum allowed value for numeric parameters. The string value will be converted to the correct data type.- Default:
- ""
-
-
-
minValue
String minValue
The minimum allowed value for numeric parameters. The string value will be converted to the correct data type.- Default:
- ""
-
-
-
units
String units
The units of measurement for numeric fields (e.g. metres, feet, degrees). This will be displayed after the field on the form.- Default:
- ""
-
-