Package org.esa.snap.core.gpf.descriptor
Class AnnotationSourceProductsDescriptor
- java.lang.Object
-
- org.esa.snap.core.gpf.descriptor.AnnotationSourceProductsDescriptor
-
- All Implemented Interfaces:
DataElementDescriptor,ElementDescriptor,SourceProductsDescriptor
public class AnnotationSourceProductsDescriptor extends Object implements SourceProductsDescriptor
ASourceProductsDescriptorimplementation for theSourceProductsannotation.- Since:
- BEAM 5
-
-
Constructor Summary
Constructors Constructor Description AnnotationSourceProductsDescriptor(String name, SourceProducts annotation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlias()SourceProductsgetAnnotation()String[]getBands()intgetCount()Class<? extends Product[]>getDataType()StringgetDescription()StringgetLabel()StringgetName()StringgetProductType()
-
-
-
Constructor Detail
-
AnnotationSourceProductsDescriptor
public AnnotationSourceProductsDescriptor(String name, SourceProducts annotation)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceElementDescriptor- Returns:
- The symbolic name used to unambiguously identify this element. E.g. the fully qualified name of a Java class.
-
getAnnotation
public SourceProducts getAnnotation()
-
getCount
public int getCount()
- Specified by:
getCountin interfaceSourceProductsDescriptor- Returns:
- the number of source products expected.
The value
-1means any number but at least one source product. Defaults to0(= not set).
-
getProductType
public String getProductType()
- Specified by:
getProductTypein interfaceSourceProductsDescriptor- Returns:
- The product type or a regular expression identifying the allowed product types. Defaults to the empty string (= not set).
- See Also:
Pattern
-
getBands
public String[] getBands()
- Specified by:
getBandsin interfaceSourceProductsDescriptor- Returns:
- The names of the bands which need to be present in the source product. Defaults to an empty array (= not set).
-
getAlias
public String getAlias()
- Specified by:
getAliasin interfaceElementDescriptor- Returns:
- A short form of the symbolic name, or
nullif not declared.
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceElementDescriptor- Returns:
- A short description, or
nullif not declared.
-
getLabel
public String getLabel()
- Specified by:
getLabelin interfaceElementDescriptor- Returns:
- A human-readable version of the symbolic name to be used in user interfaces, or
nullif not declared.
-
getDataType
public Class<? extends Product[]> getDataType()
- Specified by:
getDataTypein interfaceDataElementDescriptor- Specified by:
getDataTypein interfaceSourceProductsDescriptor- Returns:
- The source product type.
Defaults to
Product[].
-
-