fr.ifremer.isisfish.ui.script
Enum ScriptAction.ScriptMapping

java.lang.Object
  extended by java.lang.Enum<ScriptAction.ScriptMapping>
      extended by fr.ifremer.isisfish.ui.script.ScriptAction.ScriptMapping
All Implemented Interfaces:
Serializable, Comparable<ScriptAction.ScriptMapping>
Enclosing class:
ScriptAction

protected static enum ScriptAction.ScriptMapping
extends Enum<ScriptAction.ScriptMapping>

enum to encapsulate a script module


Enum Constant Summary
AnalysePlan
           
EquationModel
           
Export
           
Rule
           
Script
           
Sensitivity
           
SensitivityExport
           
Simulator
           
 
Field Summary
protected  File module
           
protected  String templatePath
           
 
Method Summary
static ScriptAction.ScriptMapping getMappingFor(File file)
          Get script type for script path.
 File getModule()
           
 String getTemplatePath()
           
static ScriptAction.ScriptMapping valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ScriptAction.ScriptMapping[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Script

public static final ScriptAction.ScriptMapping Script

Simulator

public static final ScriptAction.ScriptMapping Simulator

Export

public static final ScriptAction.ScriptMapping Export

Rule

public static final ScriptAction.ScriptMapping Rule

AnalysePlan

public static final ScriptAction.ScriptMapping AnalysePlan

Sensitivity

public static final ScriptAction.ScriptMapping Sensitivity

SensitivityExport

public static final ScriptAction.ScriptMapping SensitivityExport

EquationModel

public static final ScriptAction.ScriptMapping EquationModel
Field Detail

module

protected File module

templatePath

protected String templatePath
Method Detail

values

public static ScriptAction.ScriptMapping[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ScriptAction.ScriptMapping c : ScriptAction.ScriptMapping.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ScriptAction.ScriptMapping valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getMappingFor

public static ScriptAction.ScriptMapping getMappingFor(File file)
Get script type for script path.

Parameters:
file - file to get type
Returns:
ScriptMapping type

getModule

public File getModule()

getTemplatePath

public String getTemplatePath()


Copyright © 1999-2010 CodeLutin. All Rights Reserved.