Package org.esa.snap.core.gpf.descriptor
Class AnnotationSourceProductDescriptor
- java.lang.Object
-
- org.esa.snap.core.gpf.descriptor.AnnotationSourceProductDescriptor
-
- All Implemented Interfaces:
DataElementDescriptor
,ElementDescriptor
,SourceProductDescriptor
public class AnnotationSourceProductDescriptor extends Object implements SourceProductDescriptor
ASourceProductDescriptor
implementation for theSourceProduct
annotation.- Since:
- BEAM 5
-
-
Constructor Summary
Constructors Constructor Description AnnotationSourceProductDescriptor(String name, SourceProduct annotation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAlias()
SourceProduct
getAnnotation()
String[]
getBands()
Class<? extends Product>
getDataType()
String
getDescription()
String
getLabel()
String
getName()
String
getProductType()
boolean
isOptional()
-
-
-
Constructor Detail
-
AnnotationSourceProductDescriptor
public AnnotationSourceProductDescriptor(String name, SourceProduct annotation)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceElementDescriptor
- Returns:
- The symbolic name used to unambiguously identify this element. E.g. the fully qualified name of a Java class.
-
getAnnotation
public SourceProduct getAnnotation()
-
isOptional
public boolean isOptional()
- Specified by:
isOptional
in interfaceSourceProductDescriptor
- Returns:
true
if the source product is optional. Defaults tofalse
.
-
getProductType
public String getProductType()
- Specified by:
getProductType
in interfaceSourceProductDescriptor
- Returns:
- The product type or a regular expression identifying the allowed product types, or
null
if not declared. - See Also:
Pattern
-
getBands
public String[] getBands()
- Specified by:
getBands
in interfaceSourceProductDescriptor
- 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:
getAlias
in interfaceElementDescriptor
- Returns:
- A short form of the symbolic name, or
null
if not declared.
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceElementDescriptor
- Returns:
- A short description, or
null
if not declared.
-
getLabel
public String getLabel()
- Specified by:
getLabel
in interfaceElementDescriptor
- Returns:
- A human-readable version of the symbolic name to be used in user interfaces, or
null
if not declared.
-
getDataType
public Class<? extends Product> getDataType()
- Specified by:
getDataType
in interfaceDataElementDescriptor
- Specified by:
getDataType
in interfaceSourceProductDescriptor
- Returns:
- The source product type.
Defaults to
Product
.
-
-