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 OperatorDescriptor
null
if not declared.public String getAuthors()
getAuthors
in interface OperatorDescriptor
null
if not declared.public String getCopyright()
getCopyright
in interface OperatorDescriptor
null
if not declared.public boolean isInternal()
isInternal
in interface OperatorDescriptor
true
, 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 OperatorDescriptor
true
, the framework will prevent automatic writing of the target product to the file system.public String getName()
getName
in interface ElementDescriptor
public String getAlias()
getAlias
in interface ElementDescriptor
null
if not declared.public String getLabel()
getLabel
in interface ElementDescriptor
null
if not declared.public String getDescription()
getDescription
in interface ElementDescriptor
null
if not declared.public Class<? extends Operator> getOperatorClass()
getOperatorClass
in interface OperatorDescriptor
public SourceProductDescriptor[] getSourceProductDescriptors()
getSourceProductDescriptors
in interface OperatorDescriptor
public SourceProductsDescriptor getSourceProductsDescriptor()
getSourceProductsDescriptor
in interface OperatorDescriptor
null
if none is declared.public ParameterDescriptor[] getParameterDescriptors()
getParameterDescriptors
in interface OperatorDescriptor
public TargetPropertyDescriptor[] getTargetPropertyDescriptors()
getTargetPropertyDescriptors
in interface OperatorDescriptor
public TargetProductDescriptor getTargetProductDescriptor()
getTargetProductDescriptor
in interface OperatorDescriptor
null
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.OperatorException
public 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.OperatorException
public 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.