org.esa.beam.framework.gpf.annotations
Annotation Type Parameter


@Documented
@Inherited
@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface Parameter

Marks a processing parameter field of an Operator. The field can be of any type.


Optional Element Summary
 String alias
           
 String condition
          Gets a conditional expression which must return true in order to indicate that the parameter value is valid, e.g.
 Class<? extends com.bc.ceres.binding.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 com.bc.ceres.binding.dom.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
           
 boolean itemsInlined
           
 String label
           
 boolean notEmpty
          Parameter value must not be an empty string?
 boolean notNull
          Parameter value must not be null?
 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 which RasterDataNode subclass of the source products is used to fill the valueSet() for this parameter.
 String unit
           
 Class<? extends com.bc.ceres.binding.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.
 

alias

public abstract String alias
Returns:
An alias name for the parameter. Defaults to the empty string (= not set).
Default:
""

itemAlias

public abstract 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).
See Also:
itemsInlined()
Default:
""

itemsInlined

public abstract boolean itemsInlined
Returns:
If true items of parameter array values are inlined (not enclosed by the parameter name) in the DOM representation of the array. In this case also an (itemAlias has to be set. Defaults to false.
See Also:
itemAlias()
Default:
false

defaultValue

public abstract 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 associated Converter.

Returns:
The default value. Defaults to the empty string (= not set).
See Also:
converter()
Default:
""

label

public abstract String label
Returns:
A parameter label. Defaults to the empty string (= not set).
Default:
""

unit

public abstract String unit
Returns:
The parameter physical unit. Defaults to the empty string (= not set).
Default:
""

description

public abstract String description
Returns:
The parameter description. Defaults to the empty string (= not set).
Default:
""

valueSet

public abstract 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 associated Converter.

Returns:
The value set.Defaults to empty array (= not set).
See Also:
converter()
Default:
{}

interval

public abstract 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

public abstract String condition
Gets a conditional expression which must return true 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:
""

pattern

public abstract String pattern
Gets a regular expression pattern to which a textual parameter value must match in order to indicate a valid value, e.g. "a*".

Returns:
A regular expression pattern. Defaults to empty string (= not set).
See Also:
Pattern
Default:
""

format

public abstract String format
Gets a format string to which a textual parameter value must match in order to indicate a valid value, e.g. "yyyy-MM-dd HH:mm:ss.Z".

Returns:
A format string. Defaults to empty string (= not set).
See Also:
Format
Default:
""

notNull

public abstract boolean notNull
Parameter value must not be null?

Returns:
true, if so. Defaults to false.
Default:
false

notEmpty

public abstract boolean notEmpty
Parameter value must not be an empty string?

Returns:
true, if so. Defaults to false.
Default:
false

validator

public abstract Class<? extends com.bc.ceres.binding.Validator> validator
A validator to be used to validate a parameter value.

Returns:
The validator class.
Default:
com.bc.ceres.binding.Validator.class

converter

public abstract Class<? extends com.bc.ceres.binding.Converter> converter
A converter to be used to convert a text to the parameter value and vice versa.

Returns:
The converter class.
Default:
com.bc.ceres.binding.Converter.class

domConverter

public abstract Class<? extends com.bc.ceres.binding.dom.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

public abstract Class<? extends RasterDataNode> rasterDataNodeType
Specifies which RasterDataNode subclass of the source products is used to fill the valueSet() for this parameter.

Returns:
The raster data node type.
Default:
org.esa.beam.framework.datamodel.RasterDataNode.class


Copyright © 2002-2013 Brockmann Consult GmbH. All Rights Reserved.