public class ScriptFileType extends Object
ScriptFileType
defined in the Spring
context will be registered with the ScriptRepoHelper
.Constructor and Description |
---|
ScriptFileType(String pattern,
String mimetype) |
ScriptFileType(String pattern,
String mimetype,
String launcher,
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.
|
String |
getLauncher()
Return the name of the launcher (".
|
String |
getMimetype()
Returns the mimetype that must be set on an original file instance
in order to be considered of this type.
|
String |
getProcess()
Return the import name of the process class which will be used
to invoke scripts of this type.
|
boolean |
setMimetype(OriginalFile ofile)
Sets the mimetype on the given
OriginalFile
if the name field matches the wildcard pattern
for this instance. |
public String getMimetype()
getFileFilter()
.public org.apache.commons.io.filefilter.IOFileFilter getFileFilter()
getMimetype()
.public String getLauncher()
public String getProcess()
public boolean setMimetype(OriginalFile ofile)
OriginalFile
if the name field matches the wildcard pattern
for this instance.
Version: 5.2.8-ice35-b57
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.