Class SearchOptions
java.lang.Object
org.brapi.schematools.core.options.AbstractGeneratorSubOptions
org.brapi.schematools.core.openapi.generator.options.AbstractOpenAPIOptions
org.brapi.schematools.core.openapi.generator.options.SearchOptions
- All Implemented Interfaces:
Options,Validatable
Provides options for the generation of Search Post and Get Endpoints
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringGets the retrieve description for a specific primary modelfinal StringGets the submit description for a specific primary modelvoidoverride(SearchOptions 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.openapi.generator.options.AbstractOpenAPIOptions
getSummaryFor, getSummaryFor, overrideMethods inherited from class org.brapi.schematools.core.options.AbstractGeneratorSubOptions
getDescriptionFor, getDescriptionFor, isGenerating, isGeneratingFor, isGeneratingFor, override, setGenerateFor, setGenerateFor
-
Constructor Details
-
SearchOptions
public SearchOptions()
-
-
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 classAbstractOpenAPIOptions- 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
-
getSubmitDescriptionFormat
Gets the submit description for a specific primary model- Parameters:
type- the primary model- Returns:
- the submit description for a specific primary model
-
getRetrieveDescriptionFormat
Gets the retrieve description for a specific primary model- Parameters:
type- the primary model- Returns:
- the retrieve description for a specific primary model
-