Class ListGetOptions
java.lang.Object
org.brapi.schematools.core.options.AbstractGeneratorSubOptions
org.brapi.schematools.core.openapi.generator.options.AbstractOpenAPIOptions
org.brapi.schematools.core.openapi.generator.options.ListGetOptions
- All Implemented Interfaces:
Options,Validatable
Provides options for the generation of List Get Endpoints
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasInputFor(String name) Determines if the List Endpoint is has an input for any primary model.booleanhasInputFor(BrAPIType type) Determines if the List Endpoint has an input for any primary model.booleanisPagedFor(String name) Determines if the List Endpoint is paged for any primary model.booleanisPagedFor(BrAPIType type) Determines if the List Endpoint is paged for any primary model.booleanisUsingPropertyFromRequestFor(BrAPIObjectType type, BrAPIObjectProperty property) Gets whether a property from the Request is used in the List queryvoidoverride(ListGetOptions overrideOptions) Overrides the values in this Options Object from the provided Options Object if they are non-nullsetInputFor(String name, boolean generate) Sets if the Endpoint has an input for a specific primary model.setInputFor(BrAPIType type, boolean generate) Sets if the Endpoint has an input for a specific primary model.setPagingFor(String name, boolean generate) Sets if the Endpoint is paged for a specific primary model.setPagingFor(BrAPIType type, boolean generate) Sets if the Endpoint is paged for a specific primary model.setUsingPropertyFromRequestFor(BrAPIObjectType type, BrAPIObjectProperty property, Boolean propertiesFromRequest) Gets whether a property from the Request is used in the List queryvalidate()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, setGenerateForMethods 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
-
ListGetOptions
public ListGetOptions()
-
-
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
-
isPagedFor
Determines if the List Endpoint is paged for any primary model. Returnstrueifpagedis set totruefor any type or usespagedDefault- Parameters:
name- the name of the primary model- Returns:
trueif the List Endpoint is paged for any primary model,falseotherwise
-
isPagedFor
Determines if the List Endpoint is paged for any primary model. Returnstrueifpagedis set totruefor any type or usespagedDefault- Parameters:
type- the primary model- Returns:
trueif the List Endpoint is paged for any primary model,falseotherwise
-
setPagingFor
Sets if the Endpoint is paged for a specific primary model.- Parameters:
name- the name of the primary modelgenerate-trueif the Endpoint is paged for a specific primary model,false- Returns:
- the options for chaining
-
setPagingFor
Sets if the Endpoint is paged for a specific primary model.- Parameters:
type- the primary modelgenerate-trueif the Endpoint is paged for a specific primary model,false- Returns:
- the options for chaining
-
hasInputFor
Determines if the List Endpoint is has an input for any primary model. ReturnstrueifinputForis set totruefor the primary model- Parameters:
name- the name of the primary model- Returns:
trueif the List Endpoint has an input for the primary model,falseotherwise
-
hasInputFor
Determines if the List Endpoint has an input for any primary model. ReturnstrueifinputForis set totruefor the primary model- Parameters:
type- the primary model- Returns:
trueif the List Endpoint has an input for the primary model,falseotherwise
-
setInputFor
Sets if the Endpoint has an input for a specific primary model.- Parameters:
name- the name of the primary modelgenerate-trueif the Endpoint has an input for a specific primary model,false- Returns:
- the options for chaining
-
setInputFor
Sets if the Endpoint has an input for a specific primary model.- Parameters:
type- the primary modelgenerate-trueif the Endpoint has an input for a specific primary model,false- Returns:
- the options for chaining
-
isUsingPropertyFromRequestFor
Gets whether a property from the Request is used in the List query- Parameters:
type- The BrAPI Object typeproperty- The BrAPI property- Returns:
trueif the property from the Request is used in the List query
-
setUsingPropertyFromRequestFor
public ListGetOptions setUsingPropertyFromRequestFor(BrAPIObjectType type, BrAPIObjectProperty property, Boolean propertiesFromRequest) Gets whether a property from the Request is used in the List query- Parameters:
type- The BrAPI Object typeproperty- The BrAPI propertypropertiesFromRequest-trueif the property from the Request is used in the List query- Returns:
- the options for chaining
-