Enum FunctionDefinition.Type
- java.lang.Object
-
- java.lang.Enum<FunctionDefinition.Type>
-
- io.serverlessworkflow.api.functions.FunctionDefinition.Type
-
- All Implemented Interfaces:
Serializable,Comparable<FunctionDefinition.Type>
- Enclosing class:
- FunctionDefinition
public static enum FunctionDefinition.Type extends Enum<FunctionDefinition.Type>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FunctionDefinition.TypefromValue(String value)StringtoString()Stringvalue()static FunctionDefinition.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static FunctionDefinition.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REST
public static final FunctionDefinition.Type REST
-
ASYNCAPI
public static final FunctionDefinition.Type ASYNCAPI
-
RPC
public static final FunctionDefinition.Type RPC
-
GRAPHQL
public static final FunctionDefinition.Type GRAPHQL
-
ODATA
public static final FunctionDefinition.Type ODATA
-
EXPRESSION
public static final FunctionDefinition.Type EXPRESSION
-
CUSTOM
public static final FunctionDefinition.Type CUSTOM
-
-
Method Detail
-
values
public static FunctionDefinition.Type[] 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 (FunctionDefinition.Type c : FunctionDefinition.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FunctionDefinition.Type 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
-
toString
public String toString()
- Overrides:
toStringin classEnum<FunctionDefinition.Type>
-
value
public String value()
-
fromValue
public static FunctionDefinition.Type fromValue(String value)
-
-