Annotation Type Parameter
-
@Documented @Inherited @Retention(RUNTIME) @Target(FIELD) public @interface Parameter
Marks a processing parameter field of anOperator
. The field can be of any type.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String
alias
String
condition
Gets a conditional expression which must returntrue
in order to indicate that the parameter value is valid, e.g.Class<? extends Converter>
converter
A converter to be used to convert a text to the parameter value and vice versa.String
defaultValue
Gets the parameter's default value.String
description
Class<? extends DomConverter>
domConverter
A converter to be used to convert an (XML) DOM to the parameter value and vice versa.String
format
Gets a format string to which a textual parameter value must match in order to indicate a valid value, e.g.String
interval
Gets the valid interval for numeric parameters, e.g.String
itemAlias
String
label
boolean
notEmpty
Parameter value must not be an empty string?boolean
notNull
Parameter value must not benull
?String
pattern
Gets a regular expression pattern to which a textual parameter value must match in order to indicate a valid value, e.g.Class<? extends RasterDataNode>
rasterDataNodeType
Specifies whichRasterDataNode
subclass of the source products is used to fill thevalueSet()
for this parameter.String
unit
Class<? extends Validator>
validator
A validator to be used to validate a parameter value.String[]
valueSet
Gets the set of values which can be assigned to a parameter field.
-
-
-
Element Detail
-
alias
String alias
- Returns:
- An alias name for the parameter. Defaults to the empty string (= not set).
- Default:
- ""
-
-
-
itemAlias
String itemAlias
- Returns:
- An alias name for the elements of a parameter array. Forces element-wise array conversion from and to DOM representation. Defaults to the empty string (= not set).
- Default:
- ""
-
-
-
defaultValue
String defaultValue
Gets the parameter's default value. The default value set is given as a textual representations of the actual value. The framework creates the actual value set by converting the text value to an object using the associatedConverter
.- Returns:
- The default value. Defaults to the empty string (= not set).
- See Also:
converter()
- Default:
- ""
-
-
-
label
String label
- Returns:
- A human-readable version of the name to be used in user interfaces. Defaults to the empty string (= not set).
- Default:
- ""
-
-
-
unit
String unit
- Returns:
- The parameter physical unit. Defaults to the empty string (= not set).
- Default:
- ""
-
-
-
description
String description
- Returns:
- The parameter description. Defaults to the empty string (= not set).
- Default:
- ""
-
-
-
valueSet
String[] valueSet
Gets the set of values which can be assigned to a parameter field. The value set is given as textual representations of the actual values. The framework creates the actual value set by converting each text value to an object value using the associatedConverter
.- Returns:
- The value set.Defaults to empty array (= not set).
- See Also:
converter()
- Default:
- {}
-
-
-
interval
String interval
Gets the valid interval for numeric parameters, e.g."[10,20)"
: in the range 10 (inclusive) to 20 (exclusive).- Returns:
- The valid interval. Defaults to empty string (= not set).
- Default:
- ""
-
-
-
condition
String condition
Gets a conditional expression which must returntrue
in order to indicate that the parameter value is valid, e.g."value > 2.5"
.- Returns:
- A conditional expression. Defaults to empty string (= not set).
- Default:
- ""
-
-
-
domConverter
Class<? extends DomConverter> domConverter
A converter to be used to convert an (XML) DOM to the parameter value and vice versa.- Returns:
- The DOM converter class.
- Default:
- com.bc.ceres.binding.dom.DomConverter.class
-
-
-
rasterDataNodeType
Class<? extends RasterDataNode> rasterDataNodeType
Specifies whichRasterDataNode
subclass of the source products is used to fill thevalueSet()
for this parameter.- Returns:
- The raster data node type.
- Default:
- org.esa.snap.core.datamodel.RasterDataNode.class
-
-