Class InputOptions

java.lang.Object
org.brapi.schematools.core.graphql.options.InputOptions
All Implemented Interfaces:
Options, Validatable

public class InputOptions extends Object implements Options
The options used to generate Input object types
  • Constructor Details

    • InputOptions

      public InputOptions()
  • Method Details

    • validate

      public Validation validate()
      Description copied from interface: Validatable
      Checks if the Validatable object is valid, return a list of errors if it is not valid
      Specified by:
      validate in interface Validatable
      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

      public void override(InputOptions overrideOptions)
      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

      public final String getNameFor(@NonNull @NonNull String name)
      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

      public final String getNameFor(@NonNull @NonNull BrAPIType type)
      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

      public final String getTypeNameFor(@NonNull @NonNull String name)
      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

      public final String getTypeNameFor(@NonNull @NonNull BrAPIType type)
      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

      public final String getTypeNameForQuery(@NonNull @NonNull String queryName)
      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