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>
- Enclosing class:
- InputParameter
public static enum InputParameter.InputParameterType extends java.lang.Enum<InputParameter.InputParameterType>
Indicates the kind of parameter
-
-
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
All Methods Static Methods Concrete Methods 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 Detail
-
HARD_CODED
public static final InputParameter.InputParameterType HARD_CODED
ForInputParameterwhich value is given in the request being parsed
-
MANDATORY
public static final InputParameter.InputParameterType MANDATORY
A mandatoryInputParameter, that is one which declaration starts with a '&'
-
OPTIONAL
public static final InputParameter.InputParameterType OPTIONAL
An optionalInputParameter, that is one which declaration starts with a '?'
-
GRAPHQL_VALUE
public static final InputParameter.InputParameterType GRAPHQL_VALUE
A GraphQL value provided in the request being parsed
-
GRAPHQL_VARIABLE
public static final InputParameter.InputParameterType GRAPHQL_VARIABLE
A GraphQL variable, marked by a '$', that will be transmitted to the server in the variables json attribute of the request
-
-
Method Detail
-
values
public static InputParameter.InputParameterType[] 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 (InputParameter.InputParameterType c : InputParameter.InputParameterType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InputParameter.InputParameterType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-