Class InputOptions
java.lang.Object
org.brapi.schematools.core.graphql.options.InputOptions
- All Implemented Interfaces:
Options,Validatable
The options used to generate Input object types
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringgetNameFor(@NonNull String name) Gets the name of the input parameter for a specific primary modelfinal StringgetNameFor(@NonNull BrAPIType type) Gets the name of input parameter for a specific primary modelfinal StringgetTypeNameFor(@NonNull String name) Gets the type name of the input for a specific primary modelfinal StringgetTypeNameFor(@NonNull BrAPIType type) Gets the type name of the input for a specific primary modelfinal StringgetTypeNameForQuery(@NonNull String queryName) Gets the type name of the input for a queryvoidoverride(InputOptions overrideOptions) Overrides the values in this Options Object from the provided Options Object if they are non-nullvalidate()Checks if the Validatable object is valid, return a list of errors if it is not validMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.brapi.schematools.core.options.Options
getSchemaToolsVersion
-
Constructor Details
-
InputOptions
public InputOptions()
-
-
Method Details
-
validate
Description copied from interface:ValidatableChecks if the Validatable object is valid, return a list of errors if it is not valid- Specified by:
validatein interfaceValidatable- Returns:
- a Validation object than can be used queried to find if the object is valid and any errors if it is 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
-
getNameFor
Gets the name of the input parameter for a specific primary model- Parameters:
name- the name of the primary model- Returns:
- the name of the input parameter for a specific primary model
-
getNameFor
Gets the name of input parameter for a specific primary model- Parameters:
type- the primary model- Returns:
- the name of the input parameter for a specific primary model
-
getTypeNameFor
Gets the type name of the input for a specific primary model- Parameters:
name- the name of the primary model- Returns:
- the type name of the input for a specific primary model
-
getTypeNameFor
Gets the type name of the input for a specific primary model- Parameters:
type- the primary model- Returns:
- the type name of the input for a specific primary model
-
getTypeNameForQuery
Gets the type name of the input for a query- Parameters:
queryName- the name of the query- Returns:
- the type name of the input for a query
-