Package io.serverlessworkflow.api
Enum WorkflowFormat
- java.lang.Object
-
- java.lang.Enum<WorkflowFormat>
-
- io.serverlessworkflow.api.WorkflowFormat
-
- All Implemented Interfaces:
Serializable
,Comparable<WorkflowFormat>
public enum WorkflowFormat extends Enum<WorkflowFormat>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WorkflowFormat
fromFileName(String fileName)
static WorkflowFormat
fromPath(Path path)
com.fasterxml.jackson.databind.ObjectMapper
mapper()
static WorkflowFormat
valueOf(String name)
Returns the enum constant of this type with the specified name.static WorkflowFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JSON
public static final WorkflowFormat JSON
-
YAML
public static final WorkflowFormat YAML
-
-
Method Detail
-
values
public static WorkflowFormat[] 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 (WorkflowFormat c : WorkflowFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WorkflowFormat 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 nameNullPointerException
- if the argument is null
-
fromPath
public static WorkflowFormat fromPath(Path path)
-
fromFileName
public static WorkflowFormat fromFileName(String fileName)
-
mapper
public com.fasterxml.jackson.databind.ObjectMapper mapper()
-
-