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 Details

    • 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
    • schemaType

      public String schemaType
    • 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
    • _enum

      public List<String> _enum
    • allowableValues

      public Map<String,Object> allowableValues
    • 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
  • Constructor Details

    • CodegenProperty

      public CodegenProperty()
  • Method Details

    • 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)
    • getSchemaType

      public String getSchemaType()
    • setSchemaType

      public void setSchemaType(String schemaType)
    • 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

      public List<String> get_enum()
    • set_enum

      public void set_enum(List<String> _enum)
    • getAllowableValues

      public Map<String,Object> getAllowableValues()
    • setAllowableValues

      public void setAllowableValues(Map<String,Object> allowableValues)
    • 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()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • clone

      public CodegenProperty clone()
      Overrides:
      clone in class Object