Class InputParser
java.lang.Object
no.sikt.graphitron.generators.context.InputParser
A helper class for handling input type data for services and mutations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanboolean
-
Constructor Details
-
InputParser
-
-
Method Details
-
getMethodInputs
- Returns:
- Map of inputs that the field specifies.
-
getMethodInputNames
- Returns:
- List of input names that the field specifies.
-
getMethodInputsWithOrderField
- Returns:
- Map of inputs that the field specifies.
-
getRecords
- Returns:
- Map of inputs that the field specifies that correspond to any records.
-
getJOOQRecords
- Returns:
- Map of inputs that the field specifies that correspond to jOOQ records.
-
hasRecords
public boolean hasRecords()- Returns:
- Are there any records among the inputs?
-
hasJOOQRecords
public boolean hasJOOQRecords()- Returns:
- Are there any jOOQ records among the inputs?.
-
getInputParamString
- Returns:
- The inputs this service will require formatted as a comma separated string.
-
getAllErrors
- Returns:
- List of all error types this operation has specified in the schema.
-
getValidationErrorException
- Returns:
- ExceptionDefinition used for validation errors. If it's configured and present in the schema as a returnable error for this operation.
-