[Java] add nullable annotation to pojo template for non-required fields (#3409)

* add nullable annotation to pojo template

* add jsr305 dependency

* jsr305 dependency on all java build.gradle files

* jsr305 dependency on all java pom.xml files

* update samples

* more pom updates

* more sample/template updates
This commit is contained in:
kassim
2019-07-25 04:35:18 +02:00
committed by William Cheng
parent a0dd7394ac
commit ee538be964
994 changed files with 3525 additions and 0 deletions

View File

@@ -99,6 +99,7 @@ if(hasProperty('target') && target == 'android') {
dependencies {
compile 'io.swagger:swagger-annotations:1.5.22'
compile "com.google.code.findbugs:jsr305:3.0.2"
compile 'com.squareup.okhttp3:okhttp:3.14.2'
compile 'com.squareup.okhttp3:logging-interceptor:3.14.2'
compile 'com.google.code.gson:gson:2.8.5'

View File

@@ -200,6 +200,12 @@
<artifactId>swagger-annotations</artifactId>
<version>${swagger-core-version}</version>
</dependency>
<!-- @Nullable annotation -->
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>

View File

@@ -49,6 +49,7 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> impleme
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getName() {
return name;

View File

@@ -50,6 +50,7 @@ public class AdditionalPropertiesArray extends HashMap<String, List> implements
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getName() {
return name;

View File

@@ -49,6 +49,7 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> implem
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getName() {
return name;

View File

@@ -98,6 +98,7 @@ public class AdditionalPropertiesClass implements Parcelable {
* Get mapString
* @return mapString
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, String> getMapString() {
return mapString;
@@ -124,6 +125,7 @@ public class AdditionalPropertiesClass implements Parcelable {
* Get mapNumber
* @return mapNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, BigDecimal> getMapNumber() {
return mapNumber;
@@ -150,6 +152,7 @@ public class AdditionalPropertiesClass implements Parcelable {
* Get mapInteger
* @return mapInteger
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, Integer> getMapInteger() {
return mapInteger;
@@ -176,6 +179,7 @@ public class AdditionalPropertiesClass implements Parcelable {
* Get mapBoolean
* @return mapBoolean
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, Boolean> getMapBoolean() {
return mapBoolean;
@@ -202,6 +206,7 @@ public class AdditionalPropertiesClass implements Parcelable {
* Get mapArrayInteger
* @return mapArrayInteger
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, List<Integer>> getMapArrayInteger() {
return mapArrayInteger;
@@ -228,6 +233,7 @@ public class AdditionalPropertiesClass implements Parcelable {
* Get mapArrayAnytype
* @return mapArrayAnytype
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, List<Object>> getMapArrayAnytype() {
return mapArrayAnytype;
@@ -254,6 +260,7 @@ public class AdditionalPropertiesClass implements Parcelable {
* Get mapMapString
* @return mapMapString
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, Map<String, String>> getMapMapString() {
return mapMapString;
@@ -280,6 +287,7 @@ public class AdditionalPropertiesClass implements Parcelable {
* Get mapMapAnytype
* @return mapMapAnytype
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, Map<String, Object>> getMapMapAnytype() {
return mapMapAnytype;
@@ -298,6 +306,7 @@ public class AdditionalPropertiesClass implements Parcelable {
* Get anytype1
* @return anytype1
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Object getAnytype1() {
return anytype1;
@@ -316,6 +325,7 @@ public class AdditionalPropertiesClass implements Parcelable {
* Get anytype2
* @return anytype2
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Object getAnytype2() {
return anytype2;
@@ -334,6 +344,7 @@ public class AdditionalPropertiesClass implements Parcelable {
* Get anytype3
* @return anytype3
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Object getAnytype3() {
return anytype3;

View File

@@ -49,6 +49,7 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> implem
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getName() {
return name;

View File

@@ -50,6 +50,7 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> impl
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getName() {
return name;

View File

@@ -49,6 +49,7 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> implements
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getName() {
return name;

View File

@@ -49,6 +49,7 @@ public class AdditionalPropertiesString extends HashMap<String, String> implemen
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getName() {
return name;

View File

@@ -52,6 +52,7 @@ public class Animal implements Parcelable {
* Get className
* @return className
**/
@ApiModelProperty(required = true, value = "")
public String getClassName() {
return className;
@@ -70,6 +71,7 @@ public class Animal implements Parcelable {
* Get color
* @return color
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getColor() {
return color;

View File

@@ -57,6 +57,7 @@ public class ArrayOfArrayOfNumberOnly implements Parcelable {
* Get arrayArrayNumber
* @return arrayArrayNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<List<BigDecimal>> getArrayArrayNumber() {
return arrayArrayNumber;

View File

@@ -57,6 +57,7 @@ public class ArrayOfNumberOnly implements Parcelable {
* Get arrayNumber
* @return arrayNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<BigDecimal> getArrayNumber() {
return arrayNumber;

View File

@@ -65,6 +65,7 @@ public class ArrayTest implements Parcelable {
* Get arrayOfString
* @return arrayOfString
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<String> getArrayOfString() {
return arrayOfString;
@@ -91,6 +92,7 @@ public class ArrayTest implements Parcelable {
* Get arrayArrayOfInteger
* @return arrayArrayOfInteger
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<List<Long>> getArrayArrayOfInteger() {
return arrayArrayOfInteger;
@@ -117,6 +119,7 @@ public class ArrayTest implements Parcelable {
* Get arrayArrayOfModel
* @return arrayArrayOfModel
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
return arrayArrayOfModel;

View File

@@ -66,6 +66,7 @@ public class Capitalization implements Parcelable {
* Get smallCamel
* @return smallCamel
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getSmallCamel() {
return smallCamel;
@@ -84,6 +85,7 @@ public class Capitalization implements Parcelable {
* Get capitalCamel
* @return capitalCamel
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getCapitalCamel() {
return capitalCamel;
@@ -102,6 +104,7 @@ public class Capitalization implements Parcelable {
* Get smallSnake
* @return smallSnake
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getSmallSnake() {
return smallSnake;
@@ -120,6 +123,7 @@ public class Capitalization implements Parcelable {
* Get capitalSnake
* @return capitalSnake
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getCapitalSnake() {
return capitalSnake;
@@ -138,6 +142,7 @@ public class Capitalization implements Parcelable {
* Get scAETHFlowPoints
* @return scAETHFlowPoints
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getScAETHFlowPoints() {
return scAETHFlowPoints;
@@ -156,6 +161,7 @@ public class Capitalization implements Parcelable {
* Name of the pet
* @return ATT_NAME
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Name of the pet ")
public String getATTNAME() {
return ATT_NAME;

View File

@@ -49,6 +49,7 @@ public class Cat extends Animal implements Parcelable {
* Get declawed
* @return declawed
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Boolean getDeclawed() {
return declawed;

View File

@@ -46,6 +46,7 @@ public class CatAllOf implements Parcelable {
* Get declawed
* @return declawed
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Boolean getDeclawed() {
return declawed;

View File

@@ -50,6 +50,7 @@ public class Category implements Parcelable {
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Long getId() {
return id;
@@ -68,6 +69,7 @@ public class Category implements Parcelable {
* Get name
* @return name
**/
@ApiModelProperty(required = true, value = "")
public String getName() {
return name;

View File

@@ -47,6 +47,7 @@ public class ClassModel implements Parcelable {
* Get propertyClass
* @return propertyClass
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getPropertyClass() {
return propertyClass;

View File

@@ -46,6 +46,7 @@ public class Client implements Parcelable {
* Get client
* @return client
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getClient() {
return client;

View File

@@ -49,6 +49,7 @@ public class Dog extends Animal implements Parcelable {
* Get breed
* @return breed
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getBreed() {
return breed;

View File

@@ -46,6 +46,7 @@ public class DogAllOf implements Parcelable {
* Get breed
* @return breed
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getBreed() {
return breed;

View File

@@ -146,6 +146,7 @@ public class EnumArrays implements Parcelable {
* Get justSymbol
* @return justSymbol
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public JustSymbolEnum getJustSymbol() {
return justSymbol;
@@ -172,6 +173,7 @@ public class EnumArrays implements Parcelable {
* Get arrayEnum
* @return arrayEnum
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<ArrayEnumEnum> getArrayEnum() {
return arrayEnum;

View File

@@ -255,6 +255,7 @@ public class EnumTest implements Parcelable {
* Get enumString
* @return enumString
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public EnumStringEnum getEnumString() {
return enumString;
@@ -273,6 +274,7 @@ public class EnumTest implements Parcelable {
* Get enumStringRequired
* @return enumStringRequired
**/
@ApiModelProperty(required = true, value = "")
public EnumStringRequiredEnum getEnumStringRequired() {
return enumStringRequired;
@@ -291,6 +293,7 @@ public class EnumTest implements Parcelable {
* Get enumInteger
* @return enumInteger
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public EnumIntegerEnum getEnumInteger() {
return enumInteger;
@@ -309,6 +312,7 @@ public class EnumTest implements Parcelable {
* Get enumNumber
* @return enumNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public EnumNumberEnum getEnumNumber() {
return enumNumber;
@@ -327,6 +331,7 @@ public class EnumTest implements Parcelable {
* Get outerEnum
* @return outerEnum
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public OuterEnum getOuterEnum() {
return outerEnum;

View File

@@ -52,6 +52,7 @@ public class FileSchemaTestClass implements Parcelable {
* Get file
* @return file
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public java.io.File getFile() {
return file;
@@ -78,6 +79,7 @@ public class FileSchemaTestClass implements Parcelable {
* Get files
* @return files
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<java.io.File> getFiles() {
return files;

View File

@@ -101,6 +101,7 @@ public class FormatTest implements Parcelable {
* maximum: 100
* @return integer
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer getInteger() {
return integer;
@@ -121,6 +122,7 @@ public class FormatTest implements Parcelable {
* maximum: 200
* @return int32
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer getInt32() {
return int32;
@@ -139,6 +141,7 @@ public class FormatTest implements Parcelable {
* Get int64
* @return int64
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Long getInt64() {
return int64;
@@ -159,6 +162,7 @@ public class FormatTest implements Parcelable {
* maximum: 543.2
* @return number
**/
@ApiModelProperty(required = true, value = "")
public BigDecimal getNumber() {
return number;
@@ -179,6 +183,7 @@ public class FormatTest implements Parcelable {
* maximum: 987.6
* @return _float
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Float getFloat() {
return _float;
@@ -199,6 +204,7 @@ public class FormatTest implements Parcelable {
* maximum: 123.4
* @return _double
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Double getDouble() {
return _double;
@@ -217,6 +223,7 @@ public class FormatTest implements Parcelable {
* Get string
* @return string
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getString() {
return string;
@@ -235,6 +242,7 @@ public class FormatTest implements Parcelable {
* Get _byte
* @return _byte
**/
@ApiModelProperty(required = true, value = "")
public byte[] getByte() {
return _byte;
@@ -253,6 +261,7 @@ public class FormatTest implements Parcelable {
* Get binary
* @return binary
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public File getBinary() {
return binary;
@@ -271,6 +280,7 @@ public class FormatTest implements Parcelable {
* Get date
* @return date
**/
@ApiModelProperty(required = true, value = "")
public LocalDate getDate() {
return date;
@@ -289,6 +299,7 @@ public class FormatTest implements Parcelable {
* Get dateTime
* @return dateTime
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public OffsetDateTime getDateTime() {
return dateTime;
@@ -307,6 +318,7 @@ public class FormatTest implements Parcelable {
* Get uuid
* @return uuid
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "")
public UUID getUuid() {
return uuid;
@@ -325,6 +337,7 @@ public class FormatTest implements Parcelable {
* Get password
* @return password
**/
@ApiModelProperty(required = true, value = "")
public String getPassword() {
return password;

View File

@@ -45,6 +45,7 @@ public class HasOnlyReadOnly implements Parcelable {
* Get bar
* @return bar
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getBar() {
return bar;
@@ -54,6 +55,7 @@ public class HasOnlyReadOnly implements Parcelable {
* Get foo
* @return foo
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getFoo() {
return foo;

View File

@@ -116,6 +116,7 @@ public class MapTest implements Parcelable {
* Get mapMapOfString
* @return mapMapOfString
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, Map<String, String>> getMapMapOfString() {
return mapMapOfString;
@@ -142,6 +143,7 @@ public class MapTest implements Parcelable {
* Get mapOfEnumString
* @return mapOfEnumString
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, InnerEnum> getMapOfEnumString() {
return mapOfEnumString;
@@ -168,6 +170,7 @@ public class MapTest implements Parcelable {
* Get directMap
* @return directMap
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, Boolean> getDirectMap() {
return directMap;
@@ -194,6 +197,7 @@ public class MapTest implements Parcelable {
* Get indirectMap
* @return indirectMap
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, Boolean> getIndirectMap() {
return indirectMap;

View File

@@ -60,6 +60,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable {
* Get uuid
* @return uuid
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public UUID getUuid() {
return uuid;
@@ -78,6 +79,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable {
* Get dateTime
* @return dateTime
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public OffsetDateTime getDateTime() {
return dateTime;
@@ -104,6 +106,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable {
* Get map
* @return map
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, Animal> getMap() {
return map;

View File

@@ -51,6 +51,7 @@ public class Model200Response implements Parcelable {
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer getName() {
return name;
@@ -69,6 +70,7 @@ public class Model200Response implements Parcelable {
* Get propertyClass
* @return propertyClass
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getPropertyClass() {
return propertyClass;

View File

@@ -54,6 +54,7 @@ public class ModelApiResponse implements Parcelable {
* Get code
* @return code
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer getCode() {
return code;
@@ -72,6 +73,7 @@ public class ModelApiResponse implements Parcelable {
* Get type
* @return type
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getType() {
return type;
@@ -90,6 +92,7 @@ public class ModelApiResponse implements Parcelable {
* Get message
* @return message
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getMessage() {
return message;

View File

@@ -47,6 +47,7 @@ public class ModelReturn implements Parcelable {
* Get _return
* @return _return
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer getReturn() {
return _return;

View File

@@ -59,6 +59,7 @@ public class Name implements Parcelable {
* Get name
* @return name
**/
@ApiModelProperty(required = true, value = "")
public Integer getName() {
return name;
@@ -72,6 +73,7 @@ public class Name implements Parcelable {
* Get snakeCase
* @return snakeCase
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer getSnakeCase() {
return snakeCase;
@@ -86,6 +88,7 @@ public class Name implements Parcelable {
* Get property
* @return property
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getProperty() {
return property;
@@ -99,6 +102,7 @@ public class Name implements Parcelable {
* Get _123number
* @return _123number
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer get123number() {
return _123number;

View File

@@ -47,6 +47,7 @@ public class NumberOnly implements Parcelable {
* Get justNumber
* @return justNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public BigDecimal getJustNumber() {
return justNumber;

View File

@@ -116,6 +116,7 @@ public class Order implements Parcelable {
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Long getId() {
return id;
@@ -134,6 +135,7 @@ public class Order implements Parcelable {
* Get petId
* @return petId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Long getPetId() {
return petId;
@@ -152,6 +154,7 @@ public class Order implements Parcelable {
* Get quantity
* @return quantity
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer getQuantity() {
return quantity;
@@ -170,6 +173,7 @@ public class Order implements Parcelable {
* Get shipDate
* @return shipDate
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public OffsetDateTime getShipDate() {
return shipDate;
@@ -188,6 +192,7 @@ public class Order implements Parcelable {
* Order Status
* @return status
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Order Status")
public StatusEnum getStatus() {
return status;
@@ -206,6 +211,7 @@ public class Order implements Parcelable {
* Get complete
* @return complete
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Boolean getComplete() {
return complete;

View File

@@ -55,6 +55,7 @@ public class OuterComposite implements Parcelable {
* Get myNumber
* @return myNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public BigDecimal getMyNumber() {
return myNumber;
@@ -73,6 +74,7 @@ public class OuterComposite implements Parcelable {
* Get myString
* @return myString
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getMyString() {
return myString;
@@ -91,6 +93,7 @@ public class OuterComposite implements Parcelable {
* Get myBoolean
* @return myBoolean
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Boolean getMyBoolean() {
return myBoolean;

View File

@@ -119,6 +119,7 @@ public class Pet implements Parcelable {
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Long getId() {
return id;
@@ -137,6 +138,7 @@ public class Pet implements Parcelable {
* Get category
* @return category
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Category getCategory() {
return category;
@@ -155,6 +157,7 @@ public class Pet implements Parcelable {
* Get name
* @return name
**/
@ApiModelProperty(example = "doggie", required = true, value = "")
public String getName() {
return name;
@@ -178,6 +181,7 @@ public class Pet implements Parcelable {
* Get photoUrls
* @return photoUrls
**/
@ApiModelProperty(required = true, value = "")
public List<String> getPhotoUrls() {
return photoUrls;
@@ -204,6 +208,7 @@ public class Pet implements Parcelable {
* Get tags
* @return tags
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<Tag> getTags() {
return tags;
@@ -222,6 +227,7 @@ public class Pet implements Parcelable {
* pet status in the store
* @return status
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "pet status in the store")
public StatusEnum getStatus() {
return status;

View File

@@ -45,6 +45,7 @@ public class ReadOnlyFirst implements Parcelable {
* Get bar
* @return bar
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getBar() {
return bar;
@@ -59,6 +60,7 @@ public class ReadOnlyFirst implements Parcelable {
* Get baz
* @return baz
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getBaz() {
return baz;

View File

@@ -46,6 +46,7 @@ public class SpecialModelName implements Parcelable {
* Get $specialPropertyName
* @return $specialPropertyName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Long get$SpecialPropertyName() {
return $specialPropertyName;

View File

@@ -50,6 +50,7 @@ public class Tag implements Parcelable {
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Long getId() {
return id;
@@ -68,6 +69,7 @@ public class Tag implements Parcelable {
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getName() {
return name;

View File

@@ -65,6 +65,7 @@ public class TypeHolderDefault implements Parcelable {
* Get stringItem
* @return stringItem
**/
@ApiModelProperty(required = true, value = "")
public String getStringItem() {
return stringItem;
@@ -83,6 +84,7 @@ public class TypeHolderDefault implements Parcelable {
* Get numberItem
* @return numberItem
**/
@ApiModelProperty(required = true, value = "")
public BigDecimal getNumberItem() {
return numberItem;
@@ -101,6 +103,7 @@ public class TypeHolderDefault implements Parcelable {
* Get integerItem
* @return integerItem
**/
@ApiModelProperty(required = true, value = "")
public Integer getIntegerItem() {
return integerItem;
@@ -119,6 +122,7 @@ public class TypeHolderDefault implements Parcelable {
* Get boolItem
* @return boolItem
**/
@ApiModelProperty(required = true, value = "")
public Boolean getBoolItem() {
return boolItem;
@@ -142,6 +146,7 @@ public class TypeHolderDefault implements Parcelable {
* Get arrayItem
* @return arrayItem
**/
@ApiModelProperty(required = true, value = "")
public List<Integer> getArrayItem() {
return arrayItem;

View File

@@ -65,6 +65,7 @@ public class TypeHolderExample implements Parcelable {
* Get stringItem
* @return stringItem
**/
@ApiModelProperty(example = "what", required = true, value = "")
public String getStringItem() {
return stringItem;
@@ -83,6 +84,7 @@ public class TypeHolderExample implements Parcelable {
* Get numberItem
* @return numberItem
**/
@ApiModelProperty(example = "1.234", required = true, value = "")
public BigDecimal getNumberItem() {
return numberItem;
@@ -101,6 +103,7 @@ public class TypeHolderExample implements Parcelable {
* Get integerItem
* @return integerItem
**/
@ApiModelProperty(example = "-2", required = true, value = "")
public Integer getIntegerItem() {
return integerItem;
@@ -119,6 +122,7 @@ public class TypeHolderExample implements Parcelable {
* Get boolItem
* @return boolItem
**/
@ApiModelProperty(example = "true", required = true, value = "")
public Boolean getBoolItem() {
return boolItem;
@@ -142,6 +146,7 @@ public class TypeHolderExample implements Parcelable {
* Get arrayItem
* @return arrayItem
**/
@ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
public List<Integer> getArrayItem() {
return arrayItem;

View File

@@ -74,6 +74,7 @@ public class User implements Parcelable {
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Long getId() {
return id;
@@ -92,6 +93,7 @@ public class User implements Parcelable {
* Get username
* @return username
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getUsername() {
return username;
@@ -110,6 +112,7 @@ public class User implements Parcelable {
* Get firstName
* @return firstName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getFirstName() {
return firstName;
@@ -128,6 +131,7 @@ public class User implements Parcelable {
* Get lastName
* @return lastName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getLastName() {
return lastName;
@@ -146,6 +150,7 @@ public class User implements Parcelable {
* Get email
* @return email
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getEmail() {
return email;
@@ -164,6 +169,7 @@ public class User implements Parcelable {
* Get password
* @return password
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getPassword() {
return password;
@@ -182,6 +188,7 @@ public class User implements Parcelable {
* Get phone
* @return phone
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getPhone() {
return phone;
@@ -200,6 +207,7 @@ public class User implements Parcelable {
* User Status
* @return userStatus
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "User Status")
public Integer getUserStatus() {
return userStatus;

View File

@@ -161,6 +161,7 @@ public class XmlItem implements Parcelable {
* Get attributeString
* @return attributeString
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "string", value = "")
public String getAttributeString() {
return attributeString;
@@ -179,6 +180,7 @@ public class XmlItem implements Parcelable {
* Get attributeNumber
* @return attributeNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "1.234", value = "")
public BigDecimal getAttributeNumber() {
return attributeNumber;
@@ -197,6 +199,7 @@ public class XmlItem implements Parcelable {
* Get attributeInteger
* @return attributeInteger
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "-2", value = "")
public Integer getAttributeInteger() {
return attributeInteger;
@@ -215,6 +218,7 @@ public class XmlItem implements Parcelable {
* Get attributeBoolean
* @return attributeBoolean
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "true", value = "")
public Boolean getAttributeBoolean() {
return attributeBoolean;
@@ -241,6 +245,7 @@ public class XmlItem implements Parcelable {
* Get wrappedArray
* @return wrappedArray
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<Integer> getWrappedArray() {
return wrappedArray;
@@ -259,6 +264,7 @@ public class XmlItem implements Parcelable {
* Get nameString
* @return nameString
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "string", value = "")
public String getNameString() {
return nameString;
@@ -277,6 +283,7 @@ public class XmlItem implements Parcelable {
* Get nameNumber
* @return nameNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "1.234", value = "")
public BigDecimal getNameNumber() {
return nameNumber;
@@ -295,6 +302,7 @@ public class XmlItem implements Parcelable {
* Get nameInteger
* @return nameInteger
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "-2", value = "")
public Integer getNameInteger() {
return nameInteger;
@@ -313,6 +321,7 @@ public class XmlItem implements Parcelable {
* Get nameBoolean
* @return nameBoolean
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "true", value = "")
public Boolean getNameBoolean() {
return nameBoolean;
@@ -339,6 +348,7 @@ public class XmlItem implements Parcelable {
* Get nameArray
* @return nameArray
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<Integer> getNameArray() {
return nameArray;
@@ -365,6 +375,7 @@ public class XmlItem implements Parcelable {
* Get nameWrappedArray
* @return nameWrappedArray
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<Integer> getNameWrappedArray() {
return nameWrappedArray;
@@ -383,6 +394,7 @@ public class XmlItem implements Parcelable {
* Get prefixString
* @return prefixString
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "string", value = "")
public String getPrefixString() {
return prefixString;
@@ -401,6 +413,7 @@ public class XmlItem implements Parcelable {
* Get prefixNumber
* @return prefixNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "1.234", value = "")
public BigDecimal getPrefixNumber() {
return prefixNumber;
@@ -419,6 +432,7 @@ public class XmlItem implements Parcelable {
* Get prefixInteger
* @return prefixInteger
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "-2", value = "")
public Integer getPrefixInteger() {
return prefixInteger;
@@ -437,6 +451,7 @@ public class XmlItem implements Parcelable {
* Get prefixBoolean
* @return prefixBoolean
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "true", value = "")
public Boolean getPrefixBoolean() {
return prefixBoolean;
@@ -463,6 +478,7 @@ public class XmlItem implements Parcelable {
* Get prefixArray
* @return prefixArray
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<Integer> getPrefixArray() {
return prefixArray;
@@ -489,6 +505,7 @@ public class XmlItem implements Parcelable {
* Get prefixWrappedArray
* @return prefixWrappedArray
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<Integer> getPrefixWrappedArray() {
return prefixWrappedArray;
@@ -507,6 +524,7 @@ public class XmlItem implements Parcelable {
* Get namespaceString
* @return namespaceString
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "string", value = "")
public String getNamespaceString() {
return namespaceString;
@@ -525,6 +543,7 @@ public class XmlItem implements Parcelable {
* Get namespaceNumber
* @return namespaceNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "1.234", value = "")
public BigDecimal getNamespaceNumber() {
return namespaceNumber;
@@ -543,6 +562,7 @@ public class XmlItem implements Parcelable {
* Get namespaceInteger
* @return namespaceInteger
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "-2", value = "")
public Integer getNamespaceInteger() {
return namespaceInteger;
@@ -561,6 +581,7 @@ public class XmlItem implements Parcelable {
* Get namespaceBoolean
* @return namespaceBoolean
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "true", value = "")
public Boolean getNamespaceBoolean() {
return namespaceBoolean;
@@ -587,6 +608,7 @@ public class XmlItem implements Parcelable {
* Get namespaceArray
* @return namespaceArray
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<Integer> getNamespaceArray() {
return namespaceArray;
@@ -613,6 +635,7 @@ public class XmlItem implements Parcelable {
* Get namespaceWrappedArray
* @return namespaceWrappedArray
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<Integer> getNamespaceWrappedArray() {
return namespaceWrappedArray;
@@ -631,6 +654,7 @@ public class XmlItem implements Parcelable {
* Get prefixNsString
* @return prefixNsString
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "string", value = "")
public String getPrefixNsString() {
return prefixNsString;
@@ -649,6 +673,7 @@ public class XmlItem implements Parcelable {
* Get prefixNsNumber
* @return prefixNsNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "1.234", value = "")
public BigDecimal getPrefixNsNumber() {
return prefixNsNumber;
@@ -667,6 +692,7 @@ public class XmlItem implements Parcelable {
* Get prefixNsInteger
* @return prefixNsInteger
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "-2", value = "")
public Integer getPrefixNsInteger() {
return prefixNsInteger;
@@ -685,6 +711,7 @@ public class XmlItem implements Parcelable {
* Get prefixNsBoolean
* @return prefixNsBoolean
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "true", value = "")
public Boolean getPrefixNsBoolean() {
return prefixNsBoolean;
@@ -711,6 +738,7 @@ public class XmlItem implements Parcelable {
* Get prefixNsArray
* @return prefixNsArray
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<Integer> getPrefixNsArray() {
return prefixNsArray;
@@ -737,6 +765,7 @@ public class XmlItem implements Parcelable {
* Get prefixNsWrappedArray
* @return prefixNsWrappedArray
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<Integer> getPrefixNsWrappedArray() {
return prefixNsWrappedArray;