Class AbstractGeneratorOptions
java.lang.Object
org.brapi.schematools.core.options.AbstractGeneratorOptions
- All Implemented Interfaces:
Options,Validatable
- Direct Known Subclasses:
GraphQLGeneratorOptions,OpenAPIGeneratorOptions
Abstract class for all Generator Options
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringgetPluralFor(@NonNull String name) Gets the Pluralised name for a specific Primary Model.final StringgetPluralFor(@NonNull BrAPIType type) Gets the pluralised name for a specific Primary Model.voidoverride(AbstractGeneratorOptions overrideOptions) Overrides the values in this Options Object from the provided Options Object if they are non-nullsetPluralFor(String name, String pluralisedName) Sets the pluralised name for a specific primary model.Methods 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
getSchemaToolsVersionMethods inherited from interface org.brapi.schematools.core.validiation.Validatable
validate
-
Constructor Details
-
AbstractGeneratorOptions
public AbstractGeneratorOptions()
-
-
Method Details
-
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
-
getPluralFor
Gets the Pluralised name for a specific Primary Model. For example plural name of Study, would be 'Studies' by default. UsesetPluralFor(java.lang.String, java.lang.String)to override this value.- Parameters:
name- the name of the Primary Model- Returns:
- the pluralised name for a specific Primary Model
-
getPluralFor
Gets the pluralised name for a specific Primary Model. For example plural name of Study, would be 'Studies' by default. UsesetPluralFor(java.lang.String, java.lang.String)to override this value.- Parameters:
type- the Primary Model- Returns:
- the pluralised name for a specific Primary Model
-
setPluralFor
Sets the pluralised name for a specific primary model. For example the id parameter (or field) name of Study, would be 'studyDbiId' by default.- Parameters:
name- the name of the primary modelpluralisedName- the pluralised name for a specific primary model.- Returns:
- the options for chaining
-