Annotation Type GraphQLInputParameters
@Retention(RUNTIME)
@Target({FIELD,METHOD})
public @interface GraphQLInputParameters
This class indicates that this field has at least one input parameter. It can be associated with field (for concrete
classes) or setter methods (for interfaces).
- Author:
- etienne-sf
-
Required Element Summary
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean[]
itemsMandatory
Contains for each input parameters named innames()
, true if this parameter is a list and its items are mandatory (according to GraphQL list's specification), and false otherwise.int[]
listDepths
Contains for each input parameters named innames()
, 0 if this parameter is not a list, and a positive number if this input parameter is a list (2, for instance for [[Int]]).boolean[]
mandatories
Contains for each input parameters named innames()
, true if this parameter is mandatory, and false otherwise.
-
Element Details
-
names
java.lang.String[] namesContains the list of the names for each of the input parameters of this field. It must contain at least one item (as this annotation indicates that this field has input parameter(s), and must have the same number of items astypes()
. The nth name this list, must be linked to the nth type in thetypes()
list.- Returns:
-
types
java.lang.String[] typesContains the list of the types for each of the input parameters of this field. It must contain at least one item (as this annotation indicates that this field has input parameter(s), and must have the same number of items asnames()
. The nth type this list, must be linked to the nth name in thenames()
list.- Returns:
-
-
-
mandatories
boolean[] mandatoriesContains for each input parameters named innames()
, true if this parameter is mandatory, and false otherwise. It must contain at least one item (as this annotation indicates that this field has input parameter(s), and must have the same number of items asnames()
. The nth type this list, must be linked to the nth name in thenames()
list.- Returns:
- Default:
- {}
-
listDepths
int[] listDepthsContains for each input parameters named innames()
, 0 if this parameter is not a list, and a positive number if this input parameter is a list (2, for instance for [[Int]]). It must contain at least one item (as this annotation indicates that this field has input parameter(s), and must have the same number of items asnames()
. The nth type this list, must be linked to the nth name in thenames()
list.- Returns:
- Default:
- {}
-
itemsMandatory
boolean[] itemsMandatoryContains for each input parameters named innames()
, true if this parameter is a list and its items are mandatory (according to GraphQL list's specification), and false otherwise. It must contain at least one item (as this annotation indicates that this field has input parameter(s), and must have the same number of items asnames()
. The nth type this list, must be linked to the nth name in thenames()
list.- Returns:
- Default:
- {}
-