public abstract class ScriptParameter extends Object
Constructor and Description |
---|
ScriptParameter()
Creates a new empty code
|
ScriptParameter(ScriptParameter other)
Copies the code
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getCode() |
String |
getCode(Path workDirectory)
Gets the code.
|
OptionalPathParameter |
getExternalScriptFile() |
abstract ScriptLanguage |
getLanguage()
The language info.
|
abstract String |
getLanguageName()
Returns the human-readable name of the language
|
abstract String |
getMimeType()
Returns the MIME type of this script
|
int |
hashCode() |
boolean |
isCollapsed() |
void |
makeExternalScriptFileRelative(Path workDirectory)
Converts the external script file reference into a relative path
|
void |
setCode(String code) |
void |
setCollapsed(boolean collapsed) |
void |
setExternalScriptFile(OptionalPathParameter externalScriptFile) |
public ScriptParameter()
public ScriptParameter(ScriptParameter other)
other
- the originalpublic String getCode()
public void setCode(String code)
public String getCode(Path workDirectory)
workDirectory
- the work directorypublic void makeExternalScriptFileRelative(Path workDirectory)
workDirectory
- the current work directorypublic abstract String getMimeType()
public abstract String getLanguageName()
public boolean isCollapsed()
public void setCollapsed(boolean collapsed)
public OptionalPathParameter getExternalScriptFile()
public void setExternalScriptFile(OptionalPathParameter externalScriptFile)
public abstract ScriptLanguage getLanguage()
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.