Enum InputParameter.InputParameterType
java.lang.Object
java.lang.Enum<InputParameter.InputParameterType>
com.graphql_java_generator.client.request.InputParameter.InputParameterType
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<InputParameter.InputParameterType>,java.lang.constant.Constable
- Enclosing class:
- InputParameter
public static enum InputParameter.InputParameterType extends java.lang.Enum<InputParameter.InputParameterType>
Indicates the kind of parameter
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description GRAPHQL_VALUEA GraphQL value provided in the request being parsedGRAPHQL_VARIABLEA GraphQL variable, marked by a '$', that will be transmitted to the server in the variables json attribute of the requestHARD_CODEDForInputParameterwhich value is given in the request being parsedMANDATORYA mandatoryInputParameter, that is one which declaration starts with a '&'OPTIONALAn optionalInputParameter, that is one which declaration starts with a '?' -
Method Summary
Modifier and Type Method Description static InputParameter.InputParameterTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static InputParameter.InputParameterType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HARD_CODED
ForInputParameterwhich value is given in the request being parsed -
MANDATORY
A mandatoryInputParameter, that is one which declaration starts with a '&' -
OPTIONAL
An optionalInputParameter, that is one which declaration starts with a '?' -
GRAPHQL_VALUE
A GraphQL value provided in the request being parsed -
GRAPHQL_VARIABLE
A GraphQL variable, marked by a '$', that will be transmitted to the server in the variables json attribute of the request
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-