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 PropertyDescriptorconvert(ParameterDescriptor parameterDescriptor, Map<String,Product> sourceProductMap)static PropertyContainercreateMapBackedOperatorPropertyContainer(String operatorName)static PropertyContainercreateMapBackedOperatorPropertyContainer(String operatorName, Map<String,Object> operatorParameters)static PropertyContainercreateMapBackedOperatorPropertyContainer(String operatorName, Map<String,Object> operatorParameters, Map<String,Product> sourceProductMap)PropertyDescriptorcreateValueDescriptor(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:PropertyDescriptorFactoryCreates a new property descriptor for the given field.- Specified by:
createValueDescriptorin interfacePropertyDescriptorFactory- Parameters:
field- The field.- Returns:
- The property descriptor or
null, if it cannot be derived from the given field.
-
-