Package org.openapitools.codegen
Class CodegenModel
- java.lang.Object
-
- org.openapitools.codegen.CodegenModel
-
- All Implemented Interfaces:
IJsonSchemaValidationProperties
- Direct Known Subclasses:
TypeScriptFetchClientCodegen.ExtendedCodegenModel
public class CodegenModel extends Object implements IJsonSchemaValidationProperties
CodegenModel represents a schema object in a OpenAPI document.
-
-
Field Summary
Fields Modifier and Type Field Description String
additionalPropertiesType
The type of the value for the additionalProperties keyword in the OAS document.Set<String>
allMandatory
Set<String>
allOf
Map<String,Object>
allowableValues
List<String>
allParents
List<CodegenProperty>
allVars
Set<String>
anyOf
String
arrayModelType
List<CodegenModel>
children
String
classFilename
String
classname
String
classVarName
String
dataType
String
defaultValue
String
description
CodegenDiscriminator
discriminator
-- GETTER -- Returns the discriminator for this schema object, or null if no discriminator has been specified.boolean
emptyVars
io.swagger.v3.oas.models.ExternalDocumentation
externalDocumentation
boolean
hasChildren
boolean
hasEnums
boolean
hasMoreModels
boolean
hasOnlyReadOnly
Indicates the all properties of the type are read-only.boolean
hasOptional
Indicates the type has at least one optional property.boolean
hasReadOnly
Indicates the type has at least one read-only property.boolean
hasRequired
Indicates the type has at least one required property.boolean
hasValidation
boolean
hasVars
Set<String>
imports
List<CodegenModel>
interfaceModels
List<String>
interfaces
boolean
isAdditionalPropertiesTrue
True if additionalProperties is set to true (boolean value), any type, free form object, etc TODO: we may rename this to isAdditionalPropertiesEnabled or something else to avoid confusionsboolean
isAlias
boolean
isArray
boolean
isBoolean
boolean
isDate
boolean
isDateTime
boolean
isDecimal
boolean
isDeprecated
Indicates the OAS schema specifies "deprecated: true".boolean
isDouble
boolean
isEnum
boolean
isFloat
boolean
isFreeFormObject
boolean
isInteger
boolean
isLong
boolean
isMap
boolean
isNull
boolean
isNullable
Indicates the OAS schema specifies "nullable: true".boolean
isNumber
boolean
isNumeric
boolean
isOptional
datatype is the generic inner parameter of a std::optional for C++, or Optional (Java)boolean
isPrimitiveType
boolean
isShort
boolean
isString
boolean
isUnboundedInteger
boolean
isVoid
Set<String>
mandatory
String
modelJson
String
name
List<CodegenProperty>
nonNullableVars
Set<String>
oneOf
List<CodegenProperty>
optionalVars
String
parent
CodegenModel
parentModel
List<CodegenProperty>
parentRequiredVars
String
parentSchema
List<CodegenProperty>
parentVars
List<CodegenProperty>
readOnlyVars
List<CodegenProperty>
readWriteVars
List<CodegenProperty>
requiredVars
String
schemaName
HashMap<String,SchemaTestCase>
testCases
String
title
String
unescapedDescription
List<CodegenProperty>
vars
Map<String,Object>
vendorExtensions
String
xmlName
String
xmlNamespace
String
xmlPrefix
-
Constructor Summary
Constructors Constructor Description CodegenModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDiscriminatorMappedModelsImports(boolean cleanUpMappedModels)
boolean
equals(Object o)
CodegenProperty
getAdditionalProperties()
boolean
getAdditionalPropertiesIsAnyType()
CodegenComposedSchemas
getComposedSchemas()
CodegenProperty
getContains()
LinkedHashMap<String,List<String>>
getDependentRequired()
String
getDiscriminatorName()
Returns the name of the discriminator property for this schema in the OpenAPI document.boolean
getExclusiveMaximum()
boolean
getExclusiveMinimum()
String
getFormat()
boolean
getHasDiscriminatorWithNonEmptyMapping()
boolean
getHasItems()
boolean
getHasMultipleTypes()
boolean
getHasRequired()
boolean
getHasValidation()
boolean
getHasVars()
boolean
getIsAnyType()
boolean
getIsArray()
boolean
getIsBinary()
boolean
getIsBoolean()
boolean
getIsBooleanSchemaFalse()
boolean
getIsBooleanSchemaTrue()
boolean
getIsByteArray()
boolean
getIsClassnameSanitized()
Return true if the classname property is sanitized, false if it is the same as the OpenAPI schema name.boolean
getIsDate()
boolean
getIsDateTime()
boolean
getIsDecimal()
boolean
getIsDouble()
boolean
getIsEnum()
boolean
getIsFloat()
boolean
getIsFreeFormObject()
boolean
getIsInteger()
boolean
getIsLong()
boolean
getIsMap()
boolean
getIsModel()
boolean
getIsNull()
boolean
getIsNumber()
boolean
getIsOptional()
Tells if the datatype is a generic inner parameter of astd::optional
for C++, orOptional
(Java)
to resolve cases (detected in issue #6726) where :
-categoryOneOf
is a parameter of classGetAccountVideos_categoryOneOf_parameter
, a model parameter that correctly prefixed by its namespace:org::openapitools::server::model::GetAccountVideos_categoryOneOf_parameter
- but thatGetAccountVideos_categoryOneOf_parameter
class is inside anstd::optional
Then a correct generation of that parameter can be (for C++)const std::optional<org::openapitools::server::model::GetAccountVideos_categoryOneOf_parameter> &categoryOneOf
but using #isModel alone without #isOptional in mustache might produceconst org::openapitools::server::model::std::optional<org::openapitools::server::model::GetAccountVideos_categoryOneOf_parameter> &categoryOneOf
instead, that do not compile.boolean
getIsPrimitiveType()
boolean
getIsShort()
boolean
getIsString()
boolean
getIsUnboundedInteger()
boolean
getIsUri()
boolean
getIsUuid()
boolean
getIsVoid()
CodegenProperty
getItems()
String
getMaximum()
Integer
getMaxItems()
Integer
getMaxLength()
Integer
getMaxProperties()
String
getMinimum()
Integer
getMinItems()
Integer
getMinLength()
Integer
getMinProperties()
Number
getMultipleOf()
String
getPattern()
String
getRef()
List<CodegenProperty>
getRequiredVars()
Map<String,CodegenProperty>
getRequiredVarsMap()
boolean
getSchemaIsFromAdditionalProperties()
boolean
getUniqueItems()
Boolean
getUniqueItemsBoolean()
List<CodegenProperty>
getVars()
int
hashCode()
void
removeAllDuplicatedProperty()
Remove duplicated properties in all variable listvoid
removeSelfReferenceImport()
Remove self reference importvoid
setAdditionalProperties(CodegenProperty additionalProperties)
void
setAdditionalPropertiesIsAnyType(boolean additionalPropertiesIsAnyType)
void
setComposedSchemas(CodegenComposedSchemas composedSchemas)
void
setContains(CodegenProperty contains)
void
setDependentRequired(LinkedHashMap<String,List<String>> dependentRequired)
void
setDiscriminator(CodegenDiscriminator discriminator)
void
setExclusiveMaximum(boolean exclusiveMaximum)
void
setExclusiveMinimum(boolean exclusiveMinimum)
void
setFormat(String format)
void
setHasDiscriminatorWithNonEmptyMapping(boolean hasDiscriminatorWithNonEmptyMapping)
void
setHasMultipleTypes(boolean hasMultipleTypes)
void
setHasRequired(boolean hasRequired)
void
setHasValidation(boolean hasValidation)
void
setHasVars(boolean hasVars)
void
setIsAnyType(boolean isAnyType)
void
setIsArray(boolean isArray)
void
setIsBinary(boolean isBinary)
void
setIsBoolean(boolean isBoolean)
void
setIsBooleanSchemaFalse(boolean isBooleanSchemaFalse)
void
setIsBooleanSchemaTrue(boolean isBooleanSchemaTrue)
void
setIsByteArray(boolean isByteArray)
void
setIsDate(boolean isDate)
void
setIsDateTime(boolean isDateTime)
void
setIsDecimal(boolean isDecimal)
void
setIsDouble(boolean isDouble)
void
setIsEnum(boolean isEnum)
void
setIsFloat(boolean isFloat)
void
setIsFreeFormObject(boolean isFreeFormObject)
void
setIsInteger(boolean isInteger)
void
setIsLong(boolean isLong)
void
setIsMap(boolean isMap)
void
setIsModel(boolean isModel)
void
setIsNull(boolean isNull)
void
setIsNumber(boolean isNumber)
void
setIsOptional(boolean isOptional)
void
setIsPrimitiveType(boolean isPrimitiveType)
void
setIsShort(boolean isShort)
void
setIsString(boolean isString)
void
setIsUnboundedInteger(boolean isUnboundedInteger)
void
setIsUri(boolean isUri)
void
setIsUuid(boolean isUuid)
void
setIsVoid(boolean isVoid)
void
setItems(CodegenProperty items)
void
setMaximum(String maximum)
void
setMaxItems(Integer maxItems)
void
setMaxLength(Integer maxLength)
void
setMaxProperties(Integer maxProperties)
void
setMinimum(String minimum)
void
setMinItems(Integer minItems)
void
setMinLength(Integer minLength)
void
setMinProperties(Integer minProperties)
void
setMultipleOf(Number multipleOf)
void
setPattern(String pattern)
void
setRef(String ref)
void
setRequiredVars(List<CodegenProperty> requiredVars)
void
setRequiredVarsMap(Map<String,CodegenProperty> requiredVarsMap)
void
setSchemaIsFromAdditionalProperties(boolean schemaIsFromAdditionalProperties)
void
setUniqueItems(boolean uniqueItems)
void
setUniqueItemsBoolean(Boolean uniqueItemsBoolean)
void
setVars(List<CodegenProperty> vars)
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openapitools.codegen.IJsonSchemaValidationProperties
getBaseType, getComplexType, getDataType, getImports, setDataType, setTypeProperties
-
-
-
-
Field Detail
-
parent
public String parent
-
parentSchema
public String parentSchema
-
parentModel
public CodegenModel parentModel
-
interfaceModels
public List<CodegenModel> interfaceModels
-
children
public List<CodegenModel> children
-
name
public String name
-
schemaName
public String schemaName
-
classname
public String classname
-
title
public String title
-
description
public String description
-
classVarName
public String classVarName
-
modelJson
public String modelJson
-
dataType
public String dataType
-
xmlPrefix
public String xmlPrefix
-
xmlNamespace
public String xmlNamespace
-
xmlName
public String xmlName
-
classFilename
public String classFilename
-
unescapedDescription
public String unescapedDescription
-
discriminator
public CodegenDiscriminator discriminator
-- GETTER -- Returns the discriminator for this schema object, or null if no discriminator has been specified. The list of all possible schema discriminator mapping values is obtained from explicit discriminator mapping values in the OpenAPI document, and from inherited discriminators through oneOf, allOf, anyOf. For example, a discriminator may be defined in a 'Pet' schema as shown below. The Dog and Cat schemas inherit the discriminator through the allOf reference. In the 'Pet' schema, the supported discriminator mapping values for the 'objectType' properties are 'Dog' and 'Cat'. The allowed discriminator mapping value for the Dog schema is 'Dog'. The allowed discriminator mapping value for the Cat schema is 'Dog'. Pet: type: object discriminator: propertyName: objectType required: - objectType properties: objectType: type: string Dog: allOf: - $ref: '#/components/schemas/Pet' - type: object properties: p1: type: string Cat: allOf: - $ref: '#/components/schemas/Pet' - type: object properties: p2: type: string
-
defaultValue
public String defaultValue
-
arrayModelType
public String arrayModelType
-
isAlias
public boolean isAlias
-
isString
public boolean isString
-
isInteger
public boolean isInteger
-
isLong
public boolean isLong
-
isNumber
public boolean isNumber
-
isNumeric
public boolean isNumeric
-
isFloat
public boolean isFloat
-
isDouble
public boolean isDouble
-
isDate
public boolean isDate
-
isDateTime
public boolean isDateTime
-
isDecimal
public boolean isDecimal
-
isShort
public boolean isShort
-
isUnboundedInteger
public boolean isUnboundedInteger
-
isPrimitiveType
public boolean isPrimitiveType
-
isBoolean
public boolean isBoolean
-
isFreeFormObject
public boolean isFreeFormObject
-
vars
public List<CodegenProperty> vars
-
allVars
public List<CodegenProperty> allVars
-
requiredVars
public List<CodegenProperty> requiredVars
-
optionalVars
public List<CodegenProperty> optionalVars
-
readOnlyVars
public List<CodegenProperty> readOnlyVars
-
readWriteVars
public List<CodegenProperty> readWriteVars
-
parentVars
public List<CodegenProperty> parentVars
-
parentRequiredVars
public List<CodegenProperty> parentRequiredVars
-
nonNullableVars
public List<CodegenProperty> nonNullableVars
-
emptyVars
public boolean emptyVars
-
hasVars
public boolean hasVars
-
hasMoreModels
public boolean hasMoreModels
-
hasEnums
public boolean hasEnums
-
isEnum
public boolean isEnum
-
hasValidation
public boolean hasValidation
-
isNullable
public boolean isNullable
Indicates the OAS schema specifies "nullable: true".
-
hasRequired
public boolean hasRequired
Indicates the type has at least one required property.
-
hasOptional
public boolean hasOptional
Indicates the type has at least one optional property.
-
isArray
public boolean isArray
-
hasChildren
public boolean hasChildren
-
isMap
public boolean isMap
-
isOptional
public boolean isOptional
datatype is the generic inner parameter of a std::optional for C++, or Optional (Java)
-
isNull
public boolean isNull
-
isVoid
public boolean isVoid
-
isDeprecated
public boolean isDeprecated
Indicates the OAS schema specifies "deprecated: true".
-
hasReadOnly
public boolean hasReadOnly
Indicates the type has at least one read-only property.
-
hasOnlyReadOnly
public boolean hasOnlyReadOnly
Indicates the all properties of the type are read-only.
-
externalDocumentation
public io.swagger.v3.oas.models.ExternalDocumentation externalDocumentation
-
testCases
public HashMap<String,SchemaTestCase> testCases
-
additionalPropertiesType
public String additionalPropertiesType
The type of the value for the additionalProperties keyword in the OAS document. Used in map like objects, including composed schemas. In most programming languages, the additional (undeclared) properties are stored in a map data structure, such as HashMap in Java, map in golang, or a dict in Python. There are multiple ways to implement the additionalProperties keyword, depending on the programming language and mustache template. One way is to use class inheritance. For example in the generated Java code, the generated model class may extend from HashMap to store the additional properties. In that case 'CodegenModel.parent' is set to represent the class hierarchy. Another way is to use CodegenModel.additionalPropertiesType. A code generator such as Python does not use class inheritance to model additional properties. For example, in the OAS schema below, the schema has a declared 'id' property and additional, undeclared properties of type 'integer' are allowed. type: object properties: id: type: integer additionalProperties: type: integer
-
isAdditionalPropertiesTrue
public boolean isAdditionalPropertiesTrue
True if additionalProperties is set to true (boolean value), any type, free form object, etc TODO: we may rename this to isAdditionalPropertiesEnabled or something else to avoid confusions
-
-
Method Detail
-
getContains
public CodegenProperty getContains()
- Specified by:
getContains
in interfaceIJsonSchemaValidationProperties
-
setContains
public void setContains(CodegenProperty contains)
- Specified by:
setContains
in interfaceIJsonSchemaValidationProperties
-
getDependentRequired
public LinkedHashMap<String,List<String>> getDependentRequired()
- Specified by:
getDependentRequired
in interfaceIJsonSchemaValidationProperties
-
setDependentRequired
public void setDependentRequired(LinkedHashMap<String,List<String>> dependentRequired)
- Specified by:
setDependentRequired
in interfaceIJsonSchemaValidationProperties
-
getIsBooleanSchemaTrue
public boolean getIsBooleanSchemaTrue()
- Specified by:
getIsBooleanSchemaTrue
in interfaceIJsonSchemaValidationProperties
-
setIsBooleanSchemaTrue
public void setIsBooleanSchemaTrue(boolean isBooleanSchemaTrue)
- Specified by:
setIsBooleanSchemaTrue
in interfaceIJsonSchemaValidationProperties
-
getIsBooleanSchemaFalse
public boolean getIsBooleanSchemaFalse()
- Specified by:
getIsBooleanSchemaFalse
in interfaceIJsonSchemaValidationProperties
-
setIsBooleanSchemaFalse
public void setIsBooleanSchemaFalse(boolean isBooleanSchemaFalse)
- Specified by:
setIsBooleanSchemaFalse
in interfaceIJsonSchemaValidationProperties
-
getFormat
public String getFormat()
- Specified by:
getFormat
in interfaceIJsonSchemaValidationProperties
-
setFormat
public void setFormat(String format)
- Specified by:
setFormat
in interfaceIJsonSchemaValidationProperties
-
getRef
public String getRef()
- Specified by:
getRef
in interfaceIJsonSchemaValidationProperties
-
setRef
public void setRef(String ref)
- Specified by:
setRef
in interfaceIJsonSchemaValidationProperties
-
getSchemaIsFromAdditionalProperties
public boolean getSchemaIsFromAdditionalProperties()
- Specified by:
getSchemaIsFromAdditionalProperties
in interfaceIJsonSchemaValidationProperties
-
setSchemaIsFromAdditionalProperties
public void setSchemaIsFromAdditionalProperties(boolean schemaIsFromAdditionalProperties)
- Specified by:
setSchemaIsFromAdditionalProperties
in interfaceIJsonSchemaValidationProperties
-
getIsClassnameSanitized
public boolean getIsClassnameSanitized()
Return true if the classname property is sanitized, false if it is the same as the OpenAPI schema name. The OpenAPI schema name may be any valid JSON schema name, including non-ASCII characters. The name of the class may have to be sanitized with character escaping.- Returns:
- true if the classname property is sanitized
-
setDiscriminator
public void setDiscriminator(CodegenDiscriminator discriminator)
-
getDiscriminatorName
public String getDiscriminatorName()
Returns the name of the discriminator property for this schema in the OpenAPI document. In the OpenAPI document, the discriminator may be specified in the local schema or it may be inherited, such as through a 'allOf' schema which references another schema that has a discriminator, recursively.- Returns:
- the name of the discriminator property.
-
getPattern
public String getPattern()
- Specified by:
getPattern
in interfaceIJsonSchemaValidationProperties
-
setPattern
public void setPattern(String pattern)
- Specified by:
setPattern
in interfaceIJsonSchemaValidationProperties
-
getMaximum
public String getMaximum()
- Specified by:
getMaximum
in interfaceIJsonSchemaValidationProperties
-
setMaximum
public void setMaximum(String maximum)
- Specified by:
setMaximum
in interfaceIJsonSchemaValidationProperties
-
getMinimum
public String getMinimum()
- Specified by:
getMinimum
in interfaceIJsonSchemaValidationProperties
-
setMinimum
public void setMinimum(String minimum)
- Specified by:
setMinimum
in interfaceIJsonSchemaValidationProperties
-
getExclusiveMaximum
public boolean getExclusiveMaximum()
- Specified by:
getExclusiveMaximum
in interfaceIJsonSchemaValidationProperties
-
setExclusiveMaximum
public void setExclusiveMaximum(boolean exclusiveMaximum)
- Specified by:
setExclusiveMaximum
in interfaceIJsonSchemaValidationProperties
-
getExclusiveMinimum
public boolean getExclusiveMinimum()
- Specified by:
getExclusiveMinimum
in interfaceIJsonSchemaValidationProperties
-
setExclusiveMinimum
public void setExclusiveMinimum(boolean exclusiveMinimum)
- Specified by:
setExclusiveMinimum
in interfaceIJsonSchemaValidationProperties
-
getMinLength
public Integer getMinLength()
- Specified by:
getMinLength
in interfaceIJsonSchemaValidationProperties
-
setMinLength
public void setMinLength(Integer minLength)
- Specified by:
setMinLength
in interfaceIJsonSchemaValidationProperties
-
getMaxLength
public Integer getMaxLength()
- Specified by:
getMaxLength
in interfaceIJsonSchemaValidationProperties
-
setMaxLength
public void setMaxLength(Integer maxLength)
- Specified by:
setMaxLength
in interfaceIJsonSchemaValidationProperties
-
getMinItems
public Integer getMinItems()
- Specified by:
getMinItems
in interfaceIJsonSchemaValidationProperties
-
setMinItems
public void setMinItems(Integer minItems)
- Specified by:
setMinItems
in interfaceIJsonSchemaValidationProperties
-
getMaxItems
public Integer getMaxItems()
- Specified by:
getMaxItems
in interfaceIJsonSchemaValidationProperties
-
setMaxItems
public void setMaxItems(Integer maxItems)
- Specified by:
setMaxItems
in interfaceIJsonSchemaValidationProperties
-
getUniqueItems
public boolean getUniqueItems()
- Specified by:
getUniqueItems
in interfaceIJsonSchemaValidationProperties
-
setUniqueItems
public void setUniqueItems(boolean uniqueItems)
- Specified by:
setUniqueItems
in interfaceIJsonSchemaValidationProperties
-
getUniqueItemsBoolean
public Boolean getUniqueItemsBoolean()
- Specified by:
getUniqueItemsBoolean
in interfaceIJsonSchemaValidationProperties
-
setUniqueItemsBoolean
public void setUniqueItemsBoolean(Boolean uniqueItemsBoolean)
- Specified by:
setUniqueItemsBoolean
in interfaceIJsonSchemaValidationProperties
-
getMinProperties
public Integer getMinProperties()
- Specified by:
getMinProperties
in interfaceIJsonSchemaValidationProperties
-
setMinProperties
public void setMinProperties(Integer minProperties)
- Specified by:
setMinProperties
in interfaceIJsonSchemaValidationProperties
-
getMaxProperties
public Integer getMaxProperties()
- Specified by:
getMaxProperties
in interfaceIJsonSchemaValidationProperties
-
setMaxProperties
public void setMaxProperties(Integer maxProperties)
- Specified by:
setMaxProperties
in interfaceIJsonSchemaValidationProperties
-
getMultipleOf
public Number getMultipleOf()
- Specified by:
getMultipleOf
in interfaceIJsonSchemaValidationProperties
-
setMultipleOf
public void setMultipleOf(Number multipleOf)
- Specified by:
setMultipleOf
in interfaceIJsonSchemaValidationProperties
-
getItems
public CodegenProperty getItems()
- Specified by:
getItems
in interfaceIJsonSchemaValidationProperties
-
setItems
public void setItems(CodegenProperty items)
- Specified by:
setItems
in interfaceIJsonSchemaValidationProperties
-
getIsModel
public boolean getIsModel()
- Specified by:
getIsModel
in interfaceIJsonSchemaValidationProperties
-
setIsModel
public void setIsModel(boolean isModel)
- Specified by:
setIsModel
in interfaceIJsonSchemaValidationProperties
-
getIsDate
public boolean getIsDate()
- Specified by:
getIsDate
in interfaceIJsonSchemaValidationProperties
-
setIsDate
public void setIsDate(boolean isDate)
- Specified by:
setIsDate
in interfaceIJsonSchemaValidationProperties
-
getIsDateTime
public boolean getIsDateTime()
- Specified by:
getIsDateTime
in interfaceIJsonSchemaValidationProperties
-
setIsDateTime
public void setIsDateTime(boolean isDateTime)
- Specified by:
setIsDateTime
in interfaceIJsonSchemaValidationProperties
-
getIsMap
public boolean getIsMap()
- Specified by:
getIsMap
in interfaceIJsonSchemaValidationProperties
-
setIsMap
public void setIsMap(boolean isMap)
- Specified by:
setIsMap
in interfaceIJsonSchemaValidationProperties
-
getIsOptional
public boolean getIsOptional()
Description copied from interface:IJsonSchemaValidationProperties
Tells if the datatype is a generic inner parameter of astd::optional
for C++, orOptional
(Java)
to resolve cases (detected in issue #6726) where :
-categoryOneOf
is a parameter of classGetAccountVideos_categoryOneOf_parameter
, a model parameter that correctly prefixed by its namespace:org::openapitools::server::model::GetAccountVideos_categoryOneOf_parameter
- but thatGetAccountVideos_categoryOneOf_parameter
class is inside anstd::optional
Then a correct generation of that parameter can be (for C++)const std::optional<org::openapitools::server::model::GetAccountVideos_categoryOneOf_parameter> &categoryOneOf
but using #isModel alone without #isOptional in mustache might produceconst org::openapitools::server::model::std::optional<org::openapitools::server::model::GetAccountVideos_categoryOneOf_parameter> &categoryOneOf
instead, that do not compile.- Specified by:
getIsOptional
in interfaceIJsonSchemaValidationProperties
-
setIsOptional
public void setIsOptional(boolean isOptional)
- Specified by:
setIsOptional
in interfaceIJsonSchemaValidationProperties
-
getIsArray
public boolean getIsArray()
- Specified by:
getIsArray
in interfaceIJsonSchemaValidationProperties
-
setIsArray
public void setIsArray(boolean isArray)
- Specified by:
setIsArray
in interfaceIJsonSchemaValidationProperties
-
getIsShort
public boolean getIsShort()
- Specified by:
getIsShort
in interfaceIJsonSchemaValidationProperties
-
setIsShort
public void setIsShort(boolean isShort)
- Specified by:
setIsShort
in interfaceIJsonSchemaValidationProperties
-
getIsBoolean
public boolean getIsBoolean()
- Specified by:
getIsBoolean
in interfaceIJsonSchemaValidationProperties
-
setIsBoolean
public void setIsBoolean(boolean isBoolean)
- Specified by:
setIsBoolean
in interfaceIJsonSchemaValidationProperties
-
getIsUnboundedInteger
public boolean getIsUnboundedInteger()
- Specified by:
getIsUnboundedInteger
in interfaceIJsonSchemaValidationProperties
-
setIsUnboundedInteger
public void setIsUnboundedInteger(boolean isUnboundedInteger)
- Specified by:
setIsUnboundedInteger
in interfaceIJsonSchemaValidationProperties
-
getIsPrimitiveType
public boolean getIsPrimitiveType()
- Specified by:
getIsPrimitiveType
in interfaceIJsonSchemaValidationProperties
-
setIsPrimitiveType
public void setIsPrimitiveType(boolean isPrimitiveType)
- Specified by:
setIsPrimitiveType
in interfaceIJsonSchemaValidationProperties
-
getAdditionalProperties
public CodegenProperty getAdditionalProperties()
- Specified by:
getAdditionalProperties
in interfaceIJsonSchemaValidationProperties
-
setAdditionalProperties
public void setAdditionalProperties(CodegenProperty additionalProperties)
- Specified by:
setAdditionalProperties
in interfaceIJsonSchemaValidationProperties
-
getHasValidation
public boolean getHasValidation()
- Specified by:
getHasValidation
in interfaceIJsonSchemaValidationProperties
-
setHasValidation
public void setHasValidation(boolean hasValidation)
- Specified by:
setHasValidation
in interfaceIJsonSchemaValidationProperties
-
getRequiredVars
public List<CodegenProperty> getRequiredVars()
- Specified by:
getRequiredVars
in interfaceIJsonSchemaValidationProperties
-
setRequiredVars
public void setRequiredVars(List<CodegenProperty> requiredVars)
- Specified by:
setRequiredVars
in interfaceIJsonSchemaValidationProperties
-
getVars
public List<CodegenProperty> getVars()
- Specified by:
getVars
in interfaceIJsonSchemaValidationProperties
-
setVars
public void setVars(List<CodegenProperty> vars)
- Specified by:
setVars
in interfaceIJsonSchemaValidationProperties
-
getIsNull
public boolean getIsNull()
- Specified by:
getIsNull
in interfaceIJsonSchemaValidationProperties
-
setIsNull
public void setIsNull(boolean isNull)
- Specified by:
setIsNull
in interfaceIJsonSchemaValidationProperties
-
getIsVoid
public boolean getIsVoid()
- Specified by:
getIsVoid
in interfaceIJsonSchemaValidationProperties
-
setIsVoid
public void setIsVoid(boolean isVoid)
- Specified by:
setIsVoid
in interfaceIJsonSchemaValidationProperties
-
getAdditionalPropertiesIsAnyType
public boolean getAdditionalPropertiesIsAnyType()
- Specified by:
getAdditionalPropertiesIsAnyType
in interfaceIJsonSchemaValidationProperties
-
setAdditionalPropertiesIsAnyType
public void setAdditionalPropertiesIsAnyType(boolean additionalPropertiesIsAnyType)
- Specified by:
setAdditionalPropertiesIsAnyType
in interfaceIJsonSchemaValidationProperties
-
getHasVars
public boolean getHasVars()
- Specified by:
getHasVars
in interfaceIJsonSchemaValidationProperties
-
setHasVars
public void setHasVars(boolean hasVars)
- Specified by:
setHasVars
in interfaceIJsonSchemaValidationProperties
-
getHasRequired
public boolean getHasRequired()
- Specified by:
getHasRequired
in interfaceIJsonSchemaValidationProperties
-
setHasRequired
public void setHasRequired(boolean hasRequired)
- Specified by:
setHasRequired
in interfaceIJsonSchemaValidationProperties
-
getHasDiscriminatorWithNonEmptyMapping
public boolean getHasDiscriminatorWithNonEmptyMapping()
- Specified by:
getHasDiscriminatorWithNonEmptyMapping
in interfaceIJsonSchemaValidationProperties
-
setHasDiscriminatorWithNonEmptyMapping
public void setHasDiscriminatorWithNonEmptyMapping(boolean hasDiscriminatorWithNonEmptyMapping)
- Specified by:
setHasDiscriminatorWithNonEmptyMapping
in interfaceIJsonSchemaValidationProperties
-
getIsString
public boolean getIsString()
- Specified by:
getIsString
in interfaceIJsonSchemaValidationProperties
-
setIsString
public void setIsString(boolean isString)
- Specified by:
setIsString
in interfaceIJsonSchemaValidationProperties
-
getIsNumber
public boolean getIsNumber()
- Specified by:
getIsNumber
in interfaceIJsonSchemaValidationProperties
-
setIsNumber
public void setIsNumber(boolean isNumber)
- Specified by:
setIsNumber
in interfaceIJsonSchemaValidationProperties
-
getIsAnyType
public boolean getIsAnyType()
- Specified by:
getIsAnyType
in interfaceIJsonSchemaValidationProperties
-
setIsAnyType
public void setIsAnyType(boolean isAnyType)
- Specified by:
setIsAnyType
in interfaceIJsonSchemaValidationProperties
-
getIsFreeFormObject
public boolean getIsFreeFormObject()
- Specified by:
getIsFreeFormObject
in interfaceIJsonSchemaValidationProperties
-
setIsFreeFormObject
public void setIsFreeFormObject(boolean isFreeFormObject)
- Specified by:
setIsFreeFormObject
in interfaceIJsonSchemaValidationProperties
-
getIsUuid
public boolean getIsUuid()
- Specified by:
getIsUuid
in interfaceIJsonSchemaValidationProperties
-
setIsUuid
public void setIsUuid(boolean isUuid)
- Specified by:
setIsUuid
in interfaceIJsonSchemaValidationProperties
-
getIsUri
public boolean getIsUri()
-
setIsUri
public void setIsUri(boolean isUri)
-
setComposedSchemas
public void setComposedSchemas(CodegenComposedSchemas composedSchemas)
- Specified by:
setComposedSchemas
in interfaceIJsonSchemaValidationProperties
-
getComposedSchemas
public CodegenComposedSchemas getComposedSchemas()
- Specified by:
getComposedSchemas
in interfaceIJsonSchemaValidationProperties
-
getHasMultipleTypes
public boolean getHasMultipleTypes()
- Specified by:
getHasMultipleTypes
in interfaceIJsonSchemaValidationProperties
-
setHasMultipleTypes
public void setHasMultipleTypes(boolean hasMultipleTypes)
- Specified by:
setHasMultipleTypes
in interfaceIJsonSchemaValidationProperties
-
getIsFloat
public boolean getIsFloat()
- Specified by:
getIsFloat
in interfaceIJsonSchemaValidationProperties
-
setIsFloat
public void setIsFloat(boolean isFloat)
- Specified by:
setIsFloat
in interfaceIJsonSchemaValidationProperties
-
getIsDouble
public boolean getIsDouble()
- Specified by:
getIsDouble
in interfaceIJsonSchemaValidationProperties
-
setIsDouble
public void setIsDouble(boolean isDouble)
- Specified by:
setIsDouble
in interfaceIJsonSchemaValidationProperties
-
getIsInteger
public boolean getIsInteger()
- Specified by:
getIsInteger
in interfaceIJsonSchemaValidationProperties
-
setIsInteger
public void setIsInteger(boolean isInteger)
- Specified by:
setIsInteger
in interfaceIJsonSchemaValidationProperties
-
getIsLong
public boolean getIsLong()
- Specified by:
getIsLong
in interfaceIJsonSchemaValidationProperties
-
setIsLong
public void setIsLong(boolean isLong)
- Specified by:
setIsLong
in interfaceIJsonSchemaValidationProperties
-
getIsBinary
public boolean getIsBinary()
- Specified by:
getIsBinary
in interfaceIJsonSchemaValidationProperties
-
setIsBinary
public void setIsBinary(boolean isBinary)
- Specified by:
setIsBinary
in interfaceIJsonSchemaValidationProperties
-
getIsByteArray
public boolean getIsByteArray()
- Specified by:
getIsByteArray
in interfaceIJsonSchemaValidationProperties
-
setIsByteArray
public void setIsByteArray(boolean isByteArray)
- Specified by:
setIsByteArray
in interfaceIJsonSchemaValidationProperties
-
getIsDecimal
public boolean getIsDecimal()
- Specified by:
getIsDecimal
in interfaceIJsonSchemaValidationProperties
-
setIsDecimal
public void setIsDecimal(boolean isDecimal)
- Specified by:
setIsDecimal
in interfaceIJsonSchemaValidationProperties
-
getIsEnum
public boolean getIsEnum()
- Specified by:
getIsEnum
in interfaceIJsonSchemaValidationProperties
-
setIsEnum
public void setIsEnum(boolean isEnum)
- Specified by:
setIsEnum
in interfaceIJsonSchemaValidationProperties
-
addDiscriminatorMappedModelsImports
public void addDiscriminatorMappedModelsImports(boolean cleanUpMappedModels)
-
getHasItems
public boolean getHasItems()
-
getRequiredVarsMap
public Map<String,CodegenProperty> getRequiredVarsMap()
- Specified by:
getRequiredVarsMap
in interfaceIJsonSchemaValidationProperties
-
setRequiredVarsMap
public void setRequiredVarsMap(Map<String,CodegenProperty> requiredVarsMap)
- Specified by:
setRequiredVarsMap
in interfaceIJsonSchemaValidationProperties
-
removeAllDuplicatedProperty
public void removeAllDuplicatedProperty()
Remove duplicated properties in all variable list
-
removeSelfReferenceImport
public void removeSelfReferenceImport()
Remove self reference import
-
-