Package org.brapi.schematools.analyse
Class APIRequestOptions
java.lang.Object
org.brapi.schematools.analyse.APIRequestOptions
- All Implemented Interfaces:
org.brapi.schematools.core.options.Options,org.brapi.schematools.core.validiation.Validatable
Provides API Request options for the analysis of endpoints
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPrerequisitesFor(String name) Gets the prerequisites for a specific primary model.Gets the required parameters for a specific primary model.isAnalysingEntity(String name) Gets if to analysis for a specific primary mode.voidoverride(APIRequestOptions overrideOptions) Overrides the values in this Options Object from the provided Options Object if they are non-nullsetAnalysingEntityFor(String name, Boolean analyse) Sets if to do analysis for a specific primary model.setPrerequisitesFor(String name, List<String> requiredParameters) Sets the prerequisites for a specific primary model.setRequiredParametersFor(String name, List<Parameter> requiredParameters) Sets the required parameters for a specific primary model.org.brapi.schematools.core.validiation.Validationvalidate()
-
Constructor Details
-
APIRequestOptions
public APIRequestOptions()
-
-
Method Details
-
validate
public org.brapi.schematools.core.validiation.Validation validate()- Specified by:
validatein interfaceorg.brapi.schematools.core.validiation.Validatable
-
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
-
isAnalysingEntity
Gets if to analysis for a specific primary mode. UsesetAnalysingEntityFor(String, Boolean)to override this value.- Parameters:
name- the name of the primary model- Returns:
- property name for a specific primary model
-
setAnalysingEntityFor
Sets if to do analysis for a specific primary model.- Parameters:
name- the name of the primary modelanalyse-trueif to do analyse for this model,falseotherwise- Returns:
- the options for chaining
-
getRequiredParametersFor
Gets the required parameters for a specific primary model. UsesetRequiredParametersFor(String, List)to override this value.- Parameters:
name- the name of the primary model- Returns:
- the required parameters for a specific primary model
-
setRequiredParametersFor
Sets the required parameters for a specific primary model.- Parameters:
name- the name of the primary modelrequiredParameters- the required parameters for a specific primary model- Returns:
- the options for chaining
-
getPrerequisitesFor
Gets the prerequisites for a specific primary model. UsesetPrerequisitesFor(String, List)to override this value.- Parameters:
name- the name of the primary model- Returns:
- the required parameters a specific primary model
-
setPrerequisitesFor
Sets the prerequisites for a specific primary model.- Parameters:
name- the name of the primary modelrequiredParameters- the prerequisites for a specific primary model- Returns:
- the options for chaining
-