Class CustomParameterClass
- java.lang.Object
-
- org.esa.snap.ui.tooladapter.model.CustomParameterClass
-
public class CustomParameterClass extends Object
Enum-like class holding the possible types of operator parameters
-
-
Field Summary
Fields Modifier and Type Field Description static CustomParameterClassAfterTemplateFileClassRepresents a template file that is supposed to be executed after the actual tool executionstatic CustomParameterClassBeforeTemplateFileClassRepresents a template file that is supposed to be executed before the actual tool executionstatic CustomParameterClassBooleanClassRepresents a boolean parameterstatic CustomParameterClassFileListClassRepresents a file list parameterstatic CustomParameterClassFloatClassRepresents a float parameterstatic CustomParameterClassFolderClassRepresents a folder parameterstatic CustomParameterClassIntegerClassRepresents an integer parameterstatic CustomParameterClassListClassRepresents a string list parameterstatic CustomParameterClassRegularFileClassRepresents a file parameterstatic CustomParameterClassStringClassRepresents a string/text parameterstatic CustomParameterClassTemplateFileClassRepresents a the template file of the actual tool execution
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CustomParameterClassgetObject(Class<?> aClass, String typeMask)Returns the CustomParameterClass instance matching the given type maskClass<?>getParameterClass()StringgetTypeMask()Returns the type mask of the parameterbooleanisParameter()Checks if the parameter is a regular parameterbooleanisTemplateAfter()Checks if the parameter is a template-after parameterbooleanisTemplateBefore()Checks if the parameter is a template-before parameterbooleanisTemplateParameter()Checks if the parameter is a template parameter
-
-
-
Field Detail
-
BeforeTemplateFileClass
public static final CustomParameterClass BeforeTemplateFileClass
Represents a template file that is supposed to be executed before the actual tool execution
-
AfterTemplateFileClass
public static final CustomParameterClass AfterTemplateFileClass
Represents a template file that is supposed to be executed after the actual tool execution
-
TemplateFileClass
public static final CustomParameterClass TemplateFileClass
Represents a the template file of the actual tool execution
-
RegularFileClass
public static final CustomParameterClass RegularFileClass
Represents a file parameter
-
FolderClass
public static final CustomParameterClass FolderClass
Represents a folder parameter
-
FileListClass
public static final CustomParameterClass FileListClass
Represents a file list parameter
-
StringClass
public static final CustomParameterClass StringClass
Represents a string/text parameter
-
IntegerClass
public static final CustomParameterClass IntegerClass
Represents an integer parameter
-
ListClass
public static final CustomParameterClass ListClass
Represents a string list parameter
-
BooleanClass
public static final CustomParameterClass BooleanClass
Represents a boolean parameter
-
FloatClass
public static final CustomParameterClass FloatClass
Represents a float parameter
-
-
Method Detail
-
getParameterClass
public Class<?> getParameterClass()
- Returns:
- The Java class of the parameter
-
isTemplateParameter
public boolean isTemplateParameter()
Checks if the parameter is a template parameter
-
isTemplateBefore
public boolean isTemplateBefore()
Checks if the parameter is a template-before parameter
-
isTemplateAfter
public boolean isTemplateAfter()
Checks if the parameter is a template-after parameter
-
isParameter
public boolean isParameter()
Checks if the parameter is a regular parameter
-
getTypeMask
public String getTypeMask()
Returns the type mask of the parameter
-
getObject
public static CustomParameterClass getObject(Class<?> aClass, String typeMask)
Returns the CustomParameterClass instance matching the given type mask
-
-