Package com.appliedolap.essbase
Enum Class EssScript.ScriptType
- All Implemented Interfaces:
Serializable,Comparable<EssScript.ScriptType>,Constable
- Enclosing interface:
- EssScript
Which kind of script this is, which decides both the endpoint's
file parameter and how
the script is run.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionThe file extension Essbase stores the script under.getLabel()The kind as a person would write it.The value the scripts endpoints want infile.static EssScript.ScriptTypestatic EssScript.ScriptTypeReturns the enum constant of this class with the specified name.static EssScript.ScriptType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CALC
A calculation script. -
MDX
An MDX script.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getParameter
The value the scripts endpoints want infile. Sending anything else - including an empty string, which is what a Swagger UI form does with a blank field - is rejected with "Invalid file type. Supported files are Calculation and MDX scripts".- Returns:
- the parameter value
-
getExtension
The file extension Essbase stores the script under. Needed because running an MDX script identifies it by file name rather than by script name - seeEssScript.execute().- Returns:
- the extension, dot included
-
getLabel
The kind as a person would write it. -
parse
-