Package io.swagger.codegen.v3
Class CodegenProperty
java.lang.Object
io.swagger.codegen.v3.CodegenObject
io.swagger.codegen.v3.CodegenProperty
- All Implemented Interfaces:
VendorExtendable,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionA free-form property to include an example of an instance for this schema.booleanbooleanmaxLength validation for strings, see http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.2.1minLength validation for strings, see http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.2.2booleanpattern validation for strings, see http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.2.3booleanbooleanThe 'description' string without escape charcters needed by some programming languages/targetsFields inherited from class io.swagger.codegen.v3.CodegenObject
vendorExtensionsFields inherited from interface io.swagger.codegen.v3.VendorExtendable
PREFIX_HAS, PREFIX_IS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanget_enum()booleanbooleangetItems()getMax()getMin()getName()booleanbooleanbooleangetTitle()inthashCode()voidvoidsetAllowableValues(Map<String, Object> allowableValues) voidsetBaseName(String baseName) voidsetBaseType(String baseType) voidsetComplexType(String complexType) voidsetContainerType(String containerType) voidsetDataFormat(String dataFormat) voidsetDatatype(String datatype) voidsetDatatypeWithEnum(String datatypeWithEnum) voidsetDefaultValue(String defaultValue) voidsetDefaultValueWithParam(String defaultValueWithParam) voidsetDescription(String description) voidsetEnumName(String enumName) voidsetExample(String example) voidsetExclusiveMaximum(boolean exclusiveMaximum) voidsetExclusiveMinimum(boolean exclusiveMinimum) voidvoidsetItems(CodegenProperty items) voidsetJsonSchema(String jsonSchema) voidvoidsetMaximum(String maximum) voidsetMaxItems(Integer maxItems) voidsetMaxLength(Integer maxLength) voidvoidsetMinimum(String minimum) voidsetMinItems(Integer minItems) voidsetMinLength(Integer minLength) voidvoidsetNameInCamelCase(String nameInCamelCase) voidsetNullable(boolean nullable) voidsetPattern(String pattern) voidsetRequired(boolean required) voidsetSchemaType(String schemaType) voidsetSecondaryParam(boolean secondaryParam) voidvoidvoidsetUnescapedDescription(String unescapedDescription) voidsetXmlName(String xmlName) voidsetXmlNamespace(String xmlNamespace) voidsetXmlPrefix(String xmlPrefix) toString()Methods inherited from class io.swagger.codegen.v3.CodegenObject
getBooleanValue, getHasHeaders, getHasInnerObject, getHasMore, getIsAlias, getIsArrayModel, getIsBinary, getIsBoolean, getIsByteArray, getIsCollectionFormatMulti, getIsContainer, getIsDate, getIsDateTime, getIsDefault, getIsDouble, getIsEnum, getIsFile, getIsFloat, getIsInteger, getIsListContainer, getIsLong, getIsMapContainer, getIsMultipart, getIsNotContainer, getIsNullable, getIsNumber, getIsNumeric, getIsObject, getIsPrimitiveType, getIsReadOnly, getIsResponseBinary, getIsResponseFile, getIsString, getIsUuid, getVendorExtensions, setVendorExtensions
-
Field Details
-
baseName
-
complexType
-
getter
-
setter
-
description
-
datatype
-
datatypeWithEnum
-
dataFormat
-
name
-
min
-
max
-
defaultValue
-
defaultValueWithParam
-
baseType
-
containerType
-
title
-
schemaType
-
unescapedDescription
The 'description' string without escape charcters needed by some programming languages/targets -
maxLength
maxLength validation for strings, see http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.2.1 -
minLength
minLength validation for strings, see http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.2.2 -
pattern
pattern validation for strings, see http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.2.3 -
example
A free-form property to include an example of an instance for this schema. -
jsonSchema
-
minimum
-
maximum
-
exclusiveMinimum
public boolean exclusiveMinimum -
exclusiveMaximum
public boolean exclusiveMaximum -
required
public boolean required -
secondaryParam
public boolean secondaryParam -
nullable
public boolean nullable -
_enum
-
allowableValues
-
items
-
discriminatorValue
-
nameInCamelCase
-
enumName
-
maxItems
-
minItems
-
xmlPrefix
-
xmlName
-
xmlNamespace
-
-
Constructor Details
-
CodegenProperty
public CodegenProperty()
-
-
Method Details
-
getBaseName
-
setBaseName
-
getComplexType
-
setComplexType
-
getGetter
-
setGetter
-
getSetter
-
setSetter
-
getDescription
-
setDescription
-
getDatatype
-
setDatatype
-
getDatatypeWithEnum
-
setDatatypeWithEnum
-
getDataFormat
-
setDataFormat
-
getName
-
setName
-
getMin
-
setMin
-
getMax
-
setMax
-
getDefaultValue
-
setDefaultValue
-
getDefaultValueWithParam
-
setDefaultValueWithParam
-
getBaseType
-
setBaseType
-
getContainerType
-
setContainerType
-
getTitle
-
setTitle
-
getUnescapedDescription
-
setUnescapedDescription
-
getMaxLength
-
setMaxLength
-
getMinLength
-
setMinLength
-
getPattern
-
setPattern
-
getExample
-
setExample
-
getJsonSchema
-
setJsonSchema
-
getMinimum
-
setMinimum
-
getMaximum
-
setMaximum
-
getSchemaType
-
setSchemaType
-
getExclusiveMinimum
public boolean getExclusiveMinimum() -
setExclusiveMinimum
public void setExclusiveMinimum(boolean exclusiveMinimum) -
getIExclusiveMaximum
public boolean getIExclusiveMaximum() -
setExclusiveMaximum
public void setExclusiveMaximum(boolean exclusiveMaximum) -
getRequired
public boolean getRequired() -
setRequired
public void setRequired(boolean required) -
getSecondaryParam
public boolean getSecondaryParam() -
setSecondaryParam
public void setSecondaryParam(boolean secondaryParam) -
getNullable
public boolean getNullable() -
setNullable
public void setNullable(boolean nullable) -
get_enum
-
set_enum
-
getAllowableValues
-
setAllowableValues
-
getItems
-
setItems
-
getNameInCamelCase
-
setNameInCamelCase
-
getEnumName
-
setEnumName
-
getMaxItems
-
setMaxItems
-
getMinItems
-
setMinItems
-
getXmlPrefix
-
setXmlPrefix
-
getXmlName
-
setXmlName
-
getXmlNamespace
-
setXmlNamespace
-
getMoreNonReadOnly
-
toString
-
hashCode
public int hashCode() -
equals
-
clone
-