Package org.openapitools.codegen
Class CodegenProperty
- java.lang.Object
-
- org.openapitools.codegen.CodegenProperty
-
- All Implemented Interfaces:
Cloneable
,IJsonSchemaValidationProperties
- Direct Known Subclasses:
TypeScriptFetchClientCodegen.ExtendedCodegenProperty
public class CodegenProperty extends Object implements Cloneable, IJsonSchemaValidationProperties
-
-
Field Summary
Fields Modifier and Type Field Description List<String>
_enum
CodegenProperty
additionalProperties
Map<String,Object>
allowableValues
String
baseName
String
baseType
String
complexType
String
containerType
String
containerTypeMapped
String
dataFormat
String
dataType
The language-specific data type for this property.String
datatypeWithEnum
String
defaultValue
String
defaultValueWithParam
boolean
deprecated
String
description
The value of the 'description' attribute in the OpenAPI schema.String
discriminatorValue
String
enumName
String
example
A free-form property to include an example of an instance for this schema.boolean
exclusiveMaximum
The value of the 'exclusiveMaximum' attribute in the OpenAPI schema.boolean
exclusiveMinimum
The value of the 'exclusiveMinimum' attribute in the OpenAPI schema.String
getter
boolean
hasMoreNonReadOnly
boolean
hasValidation
boolean
isAnyType
The 'type' in the OAS schema is unspecified (i.e. not set).boolean
isArray
boolean
isBinary
boolean
isBoolean
boolean
isByteArray
boolean
isCircularReference
boolean
isContainer
True if this property is an array of items or a map container.boolean
isDate
boolean
isDateTime
boolean
isDecimal
boolean
isDiscriminator
boolean
isDouble
boolean
isEmail
boolean
isEnum
boolean
isEnumRef
boolean
isFile
boolean
isFloat
boolean
isFreeFormObject
The type is a free-form object, i.e. it is a map of string to values with no declared properties.boolean
isInherited
boolean
isInnerEnum
boolean
isInteger
boolean
isLong
boolean
isMap
boolean
isModel
boolean
isNew
boolean
isNull
boolean
isNullable
boolean
isNumber
boolean
isNumeric
boolean
isOptional
datatype is the generic inner parameter of a std::optional for C++, or Optional (Java)Boolean
isOverridden
boolean
isPassword
boolean
isPrimitiveType
boolean
isReadOnly
boolean
isSelfReference
boolean
isShort
boolean
isString
boolean
isUnboundedInteger
boolean
isUri
boolean
isUuid
boolean
isVoid
boolean
isWriteOnly
boolean
isXmlAttribute
boolean
isXmlWrapped
CodegenProperty
items
String
jsonSchema
String
max
String
maximum
The value of the 'maximum' attribute in the OpenAPI schema.Integer
maxItems
Integer
maxLength
maxLength validation for strings, see http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.2.1String
min
String
minimum
The value of the 'minimum' attribute in the OpenAPI schema.Integer
minItems
Integer
minLength
minLength validation for strings, see http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.2.2CodegenProperty
mostInnerItems
Number
multipleOf
The value of the 'multipleOf' attribute in the OpenAPI schema.String
name
The name of this property in the OpenAPI schema.String
nameInCamelCase
String
nameInLowerCase
String
nameInPascalCase
String
nameInSnakeCase
String
openApiType
The value of the 'type' attribute in the OpenAPI schema.String
pattern
pattern validation for strings, see http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.2.3boolean
required
List<CodegenProperty>
requiredVars
String
setter
String
title
The value of the 'title' attribute in the OpenAPI schema.String
unescapedDescription
The 'description' string without escape characters needed by some programming languages/targetsList<CodegenProperty>
vars
Map<String,Object>
vendorExtensions
String
xmlName
String
xmlNamespace
String
xmlPrefix
-
Constructor Summary
Constructors Constructor Description CodegenProperty()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CodegenProperty
clone()
boolean
equals(Object o)
CodegenProperty
getAdditionalProperties()
boolean
getAdditionalPropertiesIsAnyType()
String
getBaseType()
String
getComplexType()
CodegenComposedSchemas
getComposedSchemas()
CodegenProperty
getContains()
String
getDatatype()
Deprecated.since version 3.0.0, usegetDataType()
instead.
May be removed with the next major release (4.0)String
getDataType()
LinkedHashMap<String,List<String>>
getDependentRequired()
boolean
getExclusiveMaximum()
boolean
getExclusiveMinimum()
String
getFormat()
boolean
getHasDiscriminatorWithNonEmptyMapping()
boolean
getHasItems()
boolean
getHasMultipleTypes()
boolean
getHasRequired()
boolean
getHasSanitizedName()
boolean
getHasValidation()
boolean
getHasVars()
boolean
getIExclusiveMaximum()
boolean
getIsAnyType()
boolean
getIsArray()
boolean
getIsBinary()
boolean
getIsBoolean()
boolean
getIsBooleanSchemaFalse()
boolean
getIsBooleanSchemaTrue()
boolean
getIsByteArray()
boolean
getIsDate()
boolean
getIsDateTime()
boolean
getIsDecimal()
boolean
getIsDouble()
boolean
getIsEnum()
boolean
getIsEnumOrRef()
Return true if it's an enum (inline or ref)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
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()
boolean
getRequired()
List<CodegenProperty>
getRequiredVars()
Map<String,CodegenProperty>
getRequiredVarsMap()
boolean
getSchemaIsFromAdditionalProperties()
boolean
getUniqueItems()
Boolean
getUniqueItemsBoolean()
List<CodegenProperty>
getVars()
int
hashCode()
boolean
notRequiredOrIsNullable()
boolean
requiredAndNotNullable()
void
setAdditionalProperties(CodegenProperty additionalProperties)
void
setAdditionalPropertiesIsAnyType(boolean additionalPropertiesIsAnyType)
void
setComposedSchemas(CodegenComposedSchemas composedSchemas)
void
setContains(CodegenProperty contains)
void
setDatatype(String datatype)
Deprecated.usesetDataType(String)
instead.void
setDataType(String dataType)
void
setDependentRequired(LinkedHashMap<String,List<String>> dependentRequired)
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
setHasSanitizedName(boolean hasSanitizedName)
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
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
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openapitools.codegen.IJsonSchemaValidationProperties
getImports, setTypeProperties
-
-
-
-
Field Detail
-
openApiType
public String openApiType
The value of the 'type' attribute in the OpenAPI schema. The per-language codegen logic may change to a language-specific type.
-
baseName
public String baseName
-
complexType
public String complexType
-
getter
public String getter
-
setter
public String setter
-
description
public String description
The value of the 'description' attribute in the OpenAPI schema.
-
dataType
public String dataType
The language-specific data type for this property. For example, the OpenAPI type 'integer' may be represented as 'int', 'int32', 'Integer', etc, depending on the programming language.
-
datatypeWithEnum
public String datatypeWithEnum
-
dataFormat
public String dataFormat
-
name
public String name
The name of this property in the OpenAPI schema.
-
min
public String min
-
max
public String max
-
defaultValue
public String defaultValue
-
defaultValueWithParam
public String defaultValueWithParam
-
baseType
public String baseType
-
containerType
public String containerType
-
containerTypeMapped
public String containerTypeMapped
-
title
public String title
The value of the 'title' attribute in the OpenAPI schema.
-
unescapedDescription
public String unescapedDescription
The 'description' string without escape characters needed by some programming languages/targets
-
maxLength
public Integer maxLength
maxLength validation for strings, see http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.2.1
-
minLength
public Integer minLength
minLength validation for strings, see http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.2.2
-
pattern
public String pattern
pattern validation for strings, see http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.2.3
-
example
public String example
A free-form property to include an example of an instance for this schema.
-
jsonSchema
public String jsonSchema
-
minimum
public String minimum
The value of the 'minimum' attribute in the OpenAPI schema. The value of "minimum" MUST be a number, representing an inclusive lower limit for a numeric instance.
-
maximum
public String maximum
The value of the 'maximum' attribute in the OpenAPI schema. The value of "maximum" MUST be a number, representing an inclusive upper limit for a numeric instance.
-
multipleOf
public Number multipleOf
The value of the 'multipleOf' attribute in the OpenAPI schema. The value of "multipleOf" MUST be a number, strictly greater than 0.
-
exclusiveMinimum
public boolean exclusiveMinimum
The value of the 'exclusiveMinimum' attribute in the OpenAPI schema. The value of "exclusiveMinimum" MUST be number, representing an exclusive lower limit for a numeric instance.
-
exclusiveMaximum
public boolean exclusiveMaximum
The value of the 'exclusiveMaximum' attribute in the OpenAPI schema. The value of "exclusiveMaximum" MUST be number, representing an exclusive upper limit for a numeric instance.
-
required
public boolean required
-
deprecated
public boolean deprecated
-
hasMoreNonReadOnly
public boolean hasMoreNonReadOnly
-
isPrimitiveType
public boolean isPrimitiveType
-
isModel
public boolean isModel
-
isContainer
public boolean isContainer
True if this property is an array of items or a map container. See: - ModelUtils.isArraySchema() - ModelUtils.isMapSchema()
-
isString
public boolean isString
-
isNumeric
public boolean isNumeric
-
isInteger
public boolean isInteger
-
isShort
public boolean isShort
-
isLong
public boolean isLong
-
isUnboundedInteger
public boolean isUnboundedInteger
-
isNumber
public boolean isNumber
-
isFloat
public boolean isFloat
-
isDouble
public boolean isDouble
-
isDecimal
public boolean isDecimal
-
isByteArray
public boolean isByteArray
-
isBinary
public boolean isBinary
-
isFile
public boolean isFile
-
isBoolean
public boolean isBoolean
-
isDate
public boolean isDate
-
isDateTime
public boolean isDateTime
-
isUuid
public boolean isUuid
-
isUri
public boolean isUri
-
isEmail
public boolean isEmail
-
isPassword
public boolean isPassword
-
isNull
public boolean isNull
-
isVoid
public boolean isVoid
-
isFreeFormObject
public boolean isFreeFormObject
The type is a free-form object, i.e. it is a map of string to values with no declared properties. A OAS free-form schema may include the 'additionalProperties' attribute, which puts a constraint on the type of the undeclared properties.
-
isAnyType
public boolean isAnyType
The 'type' in the OAS schema is unspecified (i.e. not set). The value can be number, integer, string, object or array. If the nullable attribute is set to true, the 'null' value is valid.
-
isArray
public boolean isArray
-
isMap
public boolean isMap
-
isOptional
public boolean isOptional
datatype is the generic inner parameter of a std::optional for C++, or Optional (Java)
-
isEnum
public boolean isEnum
-
isInnerEnum
public boolean isInnerEnum
-
isEnumRef
public boolean isEnumRef
-
isReadOnly
public boolean isReadOnly
-
isWriteOnly
public boolean isWriteOnly
-
isNullable
public boolean isNullable
-
isSelfReference
public boolean isSelfReference
-
isCircularReference
public boolean isCircularReference
-
isDiscriminator
public boolean isDiscriminator
-
isNew
public boolean isNew
-
isOverridden
public Boolean isOverridden
-
items
public CodegenProperty items
-
additionalProperties
public CodegenProperty additionalProperties
-
vars
public List<CodegenProperty> vars
-
requiredVars
public List<CodegenProperty> requiredVars
-
mostInnerItems
public CodegenProperty mostInnerItems
-
hasValidation
public boolean hasValidation
-
isInherited
public boolean isInherited
-
discriminatorValue
public String discriminatorValue
-
nameInLowerCase
public String nameInLowerCase
-
nameInCamelCase
public String nameInCamelCase
-
nameInPascalCase
public String nameInPascalCase
-
nameInSnakeCase
public String nameInSnakeCase
-
enumName
public String enumName
-
maxItems
public Integer maxItems
-
minItems
public Integer minItems
-
isXmlAttribute
public boolean isXmlAttribute
-
xmlPrefix
public String xmlPrefix
-
xmlName
public String xmlName
-
xmlNamespace
public String xmlNamespace
-
isXmlWrapped
public boolean isXmlWrapped
-
-
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
-
setFormat
public void setFormat(String format)
- Specified by:
setFormat
in interfaceIJsonSchemaValidationProperties
-
getFormat
public String getFormat()
- Specified by:
getFormat
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
-
getComplexType
public String getComplexType()
- Specified by:
getComplexType
in interfaceIJsonSchemaValidationProperties
- Returns:
- complex type that can contain type parameters - like
List<Items>
for Java
-
getDatatype
@Deprecated public String getDatatype()
Deprecated.since version 3.0.0, usegetDataType()
instead.
May be removed with the next major release (4.0)- Returns:
- dataType
-
getDataType
public String getDataType()
- Specified by:
getDataType
in interfaceIJsonSchemaValidationProperties
-
setDatatype
@Deprecated public void setDatatype(String datatype)
Deprecated.usesetDataType(String)
instead.
-
setDataType
public void setDataType(String dataType)
- Specified by:
setDataType
in interfaceIJsonSchemaValidationProperties
-
getBaseType
public String getBaseType()
- Specified by:
getBaseType
in interfaceIJsonSchemaValidationProperties
- Returns:
- basic type - no generics supported.
-
getSchemaIsFromAdditionalProperties
public boolean getSchemaIsFromAdditionalProperties()
- Specified by:
getSchemaIsFromAdditionalProperties
in interfaceIJsonSchemaValidationProperties
-
setSchemaIsFromAdditionalProperties
public void setSchemaIsFromAdditionalProperties(boolean schemaIsFromAdditionalProperties)
- Specified by:
setSchemaIsFromAdditionalProperties
in interfaceIJsonSchemaValidationProperties
-
getMaxLength
public Integer getMaxLength()
- Specified by:
getMaxLength
in interfaceIJsonSchemaValidationProperties
-
setMaxLength
public void setMaxLength(Integer maxLength)
- Specified by:
setMaxLength
in interfaceIJsonSchemaValidationProperties
-
getMinLength
public Integer getMinLength()
- Specified by:
getMinLength
in interfaceIJsonSchemaValidationProperties
-
setMinLength
public void setMinLength(Integer minLength)
- Specified by:
setMinLength
in interfaceIJsonSchemaValidationProperties
-
getPattern
public String getPattern()
- Specified by:
getPattern
in interfaceIJsonSchemaValidationProperties
-
setPattern
public void setPattern(String pattern)
- Specified by:
setPattern
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
-
getMaximum
public String getMaximum()
- Specified by:
getMaximum
in interfaceIJsonSchemaValidationProperties
-
setMaximum
public void setMaximum(String maximum)
- Specified by:
setMaximum
in interfaceIJsonSchemaValidationProperties
-
getExclusiveMinimum
public boolean getExclusiveMinimum()
- Specified by:
getExclusiveMinimum
in interfaceIJsonSchemaValidationProperties
-
setExclusiveMinimum
public void setExclusiveMinimum(boolean exclusiveMinimum)
- Specified by:
setExclusiveMinimum
in interfaceIJsonSchemaValidationProperties
-
getIExclusiveMaximum
public boolean getIExclusiveMaximum()
-
setExclusiveMaximum
public void setExclusiveMaximum(boolean exclusiveMaximum)
- Specified by:
setExclusiveMaximum
in interfaceIJsonSchemaValidationProperties
-
getRequired
public boolean getRequired()
-
requiredAndNotNullable
public boolean requiredAndNotNullable()
-
notRequiredOrIsNullable
public boolean notRequiredOrIsNullable()
-
getItems
public CodegenProperty getItems()
- Specified by:
getItems
in interfaceIJsonSchemaValidationProperties
-
setItems
public void setItems(CodegenProperty items)
- Specified by:
setItems
in interfaceIJsonSchemaValidationProperties
-
getAdditionalProperties
public CodegenProperty getAdditionalProperties()
- Specified by:
getAdditionalProperties
in interfaceIJsonSchemaValidationProperties
-
setAdditionalProperties
public void setAdditionalProperties(CodegenProperty additionalProperties)
- Specified by:
setAdditionalProperties
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
-
getMaxItems
public Integer getMaxItems()
- Specified by:
getMaxItems
in interfaceIJsonSchemaValidationProperties
-
setMaxItems
public void setMaxItems(Integer maxItems)
- Specified by:
setMaxItems
in interfaceIJsonSchemaValidationProperties
-
getMinItems
public Integer getMinItems()
- Specified by:
getMinItems
in interfaceIJsonSchemaValidationProperties
-
setMinItems
public void setMinItems(Integer minItems)
- Specified by:
setMinItems
in interfaceIJsonSchemaValidationProperties
-
setComposedSchemas
public void setComposedSchemas(CodegenComposedSchemas composedSchemas)
- Specified by:
setComposedSchemas
in interfaceIJsonSchemaValidationProperties
-
getComposedSchemas
public CodegenComposedSchemas getComposedSchemas()
- Specified by:
getComposedSchemas
in interfaceIJsonSchemaValidationProperties
-
setRef
public void setRef(String ref)
- Specified by:
setRef
in interfaceIJsonSchemaValidationProperties
-
getRef
public String getRef()
- Specified by:
getRef
in interfaceIJsonSchemaValidationProperties
-
clone
public CodegenProperty clone()
-
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
-
getVars
public List<CodegenProperty> getVars()
- Specified by:
getVars
in interfaceIJsonSchemaValidationProperties
-
setVars
public void setVars(List<CodegenProperty> vars)
- Specified by:
setVars
in interfaceIJsonSchemaValidationProperties
-
getRequiredVars
public List<CodegenProperty> getRequiredVars()
- Specified by:
getRequiredVars
in interfaceIJsonSchemaValidationProperties
-
setRequiredVars
public void setRequiredVars(List<CodegenProperty> requiredVars)
- Specified by:
setRequiredVars
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
-
getHasValidation
public boolean getHasValidation()
- Specified by:
getHasValidation
in interfaceIJsonSchemaValidationProperties
-
setHasValidation
public void setHasValidation(boolean hasValidation)
- Specified by:
setHasValidation
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
-
getHasItems
public boolean getHasItems()
-
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
-
getHasMultipleTypes
public boolean getHasMultipleTypes()
- Specified by:
getHasMultipleTypes
in interfaceIJsonSchemaValidationProperties
-
setHasMultipleTypes
public void setHasMultipleTypes(boolean hasMultipleTypes)
- Specified by:
setHasMultipleTypes
in interfaceIJsonSchemaValidationProperties
-
getHasSanitizedName
public boolean getHasSanitizedName()
-
setHasSanitizedName
public void setHasSanitizedName(boolean hasSanitizedName)
-
getIsUuid
public boolean getIsUuid()
- Specified by:
getIsUuid
in interfaceIJsonSchemaValidationProperties
-
setIsUuid
public void setIsUuid(boolean isUuid)
- Specified by:
setIsUuid
in interfaceIJsonSchemaValidationProperties
-
getRequiredVarsMap
public Map<String,CodegenProperty> getRequiredVarsMap()
- Specified by:
getRequiredVarsMap
in interfaceIJsonSchemaValidationProperties
-
setRequiredVarsMap
public void setRequiredVarsMap(Map<String,CodegenProperty> requiredVarsMap)
- Specified by:
setRequiredVarsMap
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
-
getIsEnumOrRef
public boolean getIsEnumOrRef()
Return true if it's an enum (inline or ref)- Returns:
- true if it's an enum (inline or ref)
-
getIsEnum
public boolean getIsEnum()
- Specified by:
getIsEnum
in interfaceIJsonSchemaValidationProperties
-
setIsEnum
public void setIsEnum(boolean isEnum)
- Specified by:
setIsEnum
in interfaceIJsonSchemaValidationProperties
-
-