@Retention(value=RUNTIME) @Target(value=METHOD) public @interface RequestParameter
The RequestParameter
method annotation indicates that a setXXX
method is
a structured input data parameter on a BusinessApplicationPlugin
class that has perRequestInputData=false.
Request parameters are implemented as Java bean properties on the plug-in class.
The plug-in must implement a setXXX
property 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 RequestParameter
method can also be marked as a JobParameter
if 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; }
Modifier and Type | Optional Element and 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.
|
String |
descriptionUrl
The url to a page that describes the parameter in greater detail than is possible on the
form.
|
int |
index
The index (position) of the parameter in the input file form.
|
int |
length
The maximum length of the parameter including the scale.
|
String |
maxValue
The maximum allowed value for numeric parameters.
|
String |
minValue
The minimum allowed value for numeric parameters.
|
int |
scale
The number of decimal places for fixed precision numeric types.
|
String |
units
The units of measurement for numeric fields (e.g.
|
public abstract String description
public abstract String descriptionUrl
public abstract int index
public abstract int length
public abstract String maxValue
public abstract String minValue
public abstract int scale
public abstract String units
Copyright © 2008–2017 Province of British Columbia. All rights reserved.