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
public class CodegenProperty extends CodegenObject implements Cloneable
-
-
Field Summary
Fields Modifier and Type Field Description List<String>
_enum
Map<String,Object>
allowableValues
String
baseName
String
baseType
String
complexType
String
containerType
String
dataFormat
String
datatype
String
datatypeWithEnum
String
defaultValue
String
defaultValueWithParam
String
description
String
discriminatorValue
String
enumName
String
example
A free-form property to include an example of an instance for this schema.boolean
exclusiveMaximum
boolean
exclusiveMinimum
String
getter
CodegenProperty
items
String
jsonSchema
String
max
String
maximum
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
Integer
minItems
Integer
minLength
minLength validation for strings, see http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.2.2String
name
String
nameInCamelCase
boolean
nullable
String
pattern
pattern validation for strings, see http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.2.3boolean
required
boolean
secondaryParam
String
setter
String
title
String
unescapedDescription
The 'description' string without escape charcters needed by some programming languages/targetsString
xmlName
String
xmlNamespace
String
xmlPrefix
-
Fields inherited from class io.swagger.codegen.v3.CodegenObject
vendorExtensions
-
Fields inherited from interface io.swagger.codegen.v3.VendorExtendable
PREFIX_HAS, PREFIX_IS
-
-
Constructor Summary
Constructors Constructor Description CodegenProperty()
-
Method Summary
-
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 Detail
-
baseName
public String baseName
-
complexType
public String complexType
-
getter
public String getter
-
setter
public String setter
-
description
public String description
-
datatype
public String datatype
-
datatypeWithEnum
public String datatypeWithEnum
-
dataFormat
public String dataFormat
-
name
public String name
-
min
public String min
-
max
public String max
-
defaultValue
public String defaultValue
-
defaultValueWithParam
public String defaultValueWithParam
-
baseType
public String baseType
-
containerType
public String containerType
-
title
public String title
-
unescapedDescription
public String unescapedDescription
The 'description' string without escape charcters 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
-
maximum
public String maximum
-
exclusiveMinimum
public boolean exclusiveMinimum
-
exclusiveMaximum
public boolean exclusiveMaximum
-
required
public boolean required
-
secondaryParam
public boolean secondaryParam
-
nullable
public boolean nullable
-
items
public CodegenProperty items
-
discriminatorValue
public String discriminatorValue
-
nameInCamelCase
public String nameInCamelCase
-
enumName
public String enumName
-
maxItems
public Integer maxItems
-
minItems
public Integer minItems
-
xmlPrefix
public String xmlPrefix
-
xmlName
public String xmlName
-
xmlNamespace
public String xmlNamespace
-
-
Method Detail
-
getBaseName
public String getBaseName()
-
setBaseName
public void setBaseName(String baseName)
-
getComplexType
public String getComplexType()
-
setComplexType
public void setComplexType(String complexType)
-
getGetter
public String getGetter()
-
setGetter
public void setGetter(String getter)
-
getSetter
public String getSetter()
-
setSetter
public void setSetter(String setter)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getDatatype
public String getDatatype()
-
setDatatype
public void setDatatype(String datatype)
-
getDatatypeWithEnum
public String getDatatypeWithEnum()
-
setDatatypeWithEnum
public void setDatatypeWithEnum(String datatypeWithEnum)
-
getDataFormat
public String getDataFormat()
-
setDataFormat
public void setDataFormat(String dataFormat)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getMin
public String getMin()
-
setMin
public void setMin(String min)
-
getMax
public String getMax()
-
setMax
public void setMax(String max)
-
getDefaultValue
public String getDefaultValue()
-
setDefaultValue
public void setDefaultValue(String defaultValue)
-
getDefaultValueWithParam
public String getDefaultValueWithParam()
-
setDefaultValueWithParam
public void setDefaultValueWithParam(String defaultValueWithParam)
-
getBaseType
public String getBaseType()
-
setBaseType
public void setBaseType(String baseType)
-
getContainerType
public String getContainerType()
-
setContainerType
public void setContainerType(String containerType)
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
getUnescapedDescription
public String getUnescapedDescription()
-
setUnescapedDescription
public void setUnescapedDescription(String unescapedDescription)
-
getMaxLength
public Integer getMaxLength()
-
setMaxLength
public void setMaxLength(Integer maxLength)
-
getMinLength
public Integer getMinLength()
-
setMinLength
public void setMinLength(Integer minLength)
-
getPattern
public String getPattern()
-
setPattern
public void setPattern(String pattern)
-
getExample
public String getExample()
-
setExample
public void setExample(String example)
-
getJsonSchema
public String getJsonSchema()
-
setJsonSchema
public void setJsonSchema(String jsonSchema)
-
getMinimum
public String getMinimum()
-
setMinimum
public void setMinimum(String minimum)
-
getMaximum
public String getMaximum()
-
setMaximum
public void setMaximum(String maximum)
-
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)
-
getItems
public CodegenProperty getItems()
-
setItems
public void setItems(CodegenProperty items)
-
getNameInCamelCase
public String getNameInCamelCase()
-
setNameInCamelCase
public void setNameInCamelCase(String nameInCamelCase)
-
getEnumName
public String getEnumName()
-
setEnumName
public void setEnumName(String enumName)
-
getMaxItems
public Integer getMaxItems()
-
setMaxItems
public void setMaxItems(Integer maxItems)
-
getMinItems
public Integer getMinItems()
-
setMinItems
public void setMinItems(Integer minItems)
-
getXmlPrefix
public String getXmlPrefix()
-
setXmlPrefix
public void setXmlPrefix(String xmlPrefix)
-
getXmlName
public String getXmlName()
-
setXmlName
public void setXmlName(String xmlName)
-
getXmlNamespace
public String getXmlNamespace()
-
setXmlNamespace
public void setXmlNamespace(String xmlNamespace)
-
getMoreNonReadOnly
public Boolean getMoreNonReadOnly()
-
clone
public CodegenProperty clone()
-
-