Class ParameterDescriptorFactory
- java.lang.Object
-
- org.esa.snap.core.gpf.annotations.ParameterDescriptorFactory
-
- All Implemented Interfaces:
PropertyDescriptorFactory
public class ParameterDescriptorFactory extends Object implements PropertyDescriptorFactory
-
-
Constructor Summary
Constructors Constructor Description ParameterDescriptorFactory()
ParameterDescriptorFactory(Map<String,Product> sourceProductMap)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PropertyDescriptor
convert(ParameterDescriptor parameterDescriptor, Map<String,Product> sourceProductMap)
static PropertyContainer
createMapBackedOperatorPropertyContainer(String operatorName)
static PropertyContainer
createMapBackedOperatorPropertyContainer(String operatorName, Map<String,Object> operatorParameters)
static PropertyContainer
createMapBackedOperatorPropertyContainer(String operatorName, Map<String,Object> operatorParameters, Map<String,Product> sourceProductMap)
PropertyDescriptor
createValueDescriptor(Field field)
Creates a new property descriptor for the given field.Map<String,Product>
getSourceProductMap()
-
-
-
Method Detail
-
createMapBackedOperatorPropertyContainer
public static PropertyContainer createMapBackedOperatorPropertyContainer(String operatorName)
-
createMapBackedOperatorPropertyContainer
public static PropertyContainer createMapBackedOperatorPropertyContainer(String operatorName, Map<String,Object> operatorParameters)
-
createMapBackedOperatorPropertyContainer
public static PropertyContainer createMapBackedOperatorPropertyContainer(String operatorName, Map<String,Object> operatorParameters, Map<String,Product> sourceProductMap)
-
convert
public static PropertyDescriptor convert(ParameterDescriptor parameterDescriptor, Map<String,Product> sourceProductMap) throws ConversionException
- Throws:
ConversionException
-
createValueDescriptor
public PropertyDescriptor createValueDescriptor(Field field)
Description copied from interface:PropertyDescriptorFactory
Creates a new property descriptor for the given field.- Specified by:
createValueDescriptor
in interfacePropertyDescriptorFactory
- Parameters:
field
- The field.- Returns:
- The property descriptor or
null
, if it cannot be derived from the given field.
-
-