Package org.esa.snap.core.gpf.descriptor
Class AnnotationTargetPropertyDescriptor
- java.lang.Object
-
- org.esa.snap.core.gpf.descriptor.AnnotationTargetPropertyDescriptor
-
- All Implemented Interfaces:
DataElementDescriptor,ElementDescriptor,TargetPropertyDescriptor
public class AnnotationTargetPropertyDescriptor extends Object implements TargetPropertyDescriptor
ATargetPropertyDescriptorimplementation for theTargetPropertyannotation.- Since:
- BEAM 5
-
-
Constructor Summary
Constructors Constructor Description AnnotationTargetPropertyDescriptor(String name, Class<?> dataType, TargetProperty annotation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlias()TargetPropertygetAnnotation()Class<?>getDataType()StringgetDescription()StringgetLabel()StringgetName()
-
-
-
Constructor Detail
-
AnnotationTargetPropertyDescriptor
public AnnotationTargetPropertyDescriptor(String name, Class<?> dataType, TargetProperty 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.
-
getDataType
public Class<?> getDataType()
- Specified by:
getDataTypein interfaceDataElementDescriptor- Returns:
- The element's data type.
Defaults to
Object.
-
getAnnotation
public TargetProperty getAnnotation()
-
getAlias
public String getAlias()
- Specified by:
getAliasin interfaceElementDescriptor- Returns:
- A short form of the symbolic name, 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.
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceElementDescriptor- Returns:
- A short description, or
nullif not declared.
-
-