Class CreateMutationOptions
java.lang.Object
org.brapi.schematools.core.options.AbstractGeneratorSubOptions
org.brapi.schematools.core.graphql.options.AbstractGraphQLOptions
org.brapi.schematools.core.graphql.options.CreateMutationOptions
- All Implemented Interfaces:
Options,Validatable
Provides options for the generation of New Mutations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines if the mutation accepts multiple object or just onevoidoverride(CreateMutationOptions overrideOptions) Overrides the values in this Options Object from the provided Options Object if they are non-nullvalidate()Checks if the current options are valid, return a list of errors if the options are not validMethods inherited from class org.brapi.schematools.core.graphql.options.AbstractGraphQLOptions
getNameFor, getNameFor, isPluralisingName, overrideMethods inherited from class org.brapi.schematools.core.options.AbstractGeneratorSubOptions
getDescriptionFor, getDescriptionFor, isGenerating, isGeneratingFor, isGeneratingFor, override, setGenerateFor, setGenerateFor
-
Constructor Details
-
CreateMutationOptions
public CreateMutationOptions()
-
-
Method Details
-
validate
Description copied from class:AbstractGeneratorSubOptionsChecks if the current options are valid, return a list of errors if the options are not valid- Specified by:
validatein interfaceValidatable- Overrides:
validatein classAbstractGraphQLOptions- Returns:
- a Validation object than can be used queried to find if the options are valid and any errors if the options are not valid
-
override
Overrides the values in this Options Object from the provided Options Object if they are non-null- Parameters:
overrideOptions- the options which will be used to override this Options Object
-
isMultiple
public boolean isMultiple()Determines if the mutation accepts multiple object or just one- Returns:
trueif the mutation accepts multiple object,falseis the mutation accepts just one object
-