public class DefaultOperatorDescriptor extends Object implements OperatorDescriptor
OperatorDescriptor interface.| Constructor and Description |
|---|
DefaultOperatorDescriptor(String name,
Class<? extends Operator> operatorClass) |
| Modifier and Type | Method and Description |
|---|---|
static DefaultOperatorDescriptor |
fromXml(File file,
ClassLoader classLoader)
Loads an operator descriptor from an XML document.
|
static DefaultOperatorDescriptor |
fromXml(Reader reader,
String resourceName,
ClassLoader classLoader)
Loads an operator descriptor from an XML document.
|
static DefaultOperatorDescriptor |
fromXml(URL url,
ClassLoader classLoader)
Loads an operator descriptor from an XML document.
|
String |
getAlias() |
String |
getAuthors() |
String |
getCopyright() |
String |
getDescription() |
String |
getLabel() |
String |
getName() |
Class<? extends Operator> |
getOperatorClass() |
ParameterDescriptor[] |
getParameterDescriptors() |
SourceProductDescriptor[] |
getSourceProductDescriptors() |
SourceProductsDescriptor |
getSourceProductsDescriptor() |
TargetProductDescriptor |
getTargetProductDescriptor() |
TargetPropertyDescriptor[] |
getTargetPropertyDescriptors() |
String |
getVersion() |
boolean |
isAutoWriteDisabled()
The GPF framework usually writes the target product of either single operators or processing graphs to the file
system when executed from the GPT command-line interface or the operator GUI.
|
boolean |
isInternal() |
String |
toXml(ClassLoader classLoader)
Converts an operator descriptor to XML.
|
public String getVersion()
getVersion in interface OperatorDescriptornull if not declared.public String getAuthors()
getAuthors in interface OperatorDescriptornull if not declared.public String getCopyright()
getCopyright in interface OperatorDescriptornull if not declared.public boolean isInternal()
isInternal in interface OperatorDescriptortrue, this operator is considered for internal use only and thus
may not be exposed in user interfaces. The default is false.public boolean isAutoWriteDisabled()
OperatorDescriptor
If the autoWriteDisabled property is set, this default behaviour is switched off and hence,
the operator or graph is responsible for outputting any computed results.
Setting this property on an operator will only be useful, if it either does not generate a new target
Product and/or if it
does its own outputting of non-Product targets to external files.
isAutoWriteDisabled in interface OperatorDescriptortrue, the framework will prevent automatic writing of the target product to the file system.public String getName()
getName in interface ElementDescriptorpublic String getAlias()
getAlias in interface ElementDescriptornull if not declared.public String getLabel()
getLabel in interface ElementDescriptornull if not declared.public String getDescription()
getDescription in interface ElementDescriptornull if not declared.public Class<? extends Operator> getOperatorClass()
getOperatorClass in interface OperatorDescriptorpublic SourceProductDescriptor[] getSourceProductDescriptors()
getSourceProductDescriptors in interface OperatorDescriptorpublic SourceProductsDescriptor getSourceProductsDescriptor()
getSourceProductsDescriptor in interface OperatorDescriptornull if none is declared.public ParameterDescriptor[] getParameterDescriptors()
getParameterDescriptors in interface OperatorDescriptorpublic TargetPropertyDescriptor[] getTargetPropertyDescriptors()
getTargetPropertyDescriptors in interface OperatorDescriptorpublic TargetProductDescriptor getTargetProductDescriptor()
getTargetProductDescriptor in interface OperatorDescriptornull if none is declared.public static DefaultOperatorDescriptor fromXml(URL url, ClassLoader classLoader)
url - The URL pointing to a valid operator descriptor XML document.classLoader - The class loader is used to load classed specified in the xml. For example the
class defined by the operatorClass tag.public static DefaultOperatorDescriptor fromXml(File file, ClassLoader classLoader) throws OperatorException
file - The file containing a valid operator descriptor XML document.classLoader - The class loader is used to load classed specified in the xml. For example the
class defined by the operatorClass tag.OperatorExceptionpublic static DefaultOperatorDescriptor fromXml(Reader reader, String resourceName, ClassLoader classLoader) throws OperatorException
reader - The reader providing a valid operator descriptor XML document.resourceName - Used in error messagesclassLoader - The class loader is used to load classed specified in the xml. For example the
class defined by the operatorClass tag.OperatorExceptionpublic String toXml(ClassLoader classLoader)
classLoader - The class loader is used to load classed specified in the xml. For example the
class defined by the operatorClass tag.Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.