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
A TargetPropertyDescriptor implementation for the TargetProperty annotation.
Since:
BEAM 5
  • Constructor Details

    • AnnotationTargetPropertyDescriptor

      public AnnotationTargetPropertyDescriptor(String name, Class<?> dataType, TargetProperty annotation)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface ElementDescriptor
      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:
      getDataType in interface DataElementDescriptor
      Returns:
      The element's data type. Defaults to Object.
    • getAnnotation

      public TargetProperty getAnnotation()
    • getAlias

      public String getAlias()
      Specified by:
      getAlias in interface ElementDescriptor
      Returns:
      A short form of the symbolic name, or null if not declared.
    • getLabel

      public String getLabel()
      Specified by:
      getLabel in interface ElementDescriptor
      Returns:
      A human-readable version of the symbolic name to be used in user interfaces, or null if not declared.
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface ElementDescriptor
      Returns:
      A short description, or null if not declared.