public class ScriptFileType
extends java.lang.Object
ScriptFileType
defined in the Spring
context will be registered with the ScriptRepoHelper
.Constructor and Description |
---|
ScriptFileType(java.lang.String pattern,
java.lang.String mimetype) |
ScriptFileType(java.lang.String pattern,
java.lang.String mimetype,
java.lang.String launcher,
java.lang.String process) |
Modifier and Type | Method and Description |
---|---|
org.apache.commons.io.filefilter.IOFileFilter |
getFileFilter()
A file-pattern (most likely of the form "*.EXT") which will be used
to determine if a file is of this type.
|
java.lang.String |
getLauncher()
Return the name of the launcher (".
|
java.lang.String |
getMimetype()
Returns the mimetype that must be set on an original file instance
in order to be considered of this type.
|
java.lang.String |
getProcess()
Return the import name of the process class which will be used
to invoke scripts of this type.
|
boolean |
isInert()
Returns
true if the script type cannot be executed,
false otherwise. |
boolean |
setMimetype(OriginalFile ofile)
Sets the mimetype on the given
OriginalFile
if the name field matches the wildcard pattern
for this instance. |
public ScriptFileType(java.lang.String pattern, java.lang.String mimetype)
public ScriptFileType(java.lang.String pattern, java.lang.String mimetype, java.lang.String launcher, java.lang.String process)
public boolean isInert()
true
if the script type cannot be executed,
false
otherwise.public java.lang.String getMimetype()
getFileFilter()
.public org.apache.commons.io.filefilter.IOFileFilter getFileFilter()
getMimetype()
.public java.lang.String getLauncher()
public java.lang.String getProcess()
public boolean setMimetype(OriginalFile ofile)
OriginalFile
if the name field matches the wildcard pattern
for this instance.
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.