forked from loafle/openapi-generator-original
Merge remote-tracking branch 'origin/master' into 2.3.0
This commit is contained in:
@@ -7,3 +7,4 @@
|
|||||||
./bin/spring-mvc-petstore-j8-async-server.sh
|
./bin/spring-mvc-petstore-j8-async-server.sh
|
||||||
./bin/springboot-petstore-server.sh
|
./bin/springboot-petstore-server.sh
|
||||||
./bin/spring-mvc-petstore-server.sh
|
./bin/spring-mvc-petstore-server.sh
|
||||||
|
./bin/springboot-petstore-server-beanvalidation.sh
|
||||||
4
bin/springboot-petstore-server-beanvalidation.json
Normal file
4
bin/springboot-petstore-server-beanvalidation.json
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"library": "spring-boot",
|
||||||
|
"useBeanValidation": true
|
||||||
|
}
|
||||||
34
bin/springboot-petstore-server-beanvalidation.sh
Executable file
34
bin/springboot-petstore-server-beanvalidation.sh
Executable file
@@ -0,0 +1,34 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SCRIPT="$0"
|
||||||
|
|
||||||
|
while [ -h "$SCRIPT" ] ; do
|
||||||
|
ls=`ls -ld "$SCRIPT"`
|
||||||
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||||
|
if expr "$link" : '/.*' > /dev/null; then
|
||||||
|
SCRIPT="$link"
|
||||||
|
else
|
||||||
|
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ ! -d "${APP_DIR}" ]; then
|
||||||
|
APP_DIR=`dirname "$SCRIPT"`/..
|
||||||
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
|
fi
|
||||||
|
|
||||||
|
executable="./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn clean package
|
||||||
|
fi
|
||||||
|
|
||||||
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
|
ags="$@ generate -t modules/swagger-codegen/src/main/resources/JavaSpring -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l spring -o samples/server/petstore/springboot-beanvalidation -c bin/springboot-petstore-server-beanvalidation.json -DhideGenerationTimestamp=true"
|
||||||
|
|
||||||
|
echo "Removing files and folders under samples/server/petstore/springboot-beanvalidation/src/main"
|
||||||
|
rm -rf samples/server/petstore/springboot-beanvalidation/src/main
|
||||||
|
find samples/server/petstore/springboot-beanvalidation -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
|
||||||
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
@@ -44,6 +44,11 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#parcela
|
|||||||
{{#isListContainer}}
|
{{#isListContainer}}
|
||||||
|
|
||||||
public {{classname}} add{{nameInCamelCase}}Item({{{items.datatypeWithEnum}}} {{name}}Item) {
|
public {{classname}} add{{nameInCamelCase}}Item({{{items.datatypeWithEnum}}} {{name}}Item) {
|
||||||
|
{{^required}}
|
||||||
|
if (this.{{name}} == null) {
|
||||||
|
this.{{name}} = {{{defaultValue}}};
|
||||||
|
}
|
||||||
|
{{/required}}
|
||||||
this.{{name}}.add({{name}}Item);
|
this.{{name}}.add({{name}}Item);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -51,6 +56,11 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#parcela
|
|||||||
{{#isMapContainer}}
|
{{#isMapContainer}}
|
||||||
|
|
||||||
public {{classname}} put{{nameInCamelCase}}Item(String key, {{{items.datatypeWithEnum}}} {{name}}Item) {
|
public {{classname}} put{{nameInCamelCase}}Item(String key, {{{items.datatypeWithEnum}}} {{name}}Item) {
|
||||||
|
{{^required}}
|
||||||
|
if (this.{{name}} == null) {
|
||||||
|
this.{{name}} = {{{defaultValue}}};
|
||||||
|
}
|
||||||
|
{{/required}}
|
||||||
this.{{name}}.put(key, {{name}}Item);
|
this.{{name}}.put(key, {{name}}Item);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,11 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {{#seriali
|
|||||||
{{#isListContainer}}
|
{{#isListContainer}}
|
||||||
|
|
||||||
public {{classname}} add{{nameInCamelCase}}Item({{{items.datatypeWithEnum}}} {{name}}Item) {
|
public {{classname}} add{{nameInCamelCase}}Item({{{items.datatypeWithEnum}}} {{name}}Item) {
|
||||||
|
{{^required}}
|
||||||
|
if (this.{{name}} == null) {
|
||||||
|
this.{{name}} = {{{defaultValue}}};
|
||||||
|
}
|
||||||
|
{{/required}}
|
||||||
this.{{name}}.add({{name}}Item);
|
this.{{name}}.add({{name}}Item);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -47,6 +52,11 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {{#seriali
|
|||||||
{{#isMapContainer}}
|
{{#isMapContainer}}
|
||||||
|
|
||||||
public {{classname}} put{{nameInCamelCase}}Item(String key, {{{items.datatypeWithEnum}}} {{name}}Item) {
|
public {{classname}} put{{nameInCamelCase}}Item(String key, {{{items.datatypeWithEnum}}} {{name}}Item) {
|
||||||
|
{{^required}}
|
||||||
|
if (this.{{name}} == null) {
|
||||||
|
this.{{name}} = {{{defaultValue}}};
|
||||||
|
}
|
||||||
|
{{/required}}
|
||||||
this.{{name}}.put(key, {{name}}Item);
|
this.{{name}}.put(key, {{name}}Item);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,6 +38,11 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {{#seriali
|
|||||||
{{#isListContainer}}
|
{{#isListContainer}}
|
||||||
|
|
||||||
public {{classname}} add{{nameInCamelCase}}Item({{{items.datatypeWithEnum}}} {{name}}Item) {
|
public {{classname}} add{{nameInCamelCase}}Item({{{items.datatypeWithEnum}}} {{name}}Item) {
|
||||||
|
{{^required}}
|
||||||
|
if (this.{{name}} == null) {
|
||||||
|
this.{{name}} = {{{defaultValue}}};
|
||||||
|
}
|
||||||
|
{{/required}}
|
||||||
this.{{name}}.add({{name}}Item);
|
this.{{name}}.add({{name}}Item);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -45,6 +50,11 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {{#seriali
|
|||||||
{{#isMapContainer}}
|
{{#isMapContainer}}
|
||||||
|
|
||||||
public {{classname}} put{{nameInCamelCase}}Item(String key, {{{items.datatypeWithEnum}}} {{name}}Item) {
|
public {{classname}} put{{nameInCamelCase}}Item(String key, {{{items.datatypeWithEnum}}} {{name}}Item) {
|
||||||
|
{{^required}}
|
||||||
|
if (this.{{name}} == null) {
|
||||||
|
this.{{name}} = {{{defaultValue}}};
|
||||||
|
}
|
||||||
|
{{/required}}
|
||||||
this.{{name}}.put(key, {{name}}Item);
|
this.{{name}}.put(key, {{name}}Item);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ import java.util.concurrent.{{^jdk8}}Callable{{/jdk8}}{{#jdk8}}CompletableFuture
|
|||||||
{{/async}}
|
{{/async}}
|
||||||
{{#useBeanValidation}}
|
{{#useBeanValidation}}
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
{{/useBeanValidation}}
|
{{/useBeanValidation}}
|
||||||
{{>generatedAnnotation}}
|
{{>generatedAnnotation}}
|
||||||
@Api(value = "{{{baseName}}}", description = "the {{{baseName}}} API")
|
@Api(value = "{{{baseName}}}", description = "the {{{baseName}}} API")
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ import java.util.concurrent.Callable;
|
|||||||
{{/async}}{{/jdk8-no-delegate}}
|
{{/async}}{{/jdk8-no-delegate}}
|
||||||
{{#useBeanValidation}}
|
{{#useBeanValidation}}
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
{{/useBeanValidation}}
|
{{/useBeanValidation}}
|
||||||
{{>generatedAnnotation}}
|
{{>generatedAnnotation}}
|
||||||
@Controller
|
@Controller
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{{#isBodyParam}}@ApiParam(value = "{{{description}}}" {{#required}},required=true{{/required}} {{^isContainer}}{{#allowableValues}}, allowableValues="{{{allowableValues}}}"{{/allowableValues}}{{/isContainer}}{{#defaultValue}}, defaultValue="{{{defaultValue}}}"{{/defaultValue}}) @RequestBody {{{dataType}}} {{paramName}}{{/isBodyParam}}
|
{{#isBodyParam}}@ApiParam(value = "{{{description}}}" {{#required}},required=true{{/required}} {{^isContainer}}{{#allowableValues}}, allowableValues="{{{allowableValues}}}"{{/allowableValues}}{{/isContainer}}{{#defaultValue}}, defaultValue="{{{defaultValue}}}"{{/defaultValue}}) {{#useBeanValidation}}@Valid{{/useBeanValidation}} @RequestBody {{{dataType}}} {{paramName}}{{/isBodyParam}}
|
||||||
@@ -43,6 +43,11 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {{#seriali
|
|||||||
{{#isListContainer}}
|
{{#isListContainer}}
|
||||||
|
|
||||||
public {{classname}} add{{nameInCamelCase}}Item({{{items.datatypeWithEnum}}} {{name}}Item) {
|
public {{classname}} add{{nameInCamelCase}}Item({{{items.datatypeWithEnum}}} {{name}}Item) {
|
||||||
|
{{^required}}
|
||||||
|
if (this.{{name}} == null) {
|
||||||
|
this.{{name}} = {{{defaultValue}}};
|
||||||
|
}
|
||||||
|
{{/required}}
|
||||||
this.{{name}}.add({{name}}Item);
|
this.{{name}}.add({{name}}Item);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -50,6 +55,11 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {{#seriali
|
|||||||
{{#isMapContainer}}
|
{{#isMapContainer}}
|
||||||
|
|
||||||
public {{classname}} put{{nameInCamelCase}}Item(String key, {{{items.datatypeWithEnum}}} {{name}}Item) {
|
public {{classname}} put{{nameInCamelCase}}Item(String key, {{{items.datatypeWithEnum}}} {{name}}Item) {
|
||||||
|
{{^required}}
|
||||||
|
if (this.{{name}} == null) {
|
||||||
|
this.{{name}} = {{{defaultValue}}};
|
||||||
|
}
|
||||||
|
{{/required}}
|
||||||
this.{{name}}.put(key, {{name}}Item);
|
this.{{name}}.put(key, {{name}}Item);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,11 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {{#seriali
|
|||||||
{{#isListContainer}}
|
{{#isListContainer}}
|
||||||
|
|
||||||
public {{classname}} add{{nameInCamelCase}}Item({{{items.datatypeWithEnum}}} {{name}}Item) {
|
public {{classname}} add{{nameInCamelCase}}Item({{{items.datatypeWithEnum}}} {{name}}Item) {
|
||||||
|
{{^required}}
|
||||||
|
if (this.{{name}} == null) {
|
||||||
|
this.{{name}} = {{{defaultValue}}};
|
||||||
|
}
|
||||||
|
{{/required}}
|
||||||
this.{{name}}.add({{name}}Item);
|
this.{{name}}.add({{name}}Item);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -47,6 +52,11 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {{#seriali
|
|||||||
{{#isMapContainer}}
|
{{#isMapContainer}}
|
||||||
|
|
||||||
public {{classname}} put{{nameInCamelCase}}Item(String key, {{{items.datatypeWithEnum}}} {{name}}Item) {
|
public {{classname}} put{{nameInCamelCase}}Item(String key, {{{items.datatypeWithEnum}}} {{name}}Item) {
|
||||||
|
{{^required}}
|
||||||
|
if (this.{{name}} == null) {
|
||||||
|
this.{{name}} = {{{defaultValue}}};
|
||||||
|
}
|
||||||
|
{{/required}}
|
||||||
this.{{name}}.put(key, {{name}}Item);
|
this.{{name}}.put(key, {{name}}Item);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ public:
|
|||||||
static utility::string_t parameterToString(utility::string_t value);
|
static utility::string_t parameterToString(utility::string_t value);
|
||||||
static utility::string_t parameterToString(int32_t value);
|
static utility::string_t parameterToString(int32_t value);
|
||||||
static utility::string_t parameterToString(int64_t value);
|
static utility::string_t parameterToString(int64_t value);
|
||||||
|
static utility::string_t parameterToString(float value);
|
||||||
static utility::string_t parameterToString(const utility::datetime &value);
|
static utility::string_t parameterToString(const utility::datetime &value);
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
|
|||||||
@@ -40,6 +40,11 @@ utility::string_t ApiClient::parameterToString(int32_t value)
|
|||||||
return utility::conversions::to_string_t(std::to_string(value));
|
return utility::conversions::to_string_t(std::to_string(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
utility::string_t ApiClient::parameterToString(float value)
|
||||||
|
{
|
||||||
|
return utility::conversions::to_string_t(std::to_string(value));
|
||||||
|
}
|
||||||
|
|
||||||
utility::string_t ApiClient::parameterToString(const utility::datetime &value)
|
utility::string_t ApiClient::parameterToString(const utility::datetime &value)
|
||||||
{
|
{
|
||||||
return utility::conversions::to_string_t(value.to_string(utility::datetime::ISO_8601));
|
return utility::conversions::to_string_t(value.to_string(utility::datetime::ISO_8601));
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ public:
|
|||||||
|
|
||||||
static int64_t int64_tFromJson(web::json::value& val);
|
static int64_t int64_tFromJson(web::json::value& val);
|
||||||
static int32_t int32_tFromJson(web::json::value& val);
|
static int32_t int32_tFromJson(web::json::value& val);
|
||||||
|
static float floatFromJson(web::json::value& val);
|
||||||
static utility::string_t stringFromJson(web::json::value& val);
|
static utility::string_t stringFromJson(web::json::value& val);
|
||||||
static utility::datetime dateFromJson(web::json::value& val);
|
static utility::datetime dateFromJson(web::json::value& val);
|
||||||
static double doubleFromJson(web::json::value& val);
|
static double doubleFromJson(web::json::value& val);
|
||||||
@@ -59,6 +60,7 @@ public:
|
|||||||
|
|
||||||
static int64_t int64_tFromHttpContent(std::shared_ptr<HttpContent> val);
|
static int64_t int64_tFromHttpContent(std::shared_ptr<HttpContent> val);
|
||||||
static int32_t int32_tFromHttpContent(std::shared_ptr<HttpContent> val);
|
static int32_t int32_tFromHttpContent(std::shared_ptr<HttpContent> val);
|
||||||
|
static float floatFromHttpContent(std::shared_ptr<HttpContent> val);
|
||||||
static utility::string_t stringFromHttpContent(std::shared_ptr<HttpContent> val);
|
static utility::string_t stringFromHttpContent(std::shared_ptr<HttpContent> val);
|
||||||
static utility::datetime dateFromHttpContent(std::shared_ptr<HttpContent> val);
|
static utility::datetime dateFromHttpContent(std::shared_ptr<HttpContent> val);
|
||||||
static bool boolFromHttpContent(std::shared_ptr<HttpContent> val);
|
static bool boolFromHttpContent(std::shared_ptr<HttpContent> val);
|
||||||
|
|||||||
@@ -262,6 +262,10 @@ int32_t ModelBase::int32_tFromJson(web::json::value& val)
|
|||||||
{
|
{
|
||||||
return val.as_integer();
|
return val.as_integer();
|
||||||
}
|
}
|
||||||
|
float ModelBase::floatFromJson(web::json::value& val)
|
||||||
|
{
|
||||||
|
return val.as_double();
|
||||||
|
}
|
||||||
utility::string_t ModelBase::stringFromJson(web::json::value& val)
|
utility::string_t ModelBase::stringFromJson(web::json::value& val)
|
||||||
{
|
{
|
||||||
return val.is_string() ? val.as_string() : U("");
|
return val.is_string() ? val.as_string() : U("");
|
||||||
@@ -298,6 +302,15 @@ int32_t ModelBase::int32_tFromHttpContent(std::shared_ptr<HttpContent> val)
|
|||||||
ss >> result;
|
ss >> result;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
float ModelBase::floatFromHttpContent(std::shared_ptr<HttpContent> val)
|
||||||
|
{
|
||||||
|
utility::string_t str = ModelBase::stringFromHttpContent(val);
|
||||||
|
|
||||||
|
utility::stringstream_t ss(str);
|
||||||
|
float result = 0;
|
||||||
|
ss >> result;
|
||||||
|
return result;
|
||||||
|
}
|
||||||
utility::string_t ModelBase::stringFromHttpContent(std::shared_ptr<HttpContent> val)
|
utility::string_t ModelBase::stringFromHttpContent(std::shared_ptr<HttpContent> val)
|
||||||
{
|
{
|
||||||
std::shared_ptr<std::istream> data = val->getData();
|
std::shared_ptr<std::istream> data = val->getData();
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
||||||
|
if (this.mapProperty == null) {
|
||||||
|
this.mapProperty = new HashMap<String, String>();
|
||||||
|
}
|
||||||
this.mapProperty.put(key, mapPropertyItem);
|
this.mapProperty.put(key, mapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -62,6 +65,9 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
||||||
|
if (this.mapOfMapProperty == null) {
|
||||||
|
this.mapOfMapProperty = new HashMap<String, Map<String, String>>();
|
||||||
|
}
|
||||||
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,9 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
||||||
|
if (this.arrayArrayNumber == null) {
|
||||||
|
this.arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
||||||
|
}
|
||||||
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,9 @@ public class ArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
||||||
|
if (this.arrayNumber == null) {
|
||||||
|
this.arrayNumber = new ArrayList<BigDecimal>();
|
||||||
|
}
|
||||||
this.arrayNumber.add(arrayNumberItem);
|
this.arrayNumber.add(arrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,6 +42,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
||||||
|
if (this.arrayOfString == null) {
|
||||||
|
this.arrayOfString = new ArrayList<String>();
|
||||||
|
}
|
||||||
this.arrayOfString.add(arrayOfStringItem);
|
this.arrayOfString.add(arrayOfStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -65,6 +68,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
||||||
|
if (this.arrayArrayOfInteger == null) {
|
||||||
|
this.arrayArrayOfInteger = new ArrayList<List<Long>>();
|
||||||
|
}
|
||||||
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -88,6 +94,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||||
|
if (this.arrayArrayOfModel == null) {
|
||||||
|
this.arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
|
||||||
|
}
|
||||||
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,6 +116,9 @@ public class EnumArrays {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
||||||
|
if (this.arrayEnum == null) {
|
||||||
|
this.arrayEnum = new ArrayList<ArrayEnumEnum>();
|
||||||
|
}
|
||||||
this.arrayEnum.add(arrayEnumItem);
|
this.arrayEnum.add(arrayEnumItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,6 +69,9 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
||||||
|
if (this.mapMapOfString == null) {
|
||||||
|
this.mapMapOfString = new HashMap<String, Map<String, String>>();
|
||||||
|
}
|
||||||
this.mapMapOfString.put(key, mapMapOfStringItem);
|
this.mapMapOfString.put(key, mapMapOfStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -92,6 +95,9 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
||||||
|
if (this.mapOfEnumString == null) {
|
||||||
|
this.mapOfEnumString = new HashMap<String, InnerEnum>();
|
||||||
|
}
|
||||||
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,6 +81,9 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
||||||
|
if (this.map == null) {
|
||||||
|
this.map = new HashMap<String, Animal>();
|
||||||
|
}
|
||||||
this.map.put(key, mapItem);
|
this.map.put(key, mapItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,6 +161,9 @@ public class Pet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Pet addTagsItem(Tag tagsItem) {
|
public Pet addTagsItem(Tag tagsItem) {
|
||||||
|
if (this.tags == null) {
|
||||||
|
this.tags = new ArrayList<Tag>();
|
||||||
|
}
|
||||||
this.tags.add(tagsItem);
|
this.tags.add(tagsItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
||||||
|
if (this.mapProperty == null) {
|
||||||
|
this.mapProperty = new HashMap<String, String>();
|
||||||
|
}
|
||||||
this.mapProperty.put(key, mapPropertyItem);
|
this.mapProperty.put(key, mapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -62,6 +65,9 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
||||||
|
if (this.mapOfMapProperty == null) {
|
||||||
|
this.mapOfMapProperty = new HashMap<String, Map<String, String>>();
|
||||||
|
}
|
||||||
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,9 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
||||||
|
if (this.arrayArrayNumber == null) {
|
||||||
|
this.arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
||||||
|
}
|
||||||
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,9 @@ public class ArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
||||||
|
if (this.arrayNumber == null) {
|
||||||
|
this.arrayNumber = new ArrayList<BigDecimal>();
|
||||||
|
}
|
||||||
this.arrayNumber.add(arrayNumberItem);
|
this.arrayNumber.add(arrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,6 +42,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
||||||
|
if (this.arrayOfString == null) {
|
||||||
|
this.arrayOfString = new ArrayList<String>();
|
||||||
|
}
|
||||||
this.arrayOfString.add(arrayOfStringItem);
|
this.arrayOfString.add(arrayOfStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -65,6 +68,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
||||||
|
if (this.arrayArrayOfInteger == null) {
|
||||||
|
this.arrayArrayOfInteger = new ArrayList<List<Long>>();
|
||||||
|
}
|
||||||
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -88,6 +94,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||||
|
if (this.arrayArrayOfModel == null) {
|
||||||
|
this.arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
|
||||||
|
}
|
||||||
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,6 +116,9 @@ public class EnumArrays {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
||||||
|
if (this.arrayEnum == null) {
|
||||||
|
this.arrayEnum = new ArrayList<ArrayEnumEnum>();
|
||||||
|
}
|
||||||
this.arrayEnum.add(arrayEnumItem);
|
this.arrayEnum.add(arrayEnumItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,6 +69,9 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
||||||
|
if (this.mapMapOfString == null) {
|
||||||
|
this.mapMapOfString = new HashMap<String, Map<String, String>>();
|
||||||
|
}
|
||||||
this.mapMapOfString.put(key, mapMapOfStringItem);
|
this.mapMapOfString.put(key, mapMapOfStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -92,6 +95,9 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
||||||
|
if (this.mapOfEnumString == null) {
|
||||||
|
this.mapOfEnumString = new HashMap<String, InnerEnum>();
|
||||||
|
}
|
||||||
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,6 +81,9 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
||||||
|
if (this.map == null) {
|
||||||
|
this.map = new HashMap<String, Animal>();
|
||||||
|
}
|
||||||
this.map.put(key, mapItem);
|
this.map.put(key, mapItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,6 +161,9 @@ public class Pet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Pet addTagsItem(Tag tagsItem) {
|
public Pet addTagsItem(Tag tagsItem) {
|
||||||
|
if (this.tags == null) {
|
||||||
|
this.tags = new ArrayList<Tag>();
|
||||||
|
}
|
||||||
this.tags.add(tagsItem);
|
this.tags.add(tagsItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
||||||
|
if (this.mapProperty == null) {
|
||||||
|
this.mapProperty = new HashMap<String, String>();
|
||||||
|
}
|
||||||
this.mapProperty.put(key, mapPropertyItem);
|
this.mapProperty.put(key, mapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -62,6 +65,9 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
||||||
|
if (this.mapOfMapProperty == null) {
|
||||||
|
this.mapOfMapProperty = new HashMap<String, Map<String, String>>();
|
||||||
|
}
|
||||||
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,9 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
||||||
|
if (this.arrayArrayNumber == null) {
|
||||||
|
this.arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
||||||
|
}
|
||||||
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,9 @@ public class ArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
||||||
|
if (this.arrayNumber == null) {
|
||||||
|
this.arrayNumber = new ArrayList<BigDecimal>();
|
||||||
|
}
|
||||||
this.arrayNumber.add(arrayNumberItem);
|
this.arrayNumber.add(arrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,6 +42,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
||||||
|
if (this.arrayOfString == null) {
|
||||||
|
this.arrayOfString = new ArrayList<String>();
|
||||||
|
}
|
||||||
this.arrayOfString.add(arrayOfStringItem);
|
this.arrayOfString.add(arrayOfStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -65,6 +68,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
||||||
|
if (this.arrayArrayOfInteger == null) {
|
||||||
|
this.arrayArrayOfInteger = new ArrayList<List<Long>>();
|
||||||
|
}
|
||||||
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -88,6 +94,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||||
|
if (this.arrayArrayOfModel == null) {
|
||||||
|
this.arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
|
||||||
|
}
|
||||||
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,6 +116,9 @@ public class EnumArrays {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
||||||
|
if (this.arrayEnum == null) {
|
||||||
|
this.arrayEnum = new ArrayList<ArrayEnumEnum>();
|
||||||
|
}
|
||||||
this.arrayEnum.add(arrayEnumItem);
|
this.arrayEnum.add(arrayEnumItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,6 +69,9 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
||||||
|
if (this.mapMapOfString == null) {
|
||||||
|
this.mapMapOfString = new HashMap<String, Map<String, String>>();
|
||||||
|
}
|
||||||
this.mapMapOfString.put(key, mapMapOfStringItem);
|
this.mapMapOfString.put(key, mapMapOfStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -92,6 +95,9 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
||||||
|
if (this.mapOfEnumString == null) {
|
||||||
|
this.mapOfEnumString = new HashMap<String, InnerEnum>();
|
||||||
|
}
|
||||||
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,6 +81,9 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
||||||
|
if (this.map == null) {
|
||||||
|
this.map = new HashMap<String, Animal>();
|
||||||
|
}
|
||||||
this.map.put(key, mapItem);
|
this.map.put(key, mapItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,6 +161,9 @@ public class Pet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Pet addTagsItem(Tag tagsItem) {
|
public Pet addTagsItem(Tag tagsItem) {
|
||||||
|
if (this.tags == null) {
|
||||||
|
this.tags = new ArrayList<Tag>();
|
||||||
|
}
|
||||||
this.tags.add(tagsItem);
|
this.tags.add(tagsItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
||||||
|
if (this.mapProperty == null) {
|
||||||
|
this.mapProperty = new HashMap<String, String>();
|
||||||
|
}
|
||||||
this.mapProperty.put(key, mapPropertyItem);
|
this.mapProperty.put(key, mapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -62,6 +65,9 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
||||||
|
if (this.mapOfMapProperty == null) {
|
||||||
|
this.mapOfMapProperty = new HashMap<String, Map<String, String>>();
|
||||||
|
}
|
||||||
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,9 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
||||||
|
if (this.arrayArrayNumber == null) {
|
||||||
|
this.arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
||||||
|
}
|
||||||
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,9 @@ public class ArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
||||||
|
if (this.arrayNumber == null) {
|
||||||
|
this.arrayNumber = new ArrayList<BigDecimal>();
|
||||||
|
}
|
||||||
this.arrayNumber.add(arrayNumberItem);
|
this.arrayNumber.add(arrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,6 +42,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
||||||
|
if (this.arrayOfString == null) {
|
||||||
|
this.arrayOfString = new ArrayList<String>();
|
||||||
|
}
|
||||||
this.arrayOfString.add(arrayOfStringItem);
|
this.arrayOfString.add(arrayOfStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -65,6 +68,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
||||||
|
if (this.arrayArrayOfInteger == null) {
|
||||||
|
this.arrayArrayOfInteger = new ArrayList<List<Long>>();
|
||||||
|
}
|
||||||
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -88,6 +94,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||||
|
if (this.arrayArrayOfModel == null) {
|
||||||
|
this.arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
|
||||||
|
}
|
||||||
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,6 +116,9 @@ public class EnumArrays {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
||||||
|
if (this.arrayEnum == null) {
|
||||||
|
this.arrayEnum = new ArrayList<ArrayEnumEnum>();
|
||||||
|
}
|
||||||
this.arrayEnum.add(arrayEnumItem);
|
this.arrayEnum.add(arrayEnumItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,6 +69,9 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
||||||
|
if (this.mapMapOfString == null) {
|
||||||
|
this.mapMapOfString = new HashMap<String, Map<String, String>>();
|
||||||
|
}
|
||||||
this.mapMapOfString.put(key, mapMapOfStringItem);
|
this.mapMapOfString.put(key, mapMapOfStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -92,6 +95,9 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
||||||
|
if (this.mapOfEnumString == null) {
|
||||||
|
this.mapOfEnumString = new HashMap<String, InnerEnum>();
|
||||||
|
}
|
||||||
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,6 +81,9 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
||||||
|
if (this.map == null) {
|
||||||
|
this.map = new HashMap<String, Animal>();
|
||||||
|
}
|
||||||
this.map.put(key, mapItem);
|
this.map.put(key, mapItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,6 +161,9 @@ public class Pet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Pet addTagsItem(Tag tagsItem) {
|
public Pet addTagsItem(Tag tagsItem) {
|
||||||
|
if (this.tags == null) {
|
||||||
|
this.tags = new ArrayList<Tag>();
|
||||||
|
}
|
||||||
this.tags.add(tagsItem);
|
this.tags.add(tagsItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
||||||
|
if (this.mapProperty == null) {
|
||||||
|
this.mapProperty = new HashMap<String, String>();
|
||||||
|
}
|
||||||
this.mapProperty.put(key, mapPropertyItem);
|
this.mapProperty.put(key, mapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -62,6 +65,9 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
||||||
|
if (this.mapOfMapProperty == null) {
|
||||||
|
this.mapOfMapProperty = new HashMap<String, Map<String, String>>();
|
||||||
|
}
|
||||||
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,9 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
||||||
|
if (this.arrayArrayNumber == null) {
|
||||||
|
this.arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
||||||
|
}
|
||||||
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,9 @@ public class ArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
||||||
|
if (this.arrayNumber == null) {
|
||||||
|
this.arrayNumber = new ArrayList<BigDecimal>();
|
||||||
|
}
|
||||||
this.arrayNumber.add(arrayNumberItem);
|
this.arrayNumber.add(arrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,6 +42,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
||||||
|
if (this.arrayOfString == null) {
|
||||||
|
this.arrayOfString = new ArrayList<String>();
|
||||||
|
}
|
||||||
this.arrayOfString.add(arrayOfStringItem);
|
this.arrayOfString.add(arrayOfStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -65,6 +68,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
||||||
|
if (this.arrayArrayOfInteger == null) {
|
||||||
|
this.arrayArrayOfInteger = new ArrayList<List<Long>>();
|
||||||
|
}
|
||||||
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -88,6 +94,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||||
|
if (this.arrayArrayOfModel == null) {
|
||||||
|
this.arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
|
||||||
|
}
|
||||||
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,6 +116,9 @@ public class EnumArrays {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
||||||
|
if (this.arrayEnum == null) {
|
||||||
|
this.arrayEnum = new ArrayList<ArrayEnumEnum>();
|
||||||
|
}
|
||||||
this.arrayEnum.add(arrayEnumItem);
|
this.arrayEnum.add(arrayEnumItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,6 +69,9 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
||||||
|
if (this.mapMapOfString == null) {
|
||||||
|
this.mapMapOfString = new HashMap<String, Map<String, String>>();
|
||||||
|
}
|
||||||
this.mapMapOfString.put(key, mapMapOfStringItem);
|
this.mapMapOfString.put(key, mapMapOfStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -92,6 +95,9 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
||||||
|
if (this.mapOfEnumString == null) {
|
||||||
|
this.mapOfEnumString = new HashMap<String, InnerEnum>();
|
||||||
|
}
|
||||||
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,6 +81,9 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
||||||
|
if (this.map == null) {
|
||||||
|
this.map = new HashMap<String, Animal>();
|
||||||
|
}
|
||||||
this.map.put(key, mapItem);
|
this.map.put(key, mapItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,6 +161,9 @@ public class Pet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Pet addTagsItem(Tag tagsItem) {
|
public Pet addTagsItem(Tag tagsItem) {
|
||||||
|
if (this.tags == null) {
|
||||||
|
this.tags = new ArrayList<Tag>();
|
||||||
|
}
|
||||||
this.tags.add(tagsItem);
|
this.tags.add(tagsItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,10 +29,10 @@ import android.os.Parcel;
|
|||||||
|
|
||||||
public class AdditionalPropertiesClass implements Parcelable {
|
public class AdditionalPropertiesClass implements Parcelable {
|
||||||
@SerializedName("map_property")
|
@SerializedName("map_property")
|
||||||
private Map<String, String> mapProperty = new HashMap<String, String>();
|
private Map<String, String> mapProperty = null;
|
||||||
|
|
||||||
@SerializedName("map_of_map_property")
|
@SerializedName("map_of_map_property")
|
||||||
private Map<String, Map<String, String>> mapOfMapProperty = new HashMap<String, Map<String, String>>();
|
private Map<String, Map<String, String>> mapOfMapProperty = null;
|
||||||
|
|
||||||
public AdditionalPropertiesClass mapProperty(Map<String, String> mapProperty) {
|
public AdditionalPropertiesClass mapProperty(Map<String, String> mapProperty) {
|
||||||
this.mapProperty = mapProperty;
|
this.mapProperty = mapProperty;
|
||||||
@@ -40,6 +40,9 @@ public class AdditionalPropertiesClass implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
||||||
|
if (this.mapProperty == null) {
|
||||||
|
this.mapProperty = new HashMap<String, String>();
|
||||||
|
}
|
||||||
this.mapProperty.put(key, mapPropertyItem);
|
this.mapProperty.put(key, mapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -63,6 +66,9 @@ public class AdditionalPropertiesClass implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
||||||
|
if (this.mapOfMapProperty == null) {
|
||||||
|
this.mapOfMapProperty = new HashMap<String, Map<String, String>>();
|
||||||
|
}
|
||||||
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import android.os.Parcel;
|
|||||||
|
|
||||||
public class ArrayOfArrayOfNumberOnly implements Parcelable {
|
public class ArrayOfArrayOfNumberOnly implements Parcelable {
|
||||||
@SerializedName("ArrayArrayNumber")
|
@SerializedName("ArrayArrayNumber")
|
||||||
private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
private List<List<BigDecimal>> arrayArrayNumber = null;
|
||||||
|
|
||||||
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
||||||
this.arrayArrayNumber = arrayArrayNumber;
|
this.arrayArrayNumber = arrayArrayNumber;
|
||||||
@@ -37,6 +37,9 @@ public class ArrayOfArrayOfNumberOnly implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
||||||
|
if (this.arrayArrayNumber == null) {
|
||||||
|
this.arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
||||||
|
}
|
||||||
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import android.os.Parcel;
|
|||||||
|
|
||||||
public class ArrayOfNumberOnly implements Parcelable {
|
public class ArrayOfNumberOnly implements Parcelable {
|
||||||
@SerializedName("ArrayNumber")
|
@SerializedName("ArrayNumber")
|
||||||
private List<BigDecimal> arrayNumber = new ArrayList<BigDecimal>();
|
private List<BigDecimal> arrayNumber = null;
|
||||||
|
|
||||||
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
|
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
|
||||||
this.arrayNumber = arrayNumber;
|
this.arrayNumber = arrayNumber;
|
||||||
@@ -37,6 +37,9 @@ public class ArrayOfNumberOnly implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
||||||
|
if (this.arrayNumber == null) {
|
||||||
|
this.arrayNumber = new ArrayList<BigDecimal>();
|
||||||
|
}
|
||||||
this.arrayNumber.add(arrayNumberItem);
|
this.arrayNumber.add(arrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,13 +29,13 @@ import android.os.Parcel;
|
|||||||
|
|
||||||
public class ArrayTest implements Parcelable {
|
public class ArrayTest implements Parcelable {
|
||||||
@SerializedName("array_of_string")
|
@SerializedName("array_of_string")
|
||||||
private List<String> arrayOfString = new ArrayList<String>();
|
private List<String> arrayOfString = null;
|
||||||
|
|
||||||
@SerializedName("array_array_of_integer")
|
@SerializedName("array_array_of_integer")
|
||||||
private List<List<Long>> arrayArrayOfInteger = new ArrayList<List<Long>>();
|
private List<List<Long>> arrayArrayOfInteger = null;
|
||||||
|
|
||||||
@SerializedName("array_array_of_model")
|
@SerializedName("array_array_of_model")
|
||||||
private List<List<ReadOnlyFirst>> arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
|
private List<List<ReadOnlyFirst>> arrayArrayOfModel = null;
|
||||||
|
|
||||||
public ArrayTest arrayOfString(List<String> arrayOfString) {
|
public ArrayTest arrayOfString(List<String> arrayOfString) {
|
||||||
this.arrayOfString = arrayOfString;
|
this.arrayOfString = arrayOfString;
|
||||||
@@ -43,6 +43,9 @@ public class ArrayTest implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
||||||
|
if (this.arrayOfString == null) {
|
||||||
|
this.arrayOfString = new ArrayList<String>();
|
||||||
|
}
|
||||||
this.arrayOfString.add(arrayOfStringItem);
|
this.arrayOfString.add(arrayOfStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -66,6 +69,9 @@ public class ArrayTest implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
||||||
|
if (this.arrayArrayOfInteger == null) {
|
||||||
|
this.arrayArrayOfInteger = new ArrayList<List<Long>>();
|
||||||
|
}
|
||||||
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -89,6 +95,9 @@ public class ArrayTest implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||||
|
if (this.arrayArrayOfModel == null) {
|
||||||
|
this.arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
|
||||||
|
}
|
||||||
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ public class EnumArrays implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SerializedName("array_enum")
|
@SerializedName("array_enum")
|
||||||
private List<ArrayEnumEnum> arrayEnum = new ArrayList<ArrayEnumEnum>();
|
private List<ArrayEnumEnum> arrayEnum = null;
|
||||||
|
|
||||||
public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
|
public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
|
||||||
this.justSymbol = justSymbol;
|
this.justSymbol = justSymbol;
|
||||||
@@ -101,6 +101,9 @@ public class EnumArrays implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
||||||
|
if (this.arrayEnum == null) {
|
||||||
|
this.arrayEnum = new ArrayList<ArrayEnumEnum>();
|
||||||
|
}
|
||||||
this.arrayEnum.add(arrayEnumItem);
|
this.arrayEnum.add(arrayEnumItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import android.os.Parcel;
|
|||||||
|
|
||||||
public class MapTest implements Parcelable {
|
public class MapTest implements Parcelable {
|
||||||
@SerializedName("map_map_of_string")
|
@SerializedName("map_map_of_string")
|
||||||
private Map<String, Map<String, String>> mapMapOfString = new HashMap<String, Map<String, String>>();
|
private Map<String, Map<String, String>> mapMapOfString = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets or Sets inner
|
* Gets or Sets inner
|
||||||
@@ -54,7 +54,7 @@ public class MapTest implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SerializedName("map_of_enum_string")
|
@SerializedName("map_of_enum_string")
|
||||||
private Map<String, InnerEnum> mapOfEnumString = new HashMap<String, InnerEnum>();
|
private Map<String, InnerEnum> mapOfEnumString = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
@@ -62,6 +62,9 @@ public class MapTest implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
||||||
|
if (this.mapMapOfString == null) {
|
||||||
|
this.mapMapOfString = new HashMap<String, Map<String, String>>();
|
||||||
|
}
|
||||||
this.mapMapOfString.put(key, mapMapOfStringItem);
|
this.mapMapOfString.put(key, mapMapOfStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -85,6 +88,9 @@ public class MapTest implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
||||||
|
if (this.mapOfEnumString == null) {
|
||||||
|
this.mapOfEnumString = new HashMap<String, InnerEnum>();
|
||||||
|
}
|
||||||
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable {
|
|||||||
private OffsetDateTime dateTime = null;
|
private OffsetDateTime dateTime = null;
|
||||||
|
|
||||||
@SerializedName("map")
|
@SerializedName("map")
|
||||||
private Map<String, Animal> map = new HashMap<String, Animal>();
|
private Map<String, Animal> map = null;
|
||||||
|
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
|
public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
|
||||||
this.uuid = uuid;
|
this.uuid = uuid;
|
||||||
@@ -82,6 +82,9 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
||||||
|
if (this.map == null) {
|
||||||
|
this.map = new HashMap<String, Animal>();
|
||||||
|
}
|
||||||
this.map.put(key, mapItem);
|
this.map.put(key, mapItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ public class Pet implements Parcelable {
|
|||||||
private List<String> photoUrls = new ArrayList<String>();
|
private List<String> photoUrls = new ArrayList<String>();
|
||||||
|
|
||||||
@SerializedName("tags")
|
@SerializedName("tags")
|
||||||
private List<Tag> tags = new ArrayList<Tag>();
|
private List<Tag> tags = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* pet status in the store
|
* pet status in the store
|
||||||
@@ -155,6 +155,9 @@ public class Pet implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Pet addTagsItem(Tag tagsItem) {
|
public Pet addTagsItem(Tag tagsItem) {
|
||||||
|
if (this.tags == null) {
|
||||||
|
this.tags = new ArrayList<Tag>();
|
||||||
|
}
|
||||||
this.tags.add(tagsItem);
|
this.tags.add(tagsItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,6 +38,9 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
||||||
|
if (this.mapProperty == null) {
|
||||||
|
this.mapProperty = new HashMap<String, String>();
|
||||||
|
}
|
||||||
this.mapProperty.put(key, mapPropertyItem);
|
this.mapProperty.put(key, mapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -61,6 +64,9 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
||||||
|
if (this.mapOfMapProperty == null) {
|
||||||
|
this.mapOfMapProperty = new HashMap<String, Map<String, String>>();
|
||||||
|
}
|
||||||
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,9 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
||||||
|
if (this.arrayArrayNumber == null) {
|
||||||
|
this.arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
||||||
|
}
|
||||||
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,9 @@ public class ArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
||||||
|
if (this.arrayNumber == null) {
|
||||||
|
this.arrayNumber = new ArrayList<BigDecimal>();
|
||||||
|
}
|
||||||
this.arrayNumber.add(arrayNumberItem);
|
this.arrayNumber.add(arrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,6 +41,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
||||||
|
if (this.arrayOfString == null) {
|
||||||
|
this.arrayOfString = new ArrayList<String>();
|
||||||
|
}
|
||||||
this.arrayOfString.add(arrayOfStringItem);
|
this.arrayOfString.add(arrayOfStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -64,6 +67,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
||||||
|
if (this.arrayArrayOfInteger == null) {
|
||||||
|
this.arrayArrayOfInteger = new ArrayList<List<Long>>();
|
||||||
|
}
|
||||||
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -87,6 +93,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||||
|
if (this.arrayArrayOfModel == null) {
|
||||||
|
this.arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
|
||||||
|
}
|
||||||
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,6 +99,9 @@ public class EnumArrays {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
||||||
|
if (this.arrayEnum == null) {
|
||||||
|
this.arrayEnum = new ArrayList<ArrayEnumEnum>();
|
||||||
|
}
|
||||||
this.arrayEnum.add(arrayEnumItem);
|
this.arrayEnum.add(arrayEnumItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,6 +60,9 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
||||||
|
if (this.mapMapOfString == null) {
|
||||||
|
this.mapMapOfString = new HashMap<String, Map<String, String>>();
|
||||||
|
}
|
||||||
this.mapMapOfString.put(key, mapMapOfStringItem);
|
this.mapMapOfString.put(key, mapMapOfStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -83,6 +86,9 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
||||||
|
if (this.mapOfEnumString == null) {
|
||||||
|
this.mapOfEnumString = new HashMap<String, InnerEnum>();
|
||||||
|
}
|
||||||
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,6 +80,9 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
||||||
|
if (this.map == null) {
|
||||||
|
this.map = new HashMap<String, Animal>();
|
||||||
|
}
|
||||||
this.map.put(key, mapItem);
|
this.map.put(key, mapItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -153,6 +153,9 @@ public class Pet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Pet addTagsItem(Tag tagsItem) {
|
public Pet addTagsItem(Tag tagsItem) {
|
||||||
|
if (this.tags == null) {
|
||||||
|
this.tags = new ArrayList<Tag>();
|
||||||
|
}
|
||||||
this.tags.add(tagsItem);
|
this.tags.add(tagsItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,6 +38,9 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
||||||
|
if (this.mapProperty == null) {
|
||||||
|
this.mapProperty = new HashMap<String, String>();
|
||||||
|
}
|
||||||
this.mapProperty.put(key, mapPropertyItem);
|
this.mapProperty.put(key, mapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -61,6 +64,9 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
||||||
|
if (this.mapOfMapProperty == null) {
|
||||||
|
this.mapOfMapProperty = new HashMap<String, Map<String, String>>();
|
||||||
|
}
|
||||||
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,9 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
||||||
|
if (this.arrayArrayNumber == null) {
|
||||||
|
this.arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
||||||
|
}
|
||||||
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,9 @@ public class ArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
||||||
|
if (this.arrayNumber == null) {
|
||||||
|
this.arrayNumber = new ArrayList<BigDecimal>();
|
||||||
|
}
|
||||||
this.arrayNumber.add(arrayNumberItem);
|
this.arrayNumber.add(arrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,6 +41,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
||||||
|
if (this.arrayOfString == null) {
|
||||||
|
this.arrayOfString = new ArrayList<String>();
|
||||||
|
}
|
||||||
this.arrayOfString.add(arrayOfStringItem);
|
this.arrayOfString.add(arrayOfStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -64,6 +67,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
||||||
|
if (this.arrayArrayOfInteger == null) {
|
||||||
|
this.arrayArrayOfInteger = new ArrayList<List<Long>>();
|
||||||
|
}
|
||||||
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -87,6 +93,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||||
|
if (this.arrayArrayOfModel == null) {
|
||||||
|
this.arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
|
||||||
|
}
|
||||||
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,6 +99,9 @@ public class EnumArrays {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
||||||
|
if (this.arrayEnum == null) {
|
||||||
|
this.arrayEnum = new ArrayList<ArrayEnumEnum>();
|
||||||
|
}
|
||||||
this.arrayEnum.add(arrayEnumItem);
|
this.arrayEnum.add(arrayEnumItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,6 +60,9 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
||||||
|
if (this.mapMapOfString == null) {
|
||||||
|
this.mapMapOfString = new HashMap<String, Map<String, String>>();
|
||||||
|
}
|
||||||
this.mapMapOfString.put(key, mapMapOfStringItem);
|
this.mapMapOfString.put(key, mapMapOfStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -83,6 +86,9 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
||||||
|
if (this.mapOfEnumString == null) {
|
||||||
|
this.mapOfEnumString = new HashMap<String, InnerEnum>();
|
||||||
|
}
|
||||||
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,6 +80,9 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
||||||
|
if (this.map == null) {
|
||||||
|
this.map = new HashMap<String, Animal>();
|
||||||
|
}
|
||||||
this.map.put(key, mapItem);
|
this.map.put(key, mapItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -153,6 +153,9 @@ public class Pet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Pet addTagsItem(Tag tagsItem) {
|
public Pet addTagsItem(Tag tagsItem) {
|
||||||
|
if (this.tags == null) {
|
||||||
|
this.tags = new ArrayList<Tag>();
|
||||||
|
}
|
||||||
this.tags.add(tagsItem);
|
this.tags.add(tagsItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,9 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
||||||
|
if (this.mapProperty == null) {
|
||||||
|
this.mapProperty = new HashMap<String, String>();
|
||||||
|
}
|
||||||
this.mapProperty.put(key, mapPropertyItem);
|
this.mapProperty.put(key, mapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -63,6 +66,9 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
||||||
|
if (this.mapOfMapProperty == null) {
|
||||||
|
this.mapOfMapProperty = new HashMap<String, Map<String, String>>();
|
||||||
|
}
|
||||||
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,6 +37,9 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
||||||
|
if (this.arrayArrayNumber == null) {
|
||||||
|
this.arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
||||||
|
}
|
||||||
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,6 +37,9 @@ public class ArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
||||||
|
if (this.arrayNumber == null) {
|
||||||
|
this.arrayNumber = new ArrayList<BigDecimal>();
|
||||||
|
}
|
||||||
this.arrayNumber.add(arrayNumberItem);
|
this.arrayNumber.add(arrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,6 +43,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
||||||
|
if (this.arrayOfString == null) {
|
||||||
|
this.arrayOfString = new ArrayList<String>();
|
||||||
|
}
|
||||||
this.arrayOfString.add(arrayOfStringItem);
|
this.arrayOfString.add(arrayOfStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -66,6 +69,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
||||||
|
if (this.arrayArrayOfInteger == null) {
|
||||||
|
this.arrayArrayOfInteger = new ArrayList<List<Long>>();
|
||||||
|
}
|
||||||
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -89,6 +95,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||||
|
if (this.arrayArrayOfModel == null) {
|
||||||
|
this.arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
|
||||||
|
}
|
||||||
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -117,6 +117,9 @@ public class EnumArrays {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
||||||
|
if (this.arrayEnum == null) {
|
||||||
|
this.arrayEnum = new ArrayList<ArrayEnumEnum>();
|
||||||
|
}
|
||||||
this.arrayEnum.add(arrayEnumItem);
|
this.arrayEnum.add(arrayEnumItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,6 +70,9 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
||||||
|
if (this.mapMapOfString == null) {
|
||||||
|
this.mapMapOfString = new HashMap<String, Map<String, String>>();
|
||||||
|
}
|
||||||
this.mapMapOfString.put(key, mapMapOfStringItem);
|
this.mapMapOfString.put(key, mapMapOfStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -93,6 +96,9 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
||||||
|
if (this.mapOfEnumString == null) {
|
||||||
|
this.mapOfEnumString = new HashMap<String, InnerEnum>();
|
||||||
|
}
|
||||||
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,6 +82,9 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
||||||
|
if (this.map == null) {
|
||||||
|
this.map = new HashMap<String, Animal>();
|
||||||
|
}
|
||||||
this.map.put(key, mapItem);
|
this.map.put(key, mapItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -164,6 +164,9 @@ public class Pet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Pet addTagsItem(Tag tagsItem) {
|
public Pet addTagsItem(Tag tagsItem) {
|
||||||
|
if (this.tags == null) {
|
||||||
|
this.tags = new ArrayList<Tag>();
|
||||||
|
}
|
||||||
this.tags.add(tagsItem);
|
this.tags.add(tagsItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,6 +38,9 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
||||||
|
if (this.mapProperty == null) {
|
||||||
|
this.mapProperty = new HashMap<String, String>();
|
||||||
|
}
|
||||||
this.mapProperty.put(key, mapPropertyItem);
|
this.mapProperty.put(key, mapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -61,6 +64,9 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
||||||
|
if (this.mapOfMapProperty == null) {
|
||||||
|
this.mapOfMapProperty = new HashMap<String, Map<String, String>>();
|
||||||
|
}
|
||||||
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,9 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
||||||
|
if (this.arrayArrayNumber == null) {
|
||||||
|
this.arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
||||||
|
}
|
||||||
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,9 @@ public class ArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
||||||
|
if (this.arrayNumber == null) {
|
||||||
|
this.arrayNumber = new ArrayList<BigDecimal>();
|
||||||
|
}
|
||||||
this.arrayNumber.add(arrayNumberItem);
|
this.arrayNumber.add(arrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,6 +41,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
||||||
|
if (this.arrayOfString == null) {
|
||||||
|
this.arrayOfString = new ArrayList<String>();
|
||||||
|
}
|
||||||
this.arrayOfString.add(arrayOfStringItem);
|
this.arrayOfString.add(arrayOfStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -64,6 +67,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
||||||
|
if (this.arrayArrayOfInteger == null) {
|
||||||
|
this.arrayArrayOfInteger = new ArrayList<List<Long>>();
|
||||||
|
}
|
||||||
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -87,6 +93,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||||
|
if (this.arrayArrayOfModel == null) {
|
||||||
|
this.arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
|
||||||
|
}
|
||||||
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,6 +99,9 @@ public class EnumArrays {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
||||||
|
if (this.arrayEnum == null) {
|
||||||
|
this.arrayEnum = new ArrayList<ArrayEnumEnum>();
|
||||||
|
}
|
||||||
this.arrayEnum.add(arrayEnumItem);
|
this.arrayEnum.add(arrayEnumItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,6 +60,9 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
||||||
|
if (this.mapMapOfString == null) {
|
||||||
|
this.mapMapOfString = new HashMap<String, Map<String, String>>();
|
||||||
|
}
|
||||||
this.mapMapOfString.put(key, mapMapOfStringItem);
|
this.mapMapOfString.put(key, mapMapOfStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -83,6 +86,9 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
||||||
|
if (this.mapOfEnumString == null) {
|
||||||
|
this.mapOfEnumString = new HashMap<String, InnerEnum>();
|
||||||
|
}
|
||||||
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,6 +80,9 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
||||||
|
if (this.map == null) {
|
||||||
|
this.map = new HashMap<String, Animal>();
|
||||||
|
}
|
||||||
this.map.put(key, mapItem);
|
this.map.put(key, mapItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -153,6 +153,9 @@ public class Pet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Pet addTagsItem(Tag tagsItem) {
|
public Pet addTagsItem(Tag tagsItem) {
|
||||||
|
if (this.tags == null) {
|
||||||
|
this.tags = new ArrayList<Tag>();
|
||||||
|
}
|
||||||
this.tags.add(tagsItem);
|
this.tags.add(tagsItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,6 +38,9 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
||||||
|
if (this.mapProperty == null) {
|
||||||
|
this.mapProperty = new HashMap<String, String>();
|
||||||
|
}
|
||||||
this.mapProperty.put(key, mapPropertyItem);
|
this.mapProperty.put(key, mapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -61,6 +64,9 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
||||||
|
if (this.mapOfMapProperty == null) {
|
||||||
|
this.mapOfMapProperty = new HashMap<String, Map<String, String>>();
|
||||||
|
}
|
||||||
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,9 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
||||||
|
if (this.arrayArrayNumber == null) {
|
||||||
|
this.arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
||||||
|
}
|
||||||
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,9 @@ public class ArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
||||||
|
if (this.arrayNumber == null) {
|
||||||
|
this.arrayNumber = new ArrayList<BigDecimal>();
|
||||||
|
}
|
||||||
this.arrayNumber.add(arrayNumberItem);
|
this.arrayNumber.add(arrayNumberItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,6 +41,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
||||||
|
if (this.arrayOfString == null) {
|
||||||
|
this.arrayOfString = new ArrayList<String>();
|
||||||
|
}
|
||||||
this.arrayOfString.add(arrayOfStringItem);
|
this.arrayOfString.add(arrayOfStringItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -64,6 +67,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
||||||
|
if (this.arrayArrayOfInteger == null) {
|
||||||
|
this.arrayArrayOfInteger = new ArrayList<List<Long>>();
|
||||||
|
}
|
||||||
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -87,6 +93,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||||
|
if (this.arrayArrayOfModel == null) {
|
||||||
|
this.arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
|
||||||
|
}
|
||||||
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,6 +99,9 @@ public class EnumArrays {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
||||||
|
if (this.arrayEnum == null) {
|
||||||
|
this.arrayEnum = new ArrayList<ArrayEnumEnum>();
|
||||||
|
}
|
||||||
this.arrayEnum.add(arrayEnumItem);
|
this.arrayEnum.add(arrayEnumItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user