Class AbstractOpenAPIOptions
java.lang.Object
org.brapi.schematools.core.options.AbstractGeneratorSubOptions
org.brapi.schematools.core.openapi.generator.options.AbstractOpenAPIOptions
- All Implemented Interfaces:
Options,Validatable
- Direct Known Subclasses:
DeleteOptions,ListGetOptions,PostOptions,PutOptions,SearchOptions,SingleGetOptions
Provides general options for the generation of Endpoints
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringgetSummaryFor(@NonNull String name) Gets the summary for a specific primary modelfinal StringgetSummaryFor(@NonNull BrAPIType type) Gets the summary for a specific primary modelvoidoverride(AbstractOpenAPIOptions 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.options.AbstractGeneratorSubOptions
getDescriptionFor, getDescriptionFor, isGenerating, isGeneratingFor, isGeneratingFor, override, setGenerateFor, setGenerateFor
-
Constructor Details
-
AbstractOpenAPIOptions
public AbstractOpenAPIOptions()
-
-
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 classAbstractGeneratorSubOptions- 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
-
getSummaryFor
Gets the summary for a specific primary model- Parameters:
name- the name of the primary model- Returns:
- the summary for a specific primary model
-
getSummaryFor
Gets the summary for a specific primary model- Parameters:
type- the primary model- Returns:
- the summary for a specific primary model
-