Package nz.org.riskscape.engine.function
Class MetadataParams
java.lang.Object
nz.org.riskscape.engine.function.MetadataParams
Defines what parameters a INI file function definition can accept, i.e. this defines the metadata associated with a function.
-
Field Summary
Modifier and TypeFieldDescriptionnz.org.riskscape.engine.function.ArgumentList
TheType
(s) of arguments that this function accepts.Optional<nz.org.riskscape.engine.function.IdentifiedFunction.Category>
Optionally assigns a category to the function, e.g.An optional description of what this function does.Explicitly specify the framework that the function will use, i.e.The location of a file containing the function definition.nz.org.riskscape.engine.types.Type
TheType
of the result returned by this function. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
locationEndsWith
(Map<String, List<?>> unbound, String suffix) nz.org.riskscape.engine.function.FunctionMetadata
toFunctionMetadata
(String functionName) Turns the given parameters into aFunctionMetadata
.
-
Field Details
-
location
The location of a file containing the function definition.
-
returnType
public nz.org.riskscape.engine.types.Type returnTypeThe
Type
of the result returned by this function. -
argumentTypes
public nz.org.riskscape.engine.function.ArgumentList argumentTypesThe
Type
(s) of arguments that this function accepts. -
description
An optional description of what this function does.
-
category
Optionally assigns a category to the function, e.g. 'language'
-
framework
Explicitly specify the framework that the function will use, i.e. classifier, jython, or python. If omitted, a suitable default will be chosen based on the
location
file extension.
-
-
Constructor Details
-
MetadataParams
public MetadataParams()
-
-
Method Details
-
locationEndsWith
-
toFunctionMetadata
Turns the given parameters into a
FunctionMetadata
.
-