public class ScriptTypes
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static short |
GROOVY
Used for Groovy scripts.
|
static short |
JAVASCRIPT
Used for Javascript scripts.
|
static short |
PYTHON
Used for Python scripts.
|
static short |
RUBY
Used for Ruby scripts.
|
static short |
UNDEFINED
Used for an undefined script type.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getDefaultMIME()
Return the default MIME type.
|
static short |
getScriptType(java.lang.String mime)
Return the script type for a MIME type.
|
static short |
getScriptType(java.lang.String mime,
org.scripthelper.model.ScriptSource source)
Return the script type for a File.
|
public static final short UNDEFINED
public static final short JAVASCRIPT
public static final short GROOVY
public static final short RUBY
public static final short PYTHON
public static java.lang.String getDefaultMIME()
public static short getScriptType(java.lang.String mime, org.scripthelper.model.ScriptSource source)
mime
- the mime typesource
- the ScriptSourcepublic static short getScriptType(java.lang.String mime)
mime
- the MIME typeCopyright © 2008-2020 Herve Girod. All Rights Reserved. Documentation and source under the LGPL licence