public class CodegenProperty extends Object implements Cloneable, IJsonSchemaValidationProperties
| Modifier and Type | Field and Description |
|---|---|
List<String> |
_enum |
CodegenProperty |
additionalProperties |
Map<String,Object> |
allowableValues |
String |
baseName |
String |
baseType |
String |
complexType |
String |
containerType |
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.
|
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 |
isFile |
boolean |
isFloat |
boolean |
isFreeFormObject
The type is a free-form object, i.e.
|
boolean |
isInherited |
boolean |
isInteger |
boolean |
isLong |
boolean |
isMap |
boolean |
isModel |
boolean |
isNull |
boolean |
isNullable |
boolean |
isNumber |
boolean |
isNumeric |
boolean |
isPrimitiveType |
boolean |
isReadOnly |
boolean |
isSelfReference |
boolean |
isString |
boolean |
isUri |
boolean |
isUuid |
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.1
|
String |
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.2
|
CodegenProperty |
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 |
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.3
|
boolean |
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/targets
|
List<CodegenProperty> |
vars |
Map<String,Object> |
vendorExtensions |
String |
xmlName |
String |
xmlNamespace |
String |
xmlPrefix |
| Constructor and Description |
|---|
CodegenProperty() |
public String openApiType
public String baseName
public String complexType
public String getter
public String setter
public String description
public String dataType
public String datatypeWithEnum
public String dataFormat
public String name
public String min
public String max
public String defaultValue
public String defaultValueWithParam
public String baseType
public String containerType
public String title
public String unescapedDescription
public Integer maxLength
public Integer minLength
public String pattern
public String example
public String jsonSchema
public String minimum
public String maximum
public Number multipleOf
public boolean exclusiveMinimum
public boolean exclusiveMaximum
public boolean required
public boolean deprecated
public boolean hasMoreNonReadOnly
public boolean isPrimitiveType
public boolean isModel
public boolean isContainer
public boolean isString
public boolean isNumeric
public boolean isInteger
public boolean isLong
public boolean isNumber
public boolean isFloat
public boolean isDouble
public boolean isDecimal
public boolean isByteArray
public boolean isBinary
public boolean isFile
public boolean isBoolean
public boolean isDate
public boolean isDateTime
public boolean isUuid
public boolean isUri
public boolean isEmail
public boolean isNull
public boolean isFreeFormObject
public boolean isAnyType
public boolean isArray
public boolean isMap
public boolean isEnum
public boolean isReadOnly
public boolean isWriteOnly
public boolean isNullable
public boolean isSelfReference
public boolean isCircularReference
public boolean isDiscriminator
public CodegenProperty items
public CodegenProperty additionalProperties
public List<CodegenProperty> vars
public List<CodegenProperty> requiredVars
public CodegenProperty mostInnerItems
public boolean hasValidation
public boolean isInherited
public String discriminatorValue
public String nameInLowerCase
public String nameInCamelCase
public String nameInSnakeCase
public String enumName
public Integer maxItems
public Integer minItems
public boolean isXmlAttribute
public String xmlPrefix
public String xmlName
public String xmlNamespace
public boolean isXmlWrapped
public String getBaseName()
public void setBaseName(String baseName)
public String getComplexType()
public void setComplexType(String complexType)
public String getGetter()
public void setGetter(String getter)
public String getSetter()
public void setSetter(String setter)
public String getDescription()
public void setDescription(String description)
@Deprecated public String getDatatype()
getDataType() instead.public String getDataType()
public void setDatatype(String datatype)
public String getDatatypeWithEnum()
public void setDatatypeWithEnum(String datatypeWithEnum)
public String getDataFormat()
public void setDataFormat(String dataFormat)
public String getName()
public void setName(String name)
public String getMin()
public void setMin(String min)
public String getMax()
public void setMax(String max)
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
public String getDefaultValueWithParam()
public void setDefaultValueWithParam(String defaultValueWithParam)
public String getBaseType()
public void setBaseType(String baseType)
public String getContainerType()
public void setContainerType(String containerType)
public String getTitle()
public void setTitle(String title)
public String getUnescapedDescription()
public void setUnescapedDescription(String unescapedDescription)
public Integer getMaxLength()
getMaxLength in interface IJsonSchemaValidationPropertiespublic void setMaxLength(Integer maxLength)
setMaxLength in interface IJsonSchemaValidationPropertiespublic Integer getMinLength()
getMinLength in interface IJsonSchemaValidationPropertiespublic void setMinLength(Integer minLength)
setMinLength in interface IJsonSchemaValidationPropertiespublic String getPattern()
getPattern in interface IJsonSchemaValidationPropertiespublic void setPattern(String pattern)
setPattern in interface IJsonSchemaValidationPropertiespublic String getExample()
public void setExample(String example)
public String getJsonSchema()
public void setJsonSchema(String jsonSchema)
public String getMinimum()
getMinimum in interface IJsonSchemaValidationPropertiespublic void setMinimum(String minimum)
setMinimum in interface IJsonSchemaValidationPropertiespublic boolean getExclusiveMaximum()
getExclusiveMaximum in interface IJsonSchemaValidationPropertiespublic String getMaximum()
getMaximum in interface IJsonSchemaValidationPropertiespublic void setMaximum(String maximum)
setMaximum in interface IJsonSchemaValidationPropertiespublic boolean getExclusiveMinimum()
getExclusiveMinimum in interface IJsonSchemaValidationPropertiespublic void setExclusiveMinimum(boolean exclusiveMinimum)
setExclusiveMinimum in interface IJsonSchemaValidationPropertiespublic boolean getIExclusiveMaximum()
public void setExclusiveMaximum(boolean exclusiveMaximum)
setExclusiveMaximum in interface IJsonSchemaValidationPropertiespublic boolean getRequired()
public void setRequired(boolean required)
public CodegenProperty getItems()
getItems in interface IJsonSchemaValidationPropertiespublic void setItems(CodegenProperty items)
setItems in interface IJsonSchemaValidationPropertiespublic CodegenProperty getAdditionalProperties()
getAdditionalProperties in interface IJsonSchemaValidationPropertiespublic void setAdditionalProperties(CodegenProperty additionalProperties)
setAdditionalProperties in interface IJsonSchemaValidationPropertiespublic boolean getIsModel()
getIsModel in interface IJsonSchemaValidationPropertiespublic void setIsModel(boolean isModel)
setIsModel in interface IJsonSchemaValidationPropertiespublic boolean getIsDate()
getIsDate in interface IJsonSchemaValidationPropertiespublic void setIsDate(boolean isDate)
setIsDate in interface IJsonSchemaValidationPropertiespublic boolean getIsDateTime()
getIsDateTime in interface IJsonSchemaValidationPropertiespublic void setIsDateTime(boolean isDateTime)
setIsDateTime in interface IJsonSchemaValidationPropertiespublic boolean getIsMap()
getIsMap in interface IJsonSchemaValidationPropertiespublic void setIsMap(boolean isMap)
setIsMap in interface IJsonSchemaValidationPropertiespublic boolean getIsArray()
getIsArray in interface IJsonSchemaValidationPropertiespublic void setIsArray(boolean isArray)
setIsArray in interface IJsonSchemaValidationPropertiespublic String getNameInLowerCase()
public void setNameInLowerCase(String nameInLowerCase)
public String getNameInCamelCase()
public void setNameInCamelCase(String nameInCamelCase)
public String getNameInSnakeCase()
public String getEnumName()
public void setEnumName(String enumName)
public Integer getMaxItems()
getMaxItems in interface IJsonSchemaValidationPropertiespublic void setMaxItems(Integer maxItems)
setMaxItems in interface IJsonSchemaValidationPropertiespublic Integer getMinItems()
getMinItems in interface IJsonSchemaValidationPropertiespublic void setMinItems(Integer minItems)
setMinItems in interface IJsonSchemaValidationPropertiespublic String getXmlPrefix()
public void setXmlPrefix(String xmlPrefix)
public String getXmlName()
public void setXmlName(String xmlName)
public String getXmlNamespace()
public void setXmlNamespace(String xmlNamespace)
public CodegenProperty clone()
public boolean getUniqueItems()
getUniqueItems in interface IJsonSchemaValidationPropertiespublic void setUniqueItems(boolean uniqueItems)
setUniqueItems in interface IJsonSchemaValidationPropertiespublic Integer getMinProperties()
getMinProperties in interface IJsonSchemaValidationPropertiespublic void setMinProperties(Integer minProperties)
setMinProperties in interface IJsonSchemaValidationPropertiespublic Integer getMaxProperties()
getMaxProperties in interface IJsonSchemaValidationPropertiespublic void setMaxProperties(Integer maxProperties)
setMaxProperties in interface IJsonSchemaValidationPropertiespublic Number getMultipleOf()
getMultipleOf in interface IJsonSchemaValidationPropertiespublic void setMultipleOf(Number multipleOf)
setMultipleOf in interface IJsonSchemaValidationPropertiespublic List<CodegenProperty> getVars()
getVars in interface IJsonSchemaValidationPropertiespublic void setVars(List<CodegenProperty> vars)
setVars in interface IJsonSchemaValidationPropertiespublic List<CodegenProperty> getRequiredVars()
getRequiredVars in interface IJsonSchemaValidationPropertiespublic void setRequiredVars(List<CodegenProperty> requiredVars)
setRequiredVars in interface IJsonSchemaValidationPropertiespublic boolean getIsNull()
getIsNull in interface IJsonSchemaValidationPropertiespublic void setIsNull(boolean isNull)
setIsNull in interface IJsonSchemaValidationPropertiespublic boolean getHasValidation()
getHasValidation in interface IJsonSchemaValidationPropertiespublic void setHasValidation(boolean hasValidation)
setHasValidation in interface IJsonSchemaValidationPropertiesCopyright © 2021. All rights reserved.