[Java][JaxRS-Spec] fix builder generation (#11892)

This commit is contained in:
Oleh Kurpiak 2022-03-18 03:54:21 +02:00 committed by GitHub
parent b00c9d58c3
commit 3b7ea5ca53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
94 changed files with 1894 additions and 645 deletions

View File

@ -7,3 +7,4 @@ additionalProperties:
serializableModel: "true" serializableModel: "true"
hideGenerationTimestamp: "true" hideGenerationTimestamp: "true"
implicitHeadersRegex: (api_key|enum_header_string) implicitHeadersRegex: (api_key|enum_header_string)
generateBuilders: "true"

View File

@ -25,7 +25,14 @@ public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}} {{#vendorExtens
{{#vendorExtensions.x-field-extra-annotation}} {{#vendorExtensions.x-field-extra-annotation}}
{{{vendorExtensions.x-field-extra-annotation}}} {{{vendorExtensions.x-field-extra-annotation}}}
{{/vendorExtensions.x-field-extra-annotation}} {{/vendorExtensions.x-field-extra-annotation}}
private {{#useBeanValidation}}@Valid {{/useBeanValidation}}{{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}};{{/vars}} private {{#useBeanValidation}}@Valid {{/useBeanValidation}}{{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}};{{/vars}}{{#generateBuilders}}{{^additionalProperties}}
protected {{classname}}({{classname}}Builder<?, ?> b) {
{{#parent}}super(b);
{{/parent}}{{#vars}}this.{{name}} = b.{{name}};{{/vars}}
}
public {{classname}}() { }{{/additionalProperties}}{{/generateBuilders}}
{{#vars}}/** {{#vars}}/**
{{#description}} {{#description}}
@ -43,12 +50,6 @@ public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}} {{#vendorExtens
return this; return this;
} }
{{#generateBuilders}}public {{classname}}({{#vars}}{{{datatypeWithEnum}}} {{name}}{{^-last}}, {{/-last}}{{/vars}}) {
{{#vars}}
this.{{name}} = {{name}};
{{/vars}}
}{{/generateBuilders}}
{{#vendorExtensions.x-extra-annotation}}{{{vendorExtensions.x-extra-annotation}}}{{/vendorExtensions.x-extra-annotation}}{{#useSwaggerAnnotations}} {{#vendorExtensions.x-extra-annotation}}{{{vendorExtensions.x-extra-annotation}}}{{/vendorExtensions.x-extra-annotation}}{{#useSwaggerAnnotations}}
@ApiModelProperty({{#example}}example = "{{{.}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}value = "{{{description}}}"){{/useSwaggerAnnotations}} @ApiModelProperty({{#example}}example = "{{{.}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}value = "{{{description}}}"){{/useSwaggerAnnotations}}
@JsonProperty("{{baseName}}") @JsonProperty("{{baseName}}")
@ -141,36 +142,39 @@ public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}} {{#vendorExtens
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
{{#generateBuilders}} {{#generateBuilders}}{{^additionalProperties}}
public static Builder builder() { public static {{classname}}Builder<?, ?> builder() {
return new Builder(); return new {{classname}}BuilderImpl();
} }
public static class Builder { private static final class {{classname}}BuilderImpl extends {{classname}}Builder<{{classname}}, {{classname}}BuilderImpl> {
@Override
protected {{classname}}BuilderImpl self() {
return this;
}
@Override
public {{classname}} build() {
return new {{classname}}(this);
}
}
public static abstract class {{classname}}Builder<C extends {{classname}}, B extends {{classname}}Builder<C, B>> {{#parent}}extends {{{.}}}Builder<C, B>{{/parent}} {
{{#vars}} {{#vars}}
private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}};
{{/vars}} {{/vars}}
{{^parent}}
protected abstract B self();
public abstract C build();
{{/parent}}
{{#vars}} {{#vars}}
/** public B {{name}}({{{datatypeWithEnum}}} {{name}}) {
{{#description}}
* {{.}}
{{/description}}
{{#minimum}}
* minimum: {{.}}
{{/minimum}}
{{#maximum}}
* maximum: {{.}}
{{/maximum}}
**/
public Builder {{name}}({{{datatypeWithEnum}}} {{name}}) {
this.{{name}} = {{name}}; this.{{name}} = {{name}};
return this; return self();
} }
{{/vars}} {{/vars}}
}{{/additionalProperties}}{{/generateBuilders}}
public {{classname}} build() {
return new {{classname}}({{#vars}}{{name}}{{^-last}}, {{/-last}}{{/vars}});
}
}{{/generateBuilders}}
} }

View File

@ -31,8 +31,6 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> impleme
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {

View File

@ -32,8 +32,6 @@ public class AdditionalPropertiesArray extends HashMap<String, List> implements
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {

View File

@ -31,8 +31,6 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> implem
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {

View File

@ -43,8 +43,6 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_string") @JsonProperty("map_string")
public Map<String, String> getMapString() { public Map<String, String> getMapString() {
@ -80,8 +78,6 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_number") @JsonProperty("map_number")
public Map<String, BigDecimal> getMapNumber() { public Map<String, BigDecimal> getMapNumber() {
@ -117,8 +113,6 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_integer") @JsonProperty("map_integer")
public Map<String, Integer> getMapInteger() { public Map<String, Integer> getMapInteger() {
@ -154,8 +148,6 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_boolean") @JsonProperty("map_boolean")
public Map<String, Boolean> getMapBoolean() { public Map<String, Boolean> getMapBoolean() {
@ -191,8 +183,6 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_array_integer") @JsonProperty("map_array_integer")
public Map<String, List<Integer>> getMapArrayInteger() { public Map<String, List<Integer>> getMapArrayInteger() {
@ -228,8 +218,6 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_array_anytype") @JsonProperty("map_array_anytype")
public Map<String, List<Object>> getMapArrayAnytype() { public Map<String, List<Object>> getMapArrayAnytype() {
@ -265,8 +253,6 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_map_string") @JsonProperty("map_map_string")
public Map<String, Map<String, String>> getMapMapString() { public Map<String, Map<String, String>> getMapMapString() {
@ -302,8 +288,6 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_map_anytype") @JsonProperty("map_map_anytype")
public Map<String, Map<String, Object>> getMapMapAnytype() { public Map<String, Map<String, Object>> getMapMapAnytype() {
@ -339,8 +323,6 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("anytype_1") @JsonProperty("anytype_1")
public Object getAnytype1() { public Object getAnytype1() {
@ -360,8 +342,6 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("anytype_2") @JsonProperty("anytype_2")
public Object getAnytype2() { public Object getAnytype2() {
@ -381,8 +361,6 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("anytype_3") @JsonProperty("anytype_3")
public Object getAnytype3() { public Object getAnytype3() {

View File

@ -31,8 +31,6 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> implem
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {

View File

@ -32,8 +32,6 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> impl
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {

View File

@ -31,8 +31,6 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> implements
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {

View File

@ -31,8 +31,6 @@ public class AdditionalPropertiesString extends HashMap<String, String> implemen
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {

View File

@ -39,8 +39,6 @@ public class Animal implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("className") @JsonProperty("className")
@NotNull @NotNull
@ -61,8 +59,6 @@ public class Animal implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("color") @JsonProperty("color")
public String getColor() { public String getColor() {

View File

@ -32,8 +32,6 @@ public class ArrayOfArrayOfNumberOnly implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("ArrayArrayNumber") @JsonProperty("ArrayArrayNumber")
public List<List<BigDecimal>> getArrayArrayNumber() { public List<List<BigDecimal>> getArrayArrayNumber() {

View File

@ -32,8 +32,6 @@ public class ArrayOfNumberOnly implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("ArrayNumber") @JsonProperty("ArrayNumber")
public List<BigDecimal> getArrayNumber() { public List<BigDecimal> getArrayNumber() {

View File

@ -34,8 +34,6 @@ public class ArrayTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("array_of_string") @JsonProperty("array_of_string")
public List<String> getArrayOfString() { public List<String> getArrayOfString() {
@ -71,8 +69,6 @@ public class ArrayTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("array_array_of_integer") @JsonProperty("array_array_of_integer")
public List<List<Long>> getArrayArrayOfInteger() { public List<List<Long>> getArrayArrayOfInteger() {
@ -108,8 +104,6 @@ public class ArrayTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("array_array_of_model") @JsonProperty("array_array_of_model")
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() { public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {

View File

@ -79,8 +79,6 @@ public enum KindEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("kind") @JsonProperty("kind")
public KindEnum getKind() { public KindEnum getKind() {

View File

@ -78,8 +78,6 @@ public enum KindEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("kind") @JsonProperty("kind")
public KindEnum getKind() { public KindEnum getKind() {

View File

@ -34,8 +34,6 @@ public class Capitalization implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("smallCamel") @JsonProperty("smallCamel")
public String getSmallCamel() { public String getSmallCamel() {
@ -55,8 +53,6 @@ public class Capitalization implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("CapitalCamel") @JsonProperty("CapitalCamel")
public String getCapitalCamel() { public String getCapitalCamel() {
@ -76,8 +72,6 @@ public class Capitalization implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("small_Snake") @JsonProperty("small_Snake")
public String getSmallSnake() { public String getSmallSnake() {
@ -97,8 +91,6 @@ public class Capitalization implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("Capital_Snake") @JsonProperty("Capital_Snake")
public String getCapitalSnake() { public String getCapitalSnake() {
@ -118,8 +110,6 @@ public class Capitalization implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("SCA_ETH_Flow_Points") @JsonProperty("SCA_ETH_Flow_Points")
public String getScAETHFlowPoints() { public String getScAETHFlowPoints() {
@ -140,8 +130,6 @@ public class Capitalization implements Serializable {
} }
@ApiModelProperty(value = "Name of the pet ") @ApiModelProperty(value = "Name of the pet ")
@JsonProperty("ATT_NAME") @JsonProperty("ATT_NAME")
public String getATTNAME() { public String getATTNAME() {

View File

@ -31,8 +31,6 @@ public class Cat extends Animal implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("declawed") @JsonProperty("declawed")
public Boolean getDeclawed() { public Boolean getDeclawed() {

View File

@ -30,8 +30,6 @@ public class CatAllOf implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("declawed") @JsonProperty("declawed")
public Boolean getDeclawed() { public Boolean getDeclawed() {

View File

@ -30,8 +30,6 @@ public class Category implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
@ -51,8 +49,6 @@ public class Category implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("name") @JsonProperty("name")
@NotNull @NotNull

View File

@ -31,8 +31,6 @@ public class ClassModel implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("_class") @JsonProperty("_class")
public String getPropertyClass() { public String getPropertyClass() {

View File

@ -29,8 +29,6 @@ public class Client implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("client") @JsonProperty("client")
public String getClient() { public String getClient() {

View File

@ -31,8 +31,6 @@ public class Dog extends Animal implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("breed") @JsonProperty("breed")
public String getBreed() { public String getBreed() {

View File

@ -30,8 +30,6 @@ public class DogAllOf implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("breed") @JsonProperty("breed")
public String getBreed() { public String getBreed() {

View File

@ -128,8 +128,6 @@ public enum ArrayEnumEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("just_symbol") @JsonProperty("just_symbol")
public JustSymbolEnum getJustSymbol() { public JustSymbolEnum getJustSymbol() {
@ -149,8 +147,6 @@ public enum ArrayEnumEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("array_enum") @JsonProperty("array_enum")
public List<ArrayEnumEnum> getArrayEnum() { public List<ArrayEnumEnum> getArrayEnum() {

View File

@ -227,8 +227,6 @@ public enum EnumNumberEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("enum_string") @JsonProperty("enum_string")
public EnumStringEnum getEnumString() { public EnumStringEnum getEnumString() {
@ -248,8 +246,6 @@ public enum EnumNumberEnum {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("enum_string_required") @JsonProperty("enum_string_required")
@NotNull @NotNull
@ -270,8 +266,6 @@ public enum EnumNumberEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("enum_integer") @JsonProperty("enum_integer")
public EnumIntegerEnum getEnumInteger() { public EnumIntegerEnum getEnumInteger() {
@ -291,8 +285,6 @@ public enum EnumNumberEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("enum_number") @JsonProperty("enum_number")
public EnumNumberEnum getEnumNumber() { public EnumNumberEnum getEnumNumber() {
@ -312,8 +304,6 @@ public enum EnumNumberEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("outerEnum") @JsonProperty("outerEnum")
public OuterEnum getOuterEnum() { public OuterEnum getOuterEnum() {

View File

@ -33,8 +33,6 @@ public class FileSchemaTestClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("file") @JsonProperty("file")
public ModelFile getFile() { public ModelFile getFile() {
@ -54,8 +52,6 @@ public class FileSchemaTestClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("files") @JsonProperty("files")
public List<ModelFile> getFiles() { public List<ModelFile> getFiles() {

View File

@ -50,8 +50,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("integer") @JsonProperty("integer")
@Min(10) @Max(100) public Integer getInteger() { @Min(10) @Max(100) public Integer getInteger() {
@ -73,8 +71,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("int32") @JsonProperty("int32")
@Min(20) @Max(200) public Integer getInt32() { @Min(20) @Max(200) public Integer getInt32() {
@ -94,8 +90,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("int64") @JsonProperty("int64")
public Long getInt64() { public Long getInt64() {
@ -117,8 +111,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("number") @JsonProperty("number")
@NotNull @NotNull
@ -141,8 +133,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("float") @JsonProperty("float")
@DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() {
@ -164,8 +154,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("double") @JsonProperty("double")
@DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() {
@ -185,8 +173,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("string") @JsonProperty("string")
@Pattern(regexp="/[a-z]/i") public String getString() { @Pattern(regexp="/[a-z]/i") public String getString() {
@ -206,8 +192,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("byte") @JsonProperty("byte")
@NotNull @NotNull
@ -228,8 +212,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("binary") @JsonProperty("binary")
public File getBinary() { public File getBinary() {
@ -249,8 +231,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("date") @JsonProperty("date")
@NotNull @NotNull
@ -271,8 +251,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("dateTime") @JsonProperty("dateTime")
public Date getDateTime() { public Date getDateTime() {
@ -292,8 +270,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "")
@JsonProperty("uuid") @JsonProperty("uuid")
public UUID getUuid() { public UUID getUuid() {
@ -313,8 +289,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("password") @JsonProperty("password")
@NotNull @NotNull
@ -335,8 +309,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("BigDecimal") @JsonProperty("BigDecimal")
public BigDecimal getBigDecimal() { public BigDecimal getBigDecimal() {

View File

@ -31,8 +31,6 @@ public class HasOnlyReadOnly implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("bar") @JsonProperty("bar")
public String getBar() { public String getBar() {
@ -52,8 +50,6 @@ public class HasOnlyReadOnly implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("foo") @JsonProperty("foo")
public String getFoo() { public String getFoo() {

View File

@ -83,8 +83,6 @@ public enum InnerEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_map_of_string") @JsonProperty("map_map_of_string")
public Map<String, Map<String, String>> getMapMapOfString() { public Map<String, Map<String, String>> getMapMapOfString() {
@ -120,8 +118,6 @@ public enum InnerEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_of_enum_string") @JsonProperty("map_of_enum_string")
public Map<String, InnerEnum> getMapOfEnumString() { public Map<String, InnerEnum> getMapOfEnumString() {
@ -157,8 +153,6 @@ public enum InnerEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("direct_map") @JsonProperty("direct_map")
public Map<String, Boolean> getDirectMap() { public Map<String, Boolean> getDirectMap() {
@ -194,8 +188,6 @@ public enum InnerEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("indirect_map") @JsonProperty("indirect_map")
public Map<String, Boolean> getIndirectMap() { public Map<String, Boolean> getIndirectMap() {

View File

@ -37,8 +37,6 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("uuid") @JsonProperty("uuid")
public UUID getUuid() { public UUID getUuid() {
@ -58,8 +56,6 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("dateTime") @JsonProperty("dateTime")
public Date getDateTime() { public Date getDateTime() {
@ -79,8 +75,6 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map") @JsonProperty("map")
public Map<String, Animal> getMap() { public Map<String, Animal> getMap() {

View File

@ -33,8 +33,6 @@ public class Model200Response implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public Integer getName() { public Integer getName() {
@ -54,8 +52,6 @@ public class Model200Response implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("class") @JsonProperty("class")
public String getPropertyClass() { public String getPropertyClass() {

View File

@ -32,8 +32,6 @@ public class ModelApiResponse implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("code") @JsonProperty("code")
public Integer getCode() { public Integer getCode() {
@ -53,8 +51,6 @@ public class ModelApiResponse implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("type") @JsonProperty("type")
public String getType() { public String getType() {
@ -74,8 +70,6 @@ public class ModelApiResponse implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("message") @JsonProperty("message")
public String getMessage() { public String getMessage() {

View File

@ -33,8 +33,6 @@ public class ModelFile implements Serializable {
} }
@ApiModelProperty(value = "Test capitalization") @ApiModelProperty(value = "Test capitalization")
@JsonProperty("sourceURI") @JsonProperty("sourceURI")
public String getSourceURI() { public String getSourceURI() {

View File

@ -30,8 +30,6 @@ public class ModelList implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("123-list") @JsonProperty("123-list")
public String get123list() { public String get123list() {

View File

@ -32,8 +32,6 @@ public class ModelReturn implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("return") @JsonProperty("return")
public Integer getReturn() { public Integer getReturn() {

View File

@ -34,8 +34,6 @@ public class Name implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("name") @JsonProperty("name")
@NotNull @NotNull
@ -56,8 +54,6 @@ public class Name implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("snake_case") @JsonProperty("snake_case")
public Integer getSnakeCase() { public Integer getSnakeCase() {
@ -77,8 +73,6 @@ public class Name implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("property") @JsonProperty("property")
public String getProperty() { public String getProperty() {
@ -98,8 +92,6 @@ public class Name implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("123Number") @JsonProperty("123Number")
public Integer get123number() { public Integer get123number() {

View File

@ -30,8 +30,6 @@ public class NumberOnly implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("JustNumber") @JsonProperty("JustNumber")
public BigDecimal getJustNumber() { public BigDecimal getJustNumber() {

View File

@ -83,8 +83,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
@ -104,8 +102,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("petId") @JsonProperty("petId")
public Long getPetId() { public Long getPetId() {
@ -125,8 +121,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("quantity") @JsonProperty("quantity")
public Integer getQuantity() { public Integer getQuantity() {
@ -146,8 +140,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("shipDate") @JsonProperty("shipDate")
public Date getShipDate() { public Date getShipDate() {
@ -168,8 +160,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "Order Status") @ApiModelProperty(value = "Order Status")
@JsonProperty("status") @JsonProperty("status")
public StatusEnum getStatus() { public StatusEnum getStatus() {
@ -189,8 +179,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("complete") @JsonProperty("complete")
public Boolean getComplete() { public Boolean getComplete() {

View File

@ -32,8 +32,6 @@ public class OuterComposite implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("my_number") @JsonProperty("my_number")
public BigDecimal getMyNumber() { public BigDecimal getMyNumber() {
@ -53,8 +51,6 @@ public class OuterComposite implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("my_string") @JsonProperty("my_string")
public String getMyString() { public String getMyString() {
@ -74,8 +70,6 @@ public class OuterComposite implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("my_boolean") @JsonProperty("my_boolean")
public Boolean getMyBoolean() { public Boolean getMyBoolean() {

View File

@ -89,8 +89,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
@ -110,8 +108,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("category") @JsonProperty("category")
public Category getCategory() { public Category getCategory() {
@ -131,8 +127,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(example = "doggie", required = true, value = "") @ApiModelProperty(example = "doggie", required = true, value = "")
@JsonProperty("name") @JsonProperty("name")
@NotNull @NotNull
@ -153,8 +147,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("photoUrls") @JsonProperty("photoUrls")
@NotNull @NotNull
@ -192,8 +184,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("tags") @JsonProperty("tags")
public List<Tag> getTags() { public List<Tag> getTags() {
@ -230,8 +220,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "pet status in the store") @ApiModelProperty(value = "pet status in the store")
@JsonProperty("status") @JsonProperty("status")
public StatusEnum getStatus() { public StatusEnum getStatus() {

View File

@ -30,8 +30,6 @@ public class ReadOnlyFirst implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("bar") @JsonProperty("bar")
public String getBar() { public String getBar() {
@ -51,8 +49,6 @@ public class ReadOnlyFirst implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("baz") @JsonProperty("baz")
public String getBaz() { public String getBaz() {

View File

@ -30,8 +30,6 @@ public class SpecialModelName implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("$special[property.name]") @JsonProperty("$special[property.name]")
public Long get$SpecialPropertyName() { public Long get$SpecialPropertyName() {

View File

@ -30,8 +30,6 @@ public class Tag implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
@ -51,8 +49,6 @@ public class Tag implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {

View File

@ -36,8 +36,6 @@ public class TypeHolderDefault implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("string_item") @JsonProperty("string_item")
@NotNull @NotNull
@ -58,8 +56,6 @@ public class TypeHolderDefault implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("number_item") @JsonProperty("number_item")
@NotNull @NotNull
@ -80,8 +76,6 @@ public class TypeHolderDefault implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("integer_item") @JsonProperty("integer_item")
@NotNull @NotNull
@ -102,8 +96,6 @@ public class TypeHolderDefault implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("bool_item") @JsonProperty("bool_item")
@NotNull @NotNull
@ -124,8 +116,6 @@ public class TypeHolderDefault implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("array_item") @JsonProperty("array_item")
@NotNull @NotNull

View File

@ -37,8 +37,6 @@ public class TypeHolderExample implements Serializable {
} }
@ApiModelProperty(example = "what", required = true, value = "") @ApiModelProperty(example = "what", required = true, value = "")
@JsonProperty("string_item") @JsonProperty("string_item")
@NotNull @NotNull
@ -59,8 +57,6 @@ public class TypeHolderExample implements Serializable {
} }
@ApiModelProperty(example = "1.234", required = true, value = "") @ApiModelProperty(example = "1.234", required = true, value = "")
@JsonProperty("number_item") @JsonProperty("number_item")
@NotNull @NotNull
@ -81,8 +77,6 @@ public class TypeHolderExample implements Serializable {
} }
@ApiModelProperty(example = "1.234", required = true, value = "") @ApiModelProperty(example = "1.234", required = true, value = "")
@JsonProperty("float_item") @JsonProperty("float_item")
@NotNull @NotNull
@ -103,8 +97,6 @@ public class TypeHolderExample implements Serializable {
} }
@ApiModelProperty(example = "-2", required = true, value = "") @ApiModelProperty(example = "-2", required = true, value = "")
@JsonProperty("integer_item") @JsonProperty("integer_item")
@NotNull @NotNull
@ -125,8 +117,6 @@ public class TypeHolderExample implements Serializable {
} }
@ApiModelProperty(example = "true", required = true, value = "") @ApiModelProperty(example = "true", required = true, value = "")
@JsonProperty("bool_item") @JsonProperty("bool_item")
@NotNull @NotNull
@ -147,8 +137,6 @@ public class TypeHolderExample implements Serializable {
} }
@ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
@JsonProperty("array_item") @JsonProperty("array_item")
@NotNull @NotNull

View File

@ -36,8 +36,6 @@ public class User implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
@ -57,8 +55,6 @@ public class User implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("username") @JsonProperty("username")
public String getUsername() { public String getUsername() {
@ -78,8 +74,6 @@ public class User implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("firstName") @JsonProperty("firstName")
public String getFirstName() { public String getFirstName() {
@ -99,8 +93,6 @@ public class User implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("lastName") @JsonProperty("lastName")
public String getLastName() { public String getLastName() {
@ -120,8 +112,6 @@ public class User implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("email") @JsonProperty("email")
public String getEmail() { public String getEmail() {
@ -141,8 +131,6 @@ public class User implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("password") @JsonProperty("password")
public String getPassword() { public String getPassword() {
@ -162,8 +150,6 @@ public class User implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("phone") @JsonProperty("phone")
public String getPhone() { public String getPhone() {
@ -184,8 +170,6 @@ public class User implements Serializable {
} }
@ApiModelProperty(value = "User Status") @ApiModelProperty(value = "User Status")
@JsonProperty("userStatus") @JsonProperty("userStatus")
public Integer getUserStatus() { public Integer getUserStatus() {

View File

@ -60,8 +60,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "string", value = "") @ApiModelProperty(example = "string", value = "")
@JsonProperty("attribute_string") @JsonProperty("attribute_string")
public String getAttributeString() { public String getAttributeString() {
@ -81,8 +79,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "1.234", value = "") @ApiModelProperty(example = "1.234", value = "")
@JsonProperty("attribute_number") @JsonProperty("attribute_number")
public BigDecimal getAttributeNumber() { public BigDecimal getAttributeNumber() {
@ -102,8 +98,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "-2", value = "") @ApiModelProperty(example = "-2", value = "")
@JsonProperty("attribute_integer") @JsonProperty("attribute_integer")
public Integer getAttributeInteger() { public Integer getAttributeInteger() {
@ -123,8 +117,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "true", value = "") @ApiModelProperty(example = "true", value = "")
@JsonProperty("attribute_boolean") @JsonProperty("attribute_boolean")
public Boolean getAttributeBoolean() { public Boolean getAttributeBoolean() {
@ -144,8 +136,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("wrapped_array") @JsonProperty("wrapped_array")
public List<Integer> getWrappedArray() { public List<Integer> getWrappedArray() {
@ -181,8 +171,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "string", value = "") @ApiModelProperty(example = "string", value = "")
@JsonProperty("name_string") @JsonProperty("name_string")
public String getNameString() { public String getNameString() {
@ -202,8 +190,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "1.234", value = "") @ApiModelProperty(example = "1.234", value = "")
@JsonProperty("name_number") @JsonProperty("name_number")
public BigDecimal getNameNumber() { public BigDecimal getNameNumber() {
@ -223,8 +209,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "-2", value = "") @ApiModelProperty(example = "-2", value = "")
@JsonProperty("name_integer") @JsonProperty("name_integer")
public Integer getNameInteger() { public Integer getNameInteger() {
@ -244,8 +228,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "true", value = "") @ApiModelProperty(example = "true", value = "")
@JsonProperty("name_boolean") @JsonProperty("name_boolean")
public Boolean getNameBoolean() { public Boolean getNameBoolean() {
@ -265,8 +247,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name_array") @JsonProperty("name_array")
public List<Integer> getNameArray() { public List<Integer> getNameArray() {
@ -302,8 +282,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name_wrapped_array") @JsonProperty("name_wrapped_array")
public List<Integer> getNameWrappedArray() { public List<Integer> getNameWrappedArray() {
@ -339,8 +317,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "string", value = "") @ApiModelProperty(example = "string", value = "")
@JsonProperty("prefix_string") @JsonProperty("prefix_string")
public String getPrefixString() { public String getPrefixString() {
@ -360,8 +336,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "1.234", value = "") @ApiModelProperty(example = "1.234", value = "")
@JsonProperty("prefix_number") @JsonProperty("prefix_number")
public BigDecimal getPrefixNumber() { public BigDecimal getPrefixNumber() {
@ -381,8 +355,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "-2", value = "") @ApiModelProperty(example = "-2", value = "")
@JsonProperty("prefix_integer") @JsonProperty("prefix_integer")
public Integer getPrefixInteger() { public Integer getPrefixInteger() {
@ -402,8 +374,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "true", value = "") @ApiModelProperty(example = "true", value = "")
@JsonProperty("prefix_boolean") @JsonProperty("prefix_boolean")
public Boolean getPrefixBoolean() { public Boolean getPrefixBoolean() {
@ -423,8 +393,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("prefix_array") @JsonProperty("prefix_array")
public List<Integer> getPrefixArray() { public List<Integer> getPrefixArray() {
@ -460,8 +428,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("prefix_wrapped_array") @JsonProperty("prefix_wrapped_array")
public List<Integer> getPrefixWrappedArray() { public List<Integer> getPrefixWrappedArray() {
@ -497,8 +463,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "string", value = "") @ApiModelProperty(example = "string", value = "")
@JsonProperty("namespace_string") @JsonProperty("namespace_string")
public String getNamespaceString() { public String getNamespaceString() {
@ -518,8 +482,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "1.234", value = "") @ApiModelProperty(example = "1.234", value = "")
@JsonProperty("namespace_number") @JsonProperty("namespace_number")
public BigDecimal getNamespaceNumber() { public BigDecimal getNamespaceNumber() {
@ -539,8 +501,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "-2", value = "") @ApiModelProperty(example = "-2", value = "")
@JsonProperty("namespace_integer") @JsonProperty("namespace_integer")
public Integer getNamespaceInteger() { public Integer getNamespaceInteger() {
@ -560,8 +520,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "true", value = "") @ApiModelProperty(example = "true", value = "")
@JsonProperty("namespace_boolean") @JsonProperty("namespace_boolean")
public Boolean getNamespaceBoolean() { public Boolean getNamespaceBoolean() {
@ -581,8 +539,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("namespace_array") @JsonProperty("namespace_array")
public List<Integer> getNamespaceArray() { public List<Integer> getNamespaceArray() {
@ -618,8 +574,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("namespace_wrapped_array") @JsonProperty("namespace_wrapped_array")
public List<Integer> getNamespaceWrappedArray() { public List<Integer> getNamespaceWrappedArray() {
@ -655,8 +609,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "string", value = "") @ApiModelProperty(example = "string", value = "")
@JsonProperty("prefix_ns_string") @JsonProperty("prefix_ns_string")
public String getPrefixNsString() { public String getPrefixNsString() {
@ -676,8 +628,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "1.234", value = "") @ApiModelProperty(example = "1.234", value = "")
@JsonProperty("prefix_ns_number") @JsonProperty("prefix_ns_number")
public BigDecimal getPrefixNsNumber() { public BigDecimal getPrefixNsNumber() {
@ -697,8 +647,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "-2", value = "") @ApiModelProperty(example = "-2", value = "")
@JsonProperty("prefix_ns_integer") @JsonProperty("prefix_ns_integer")
public Integer getPrefixNsInteger() { public Integer getPrefixNsInteger() {
@ -718,8 +666,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "true", value = "") @ApiModelProperty(example = "true", value = "")
@JsonProperty("prefix_ns_boolean") @JsonProperty("prefix_ns_boolean")
public Boolean getPrefixNsBoolean() { public Boolean getPrefixNsBoolean() {
@ -739,8 +685,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("prefix_ns_array") @JsonProperty("prefix_ns_array")
public List<Integer> getPrefixNsArray() { public List<Integer> getPrefixNsArray() {
@ -776,8 +720,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("prefix_ns_wrapped_array") @JsonProperty("prefix_ns_wrapped_array")
public List<Integer> getPrefixNsWrappedArray() { public List<Integer> getPrefixNsWrappedArray() {

View File

@ -31,8 +31,6 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> impleme
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {

View File

@ -32,8 +32,6 @@ public class AdditionalPropertiesArray extends HashMap<String, List> implements
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {

View File

@ -31,8 +31,6 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> implem
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {

View File

@ -35,6 +35,12 @@ public class AdditionalPropertiesClass implements Serializable {
private @Valid Object anytype2; private @Valid Object anytype2;
private @Valid Object anytype3; private @Valid Object anytype3;
protected AdditionalPropertiesClass(AdditionalPropertiesClassBuilder<?, ?> b) {
this.mapString = b.mapString;this.mapNumber = b.mapNumber;this.mapInteger = b.mapInteger;this.mapBoolean = b.mapBoolean;this.mapArrayInteger = b.mapArrayInteger;this.mapArrayAnytype = b.mapArrayAnytype;this.mapMapString = b.mapMapString;this.mapMapAnytype = b.mapMapAnytype;this.anytype1 = b.anytype1;this.anytype2 = b.anytype2;this.anytype3 = b.anytype3;
}
public AdditionalPropertiesClass() { }
/** /**
**/ **/
public AdditionalPropertiesClass mapString(Map<String, String> mapString) { public AdditionalPropertiesClass mapString(Map<String, String> mapString) {
@ -43,8 +49,6 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_string") @JsonProperty("map_string")
public Map<String, String> getMapString() { public Map<String, String> getMapString() {
@ -80,8 +84,6 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_number") @JsonProperty("map_number")
public Map<String, BigDecimal> getMapNumber() { public Map<String, BigDecimal> getMapNumber() {
@ -117,8 +119,6 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_integer") @JsonProperty("map_integer")
public Map<String, Integer> getMapInteger() { public Map<String, Integer> getMapInteger() {
@ -154,8 +154,6 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_boolean") @JsonProperty("map_boolean")
public Map<String, Boolean> getMapBoolean() { public Map<String, Boolean> getMapBoolean() {
@ -191,8 +189,6 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_array_integer") @JsonProperty("map_array_integer")
public Map<String, List<Integer>> getMapArrayInteger() { public Map<String, List<Integer>> getMapArrayInteger() {
@ -228,8 +224,6 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_array_anytype") @JsonProperty("map_array_anytype")
public Map<String, List<Object>> getMapArrayAnytype() { public Map<String, List<Object>> getMapArrayAnytype() {
@ -265,8 +259,6 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_map_string") @JsonProperty("map_map_string")
public Map<String, Map<String, String>> getMapMapString() { public Map<String, Map<String, String>> getMapMapString() {
@ -302,8 +294,6 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_map_anytype") @JsonProperty("map_map_anytype")
public Map<String, Map<String, Object>> getMapMapAnytype() { public Map<String, Map<String, Object>> getMapMapAnytype() {
@ -339,8 +329,6 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("anytype_1") @JsonProperty("anytype_1")
public Object getAnytype1() { public Object getAnytype1() {
@ -360,8 +348,6 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("anytype_2") @JsonProperty("anytype_2")
public Object getAnytype2() { public Object getAnytype2() {
@ -381,8 +367,6 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("anytype_3") @JsonProperty("anytype_3")
public Object getAnytype3() { public Object getAnytype3() {
@ -454,5 +438,83 @@ public class AdditionalPropertiesClass implements Serializable {
} }
public static AdditionalPropertiesClassBuilder<?, ?> builder() {
return new AdditionalPropertiesClassBuilderImpl();
}
private static final class AdditionalPropertiesClassBuilderImpl extends AdditionalPropertiesClassBuilder<AdditionalPropertiesClass, AdditionalPropertiesClassBuilderImpl> {
@Override
protected AdditionalPropertiesClassBuilderImpl self() {
return this;
}
@Override
public AdditionalPropertiesClass build() {
return new AdditionalPropertiesClass(this);
}
}
public static abstract class AdditionalPropertiesClassBuilder<C extends AdditionalPropertiesClass, B extends AdditionalPropertiesClassBuilder<C, B>> {
private Map<String, String> mapString = new HashMap<>();
private Map<String, BigDecimal> mapNumber = new HashMap<>();
private Map<String, Integer> mapInteger = new HashMap<>();
private Map<String, Boolean> mapBoolean = new HashMap<>();
private Map<String, List<Integer>> mapArrayInteger = new HashMap<>();
private Map<String, List<Object>> mapArrayAnytype = new HashMap<>();
private Map<String, Map<String, String>> mapMapString = new HashMap<>();
private Map<String, Map<String, Object>> mapMapAnytype = new HashMap<>();
private Object anytype1;
private Object anytype2;
private Object anytype3;
protected abstract B self();
public abstract C build();
public B mapString(Map<String, String> mapString) {
this.mapString = mapString;
return self();
}
public B mapNumber(Map<String, BigDecimal> mapNumber) {
this.mapNumber = mapNumber;
return self();
}
public B mapInteger(Map<String, Integer> mapInteger) {
this.mapInteger = mapInteger;
return self();
}
public B mapBoolean(Map<String, Boolean> mapBoolean) {
this.mapBoolean = mapBoolean;
return self();
}
public B mapArrayInteger(Map<String, List<Integer>> mapArrayInteger) {
this.mapArrayInteger = mapArrayInteger;
return self();
}
public B mapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) {
this.mapArrayAnytype = mapArrayAnytype;
return self();
}
public B mapMapString(Map<String, Map<String, String>> mapMapString) {
this.mapMapString = mapMapString;
return self();
}
public B mapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) {
this.mapMapAnytype = mapMapAnytype;
return self();
}
public B anytype1(Object anytype1) {
this.anytype1 = anytype1;
return self();
}
public B anytype2(Object anytype2) {
this.anytype2 = anytype2;
return self();
}
public B anytype3(Object anytype3) {
this.anytype3 = anytype3;
return self();
}
}
} }

View File

@ -31,8 +31,6 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> implem
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {

View File

@ -32,8 +32,6 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> impl
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {

View File

@ -31,8 +31,6 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> implements
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {

View File

@ -31,8 +31,6 @@ public class AdditionalPropertiesString extends HashMap<String, String> implemen
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {

View File

@ -31,6 +31,12 @@ public class Animal implements Serializable {
private @Valid String className; private @Valid String className;
private @Valid String color = "red"; private @Valid String color = "red";
protected Animal(AnimalBuilder<?, ?> b) {
this.className = b.className;this.color = b.color;
}
public Animal() { }
/** /**
**/ **/
public Animal className(String className) { public Animal className(String className) {
@ -39,8 +45,6 @@ public class Animal implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("className") @JsonProperty("className")
@NotNull @NotNull
@ -61,8 +65,6 @@ public class Animal implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("color") @JsonProperty("color")
public String getColor() { public String getColor() {
@ -116,5 +118,38 @@ public class Animal implements Serializable {
} }
public static AnimalBuilder<?, ?> builder() {
return new AnimalBuilderImpl();
}
private static final class AnimalBuilderImpl extends AnimalBuilder<Animal, AnimalBuilderImpl> {
@Override
protected AnimalBuilderImpl self() {
return this;
}
@Override
public Animal build() {
return new Animal(this);
}
}
public static abstract class AnimalBuilder<C extends Animal, B extends AnimalBuilder<C, B>> {
private String className;
private String color = "red";
protected abstract B self();
public abstract C build();
public B className(String className) {
this.className = className;
return self();
}
public B color(String color) {
this.color = color;
return self();
}
}
} }

View File

@ -24,6 +24,12 @@ public class ArrayOfArrayOfNumberOnly implements Serializable {
private @Valid List<List<BigDecimal>> arrayArrayNumber = new ArrayList<>(); private @Valid List<List<BigDecimal>> arrayArrayNumber = new ArrayList<>();
protected ArrayOfArrayOfNumberOnly(ArrayOfArrayOfNumberOnlyBuilder<?, ?> b) {
this.arrayArrayNumber = b.arrayArrayNumber;
}
public ArrayOfArrayOfNumberOnly() { }
/** /**
**/ **/
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) { public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
@ -32,8 +38,6 @@ public class ArrayOfArrayOfNumberOnly implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("ArrayArrayNumber") @JsonProperty("ArrayArrayNumber")
public List<List<BigDecimal>> getArrayArrayNumber() { public List<List<BigDecimal>> getArrayArrayNumber() {
@ -101,5 +105,33 @@ public class ArrayOfArrayOfNumberOnly implements Serializable {
} }
public static ArrayOfArrayOfNumberOnlyBuilder<?, ?> builder() {
return new ArrayOfArrayOfNumberOnlyBuilderImpl();
}
private static final class ArrayOfArrayOfNumberOnlyBuilderImpl extends ArrayOfArrayOfNumberOnlyBuilder<ArrayOfArrayOfNumberOnly, ArrayOfArrayOfNumberOnlyBuilderImpl> {
@Override
protected ArrayOfArrayOfNumberOnlyBuilderImpl self() {
return this;
}
@Override
public ArrayOfArrayOfNumberOnly build() {
return new ArrayOfArrayOfNumberOnly(this);
}
}
public static abstract class ArrayOfArrayOfNumberOnlyBuilder<C extends ArrayOfArrayOfNumberOnly, B extends ArrayOfArrayOfNumberOnlyBuilder<C, B>> {
private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<>();
protected abstract B self();
public abstract C build();
public B arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
this.arrayArrayNumber = arrayArrayNumber;
return self();
}
}
} }

View File

@ -24,6 +24,12 @@ public class ArrayOfNumberOnly implements Serializable {
private @Valid List<BigDecimal> arrayNumber = new ArrayList<>(); private @Valid List<BigDecimal> arrayNumber = new ArrayList<>();
protected ArrayOfNumberOnly(ArrayOfNumberOnlyBuilder<?, ?> b) {
this.arrayNumber = b.arrayNumber;
}
public ArrayOfNumberOnly() { }
/** /**
**/ **/
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) { public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
@ -32,8 +38,6 @@ public class ArrayOfNumberOnly implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("ArrayNumber") @JsonProperty("ArrayNumber")
public List<BigDecimal> getArrayNumber() { public List<BigDecimal> getArrayNumber() {
@ -101,5 +105,33 @@ public class ArrayOfNumberOnly implements Serializable {
} }
public static ArrayOfNumberOnlyBuilder<?, ?> builder() {
return new ArrayOfNumberOnlyBuilderImpl();
}
private static final class ArrayOfNumberOnlyBuilderImpl extends ArrayOfNumberOnlyBuilder<ArrayOfNumberOnly, ArrayOfNumberOnlyBuilderImpl> {
@Override
protected ArrayOfNumberOnlyBuilderImpl self() {
return this;
}
@Override
public ArrayOfNumberOnly build() {
return new ArrayOfNumberOnly(this);
}
}
public static abstract class ArrayOfNumberOnlyBuilder<C extends ArrayOfNumberOnly, B extends ArrayOfNumberOnlyBuilder<C, B>> {
private List<BigDecimal> arrayNumber = new ArrayList<>();
protected abstract B self();
public abstract C build();
public B arrayNumber(List<BigDecimal> arrayNumber) {
this.arrayNumber = arrayNumber;
return self();
}
}
} }

View File

@ -26,6 +26,12 @@ public class ArrayTest implements Serializable {
private @Valid List<List<Long>> arrayArrayOfInteger = new ArrayList<>(); private @Valid List<List<Long>> arrayArrayOfInteger = new ArrayList<>();
private @Valid List<List<ReadOnlyFirst>> arrayArrayOfModel = new ArrayList<>(); private @Valid List<List<ReadOnlyFirst>> arrayArrayOfModel = new ArrayList<>();
protected ArrayTest(ArrayTestBuilder<?, ?> b) {
this.arrayOfString = b.arrayOfString;this.arrayArrayOfInteger = b.arrayArrayOfInteger;this.arrayArrayOfModel = b.arrayArrayOfModel;
}
public ArrayTest() { }
/** /**
**/ **/
public ArrayTest arrayOfString(List<String> arrayOfString) { public ArrayTest arrayOfString(List<String> arrayOfString) {
@ -34,8 +40,6 @@ public class ArrayTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("array_of_string") @JsonProperty("array_of_string")
public List<String> getArrayOfString() { public List<String> getArrayOfString() {
@ -71,8 +75,6 @@ public class ArrayTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("array_array_of_integer") @JsonProperty("array_array_of_integer")
public List<List<Long>> getArrayArrayOfInteger() { public List<List<Long>> getArrayArrayOfInteger() {
@ -108,8 +110,6 @@ public class ArrayTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("array_array_of_model") @JsonProperty("array_array_of_model")
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() { public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
@ -181,5 +181,43 @@ public class ArrayTest implements Serializable {
} }
public static ArrayTestBuilder<?, ?> builder() {
return new ArrayTestBuilderImpl();
}
private static final class ArrayTestBuilderImpl extends ArrayTestBuilder<ArrayTest, ArrayTestBuilderImpl> {
@Override
protected ArrayTestBuilderImpl self() {
return this;
}
@Override
public ArrayTest build() {
return new ArrayTest(this);
}
}
public static abstract class ArrayTestBuilder<C extends ArrayTest, B extends ArrayTestBuilder<C, B>> {
private List<String> arrayOfString = new ArrayList<>();
private List<List<Long>> arrayArrayOfInteger = new ArrayList<>();
private List<List<ReadOnlyFirst>> arrayArrayOfModel = new ArrayList<>();
protected abstract B self();
public abstract C build();
public B arrayOfString(List<String> arrayOfString) {
this.arrayOfString = arrayOfString;
return self();
}
public B arrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
this.arrayArrayOfInteger = arrayArrayOfInteger;
return self();
}
public B arrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
this.arrayArrayOfModel = arrayArrayOfModel;
return self();
}
}
} }

View File

@ -71,6 +71,13 @@ public enum KindEnum {
private @Valid KindEnum kind; private @Valid KindEnum kind;
protected BigCat(BigCatBuilder<?, ?> b) {
super(b);
this.kind = b.kind;
}
public BigCat() { }
/** /**
**/ **/
public BigCat kind(KindEnum kind) { public BigCat kind(KindEnum kind) {
@ -79,8 +86,6 @@ public enum KindEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("kind") @JsonProperty("kind")
public KindEnum getKind() { public KindEnum getKind() {
@ -133,5 +138,30 @@ public enum KindEnum {
} }
public static BigCatBuilder<?, ?> builder() {
return new BigCatBuilderImpl();
}
private static final class BigCatBuilderImpl extends BigCatBuilder<BigCat, BigCatBuilderImpl> {
@Override
protected BigCatBuilderImpl self() {
return this;
}
@Override
public BigCat build() {
return new BigCat(this);
}
}
public static abstract class BigCatBuilder<C extends BigCat, B extends BigCatBuilder<C, B>> extends CatBuilder<C, B> {
private KindEnum kind;
public B kind(KindEnum kind) {
this.kind = kind;
return self();
}
}
} }

View File

@ -70,6 +70,12 @@ public enum KindEnum {
private @Valid KindEnum kind; private @Valid KindEnum kind;
protected BigCatAllOf(BigCatAllOfBuilder<?, ?> b) {
this.kind = b.kind;
}
public BigCatAllOf() { }
/** /**
**/ **/
public BigCatAllOf kind(KindEnum kind) { public BigCatAllOf kind(KindEnum kind) {
@ -78,8 +84,6 @@ public enum KindEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("kind") @JsonProperty("kind")
public KindEnum getKind() { public KindEnum getKind() {
@ -131,5 +135,33 @@ public enum KindEnum {
} }
public static BigCatAllOfBuilder<?, ?> builder() {
return new BigCatAllOfBuilderImpl();
}
private static final class BigCatAllOfBuilderImpl extends BigCatAllOfBuilder<BigCatAllOf, BigCatAllOfBuilderImpl> {
@Override
protected BigCatAllOfBuilderImpl self() {
return this;
}
@Override
public BigCatAllOf build() {
return new BigCatAllOf(this);
}
}
public static abstract class BigCatAllOfBuilder<C extends BigCatAllOf, B extends BigCatAllOfBuilder<C, B>> {
private KindEnum kind;
protected abstract B self();
public abstract C build();
public B kind(KindEnum kind) {
this.kind = kind;
return self();
}
}
} }

View File

@ -26,6 +26,12 @@ public class Capitalization implements Serializable {
private @Valid String scAETHFlowPoints; private @Valid String scAETHFlowPoints;
private @Valid String ATT_NAME; private @Valid String ATT_NAME;
protected Capitalization(CapitalizationBuilder<?, ?> b) {
this.smallCamel = b.smallCamel;this.capitalCamel = b.capitalCamel;this.smallSnake = b.smallSnake;this.capitalSnake = b.capitalSnake;this.scAETHFlowPoints = b.scAETHFlowPoints;this.ATT_NAME = b.ATT_NAME;
}
public Capitalization() { }
/** /**
**/ **/
public Capitalization smallCamel(String smallCamel) { public Capitalization smallCamel(String smallCamel) {
@ -34,8 +40,6 @@ public class Capitalization implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("smallCamel") @JsonProperty("smallCamel")
public String getSmallCamel() { public String getSmallCamel() {
@ -55,8 +59,6 @@ public class Capitalization implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("CapitalCamel") @JsonProperty("CapitalCamel")
public String getCapitalCamel() { public String getCapitalCamel() {
@ -76,8 +78,6 @@ public class Capitalization implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("small_Snake") @JsonProperty("small_Snake")
public String getSmallSnake() { public String getSmallSnake() {
@ -97,8 +97,6 @@ public class Capitalization implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("Capital_Snake") @JsonProperty("Capital_Snake")
public String getCapitalSnake() { public String getCapitalSnake() {
@ -118,8 +116,6 @@ public class Capitalization implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("SCA_ETH_Flow_Points") @JsonProperty("SCA_ETH_Flow_Points")
public String getScAETHFlowPoints() { public String getScAETHFlowPoints() {
@ -140,8 +136,6 @@ public class Capitalization implements Serializable {
} }
@ApiModelProperty(value = "Name of the pet ") @ApiModelProperty(value = "Name of the pet ")
@JsonProperty("ATT_NAME") @JsonProperty("ATT_NAME")
public String getATTNAME() { public String getATTNAME() {
@ -203,5 +197,58 @@ public class Capitalization implements Serializable {
} }
public static CapitalizationBuilder<?, ?> builder() {
return new CapitalizationBuilderImpl();
}
private static final class CapitalizationBuilderImpl extends CapitalizationBuilder<Capitalization, CapitalizationBuilderImpl> {
@Override
protected CapitalizationBuilderImpl self() {
return this;
}
@Override
public Capitalization build() {
return new Capitalization(this);
}
}
public static abstract class CapitalizationBuilder<C extends Capitalization, B extends CapitalizationBuilder<C, B>> {
private String smallCamel;
private String capitalCamel;
private String smallSnake;
private String capitalSnake;
private String scAETHFlowPoints;
private String ATT_NAME;
protected abstract B self();
public abstract C build();
public B smallCamel(String smallCamel) {
this.smallCamel = smallCamel;
return self();
}
public B capitalCamel(String capitalCamel) {
this.capitalCamel = capitalCamel;
return self();
}
public B smallSnake(String smallSnake) {
this.smallSnake = smallSnake;
return self();
}
public B capitalSnake(String capitalSnake) {
this.capitalSnake = capitalSnake;
return self();
}
public B scAETHFlowPoints(String scAETHFlowPoints) {
this.scAETHFlowPoints = scAETHFlowPoints;
return self();
}
public B ATT_NAME(String ATT_NAME) {
this.ATT_NAME = ATT_NAME;
return self();
}
}
} }

View File

@ -23,6 +23,13 @@ public class Cat extends Animal implements Serializable {
private @Valid Boolean declawed; private @Valid Boolean declawed;
protected Cat(CatBuilder<?, ?> b) {
super(b);
this.declawed = b.declawed;
}
public Cat() { }
/** /**
**/ **/
public Cat declawed(Boolean declawed) { public Cat declawed(Boolean declawed) {
@ -31,8 +38,6 @@ public class Cat extends Animal implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("declawed") @JsonProperty("declawed")
public Boolean getDeclawed() { public Boolean getDeclawed() {
@ -85,5 +90,30 @@ public class Cat extends Animal implements Serializable {
} }
public static CatBuilder<?, ?> builder() {
return new CatBuilderImpl();
}
private static final class CatBuilderImpl extends CatBuilder<Cat, CatBuilderImpl> {
@Override
protected CatBuilderImpl self() {
return this;
}
@Override
public Cat build() {
return new Cat(this);
}
}
public static abstract class CatBuilder<C extends Cat, B extends CatBuilder<C, B>> extends AnimalBuilder<C, B> {
private Boolean declawed;
public B declawed(Boolean declawed) {
this.declawed = declawed;
return self();
}
}
} }

View File

@ -22,6 +22,12 @@ public class CatAllOf implements Serializable {
private @Valid Boolean declawed; private @Valid Boolean declawed;
protected CatAllOf(CatAllOfBuilder<?, ?> b) {
this.declawed = b.declawed;
}
public CatAllOf() { }
/** /**
**/ **/
public CatAllOf declawed(Boolean declawed) { public CatAllOf declawed(Boolean declawed) {
@ -30,8 +36,6 @@ public class CatAllOf implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("declawed") @JsonProperty("declawed")
public Boolean getDeclawed() { public Boolean getDeclawed() {
@ -83,5 +87,33 @@ public class CatAllOf implements Serializable {
} }
public static CatAllOfBuilder<?, ?> builder() {
return new CatAllOfBuilderImpl();
}
private static final class CatAllOfBuilderImpl extends CatAllOfBuilder<CatAllOf, CatAllOfBuilderImpl> {
@Override
protected CatAllOfBuilderImpl self() {
return this;
}
@Override
public CatAllOf build() {
return new CatAllOf(this);
}
}
public static abstract class CatAllOfBuilder<C extends CatAllOf, B extends CatAllOfBuilder<C, B>> {
private Boolean declawed;
protected abstract B self();
public abstract C build();
public B declawed(Boolean declawed) {
this.declawed = declawed;
return self();
}
}
} }

View File

@ -22,6 +22,12 @@ public class Category implements Serializable {
private @Valid Long id; private @Valid Long id;
private @Valid String name = "default-name"; private @Valid String name = "default-name";
protected Category(CategoryBuilder<?, ?> b) {
this.id = b.id;this.name = b.name;
}
public Category() { }
/** /**
**/ **/
public Category id(Long id) { public Category id(Long id) {
@ -30,8 +36,6 @@ public class Category implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
@ -51,8 +55,6 @@ public class Category implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("name") @JsonProperty("name")
@NotNull @NotNull
@ -107,5 +109,38 @@ public class Category implements Serializable {
} }
public static CategoryBuilder<?, ?> builder() {
return new CategoryBuilderImpl();
}
private static final class CategoryBuilderImpl extends CategoryBuilder<Category, CategoryBuilderImpl> {
@Override
protected CategoryBuilderImpl self() {
return this;
}
@Override
public Category build() {
return new Category(this);
}
}
public static abstract class CategoryBuilder<C extends Category, B extends CategoryBuilder<C, B>> {
private Long id;
private String name = "default-name";
protected abstract B self();
public abstract C build();
public B id(Long id) {
this.id = id;
return self();
}
public B name(String name) {
this.name = name;
return self();
}
}
} }

View File

@ -23,6 +23,12 @@ public class ClassModel implements Serializable {
private @Valid String propertyClass; private @Valid String propertyClass;
protected ClassModel(ClassModelBuilder<?, ?> b) {
this.propertyClass = b.propertyClass;
}
public ClassModel() { }
/** /**
**/ **/
public ClassModel propertyClass(String propertyClass) { public ClassModel propertyClass(String propertyClass) {
@ -31,8 +37,6 @@ public class ClassModel implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("_class") @JsonProperty("_class")
public String getPropertyClass() { public String getPropertyClass() {
@ -84,5 +88,33 @@ public class ClassModel implements Serializable {
} }
public static ClassModelBuilder<?, ?> builder() {
return new ClassModelBuilderImpl();
}
private static final class ClassModelBuilderImpl extends ClassModelBuilder<ClassModel, ClassModelBuilderImpl> {
@Override
protected ClassModelBuilderImpl self() {
return this;
}
@Override
public ClassModel build() {
return new ClassModel(this);
}
}
public static abstract class ClassModelBuilder<C extends ClassModel, B extends ClassModelBuilder<C, B>> {
private String propertyClass;
protected abstract B self();
public abstract C build();
public B propertyClass(String propertyClass) {
this.propertyClass = propertyClass;
return self();
}
}
} }

View File

@ -21,6 +21,12 @@ public class Client implements Serializable {
private @Valid String client; private @Valid String client;
protected Client(ClientBuilder<?, ?> b) {
this.client = b.client;
}
public Client() { }
/** /**
**/ **/
public Client client(String client) { public Client client(String client) {
@ -29,8 +35,6 @@ public class Client implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("client") @JsonProperty("client")
public String getClient() { public String getClient() {
@ -82,5 +86,33 @@ public class Client implements Serializable {
} }
public static ClientBuilder<?, ?> builder() {
return new ClientBuilderImpl();
}
private static final class ClientBuilderImpl extends ClientBuilder<Client, ClientBuilderImpl> {
@Override
protected ClientBuilderImpl self() {
return this;
}
@Override
public Client build() {
return new Client(this);
}
}
public static abstract class ClientBuilder<C extends Client, B extends ClientBuilder<C, B>> {
private String client;
protected abstract B self();
public abstract C build();
public B client(String client) {
this.client = client;
return self();
}
}
} }

View File

@ -23,6 +23,13 @@ public class Dog extends Animal implements Serializable {
private @Valid String breed; private @Valid String breed;
protected Dog(DogBuilder<?, ?> b) {
super(b);
this.breed = b.breed;
}
public Dog() { }
/** /**
**/ **/
public Dog breed(String breed) { public Dog breed(String breed) {
@ -31,8 +38,6 @@ public class Dog extends Animal implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("breed") @JsonProperty("breed")
public String getBreed() { public String getBreed() {
@ -85,5 +90,30 @@ public class Dog extends Animal implements Serializable {
} }
public static DogBuilder<?, ?> builder() {
return new DogBuilderImpl();
}
private static final class DogBuilderImpl extends DogBuilder<Dog, DogBuilderImpl> {
@Override
protected DogBuilderImpl self() {
return this;
}
@Override
public Dog build() {
return new Dog(this);
}
}
public static abstract class DogBuilder<C extends Dog, B extends DogBuilder<C, B>> extends AnimalBuilder<C, B> {
private String breed;
public B breed(String breed) {
this.breed = breed;
return self();
}
}
} }

View File

@ -22,6 +22,12 @@ public class DogAllOf implements Serializable {
private @Valid String breed; private @Valid String breed;
protected DogAllOf(DogAllOfBuilder<?, ?> b) {
this.breed = b.breed;
}
public DogAllOf() { }
/** /**
**/ **/
public DogAllOf breed(String breed) { public DogAllOf breed(String breed) {
@ -30,8 +36,6 @@ public class DogAllOf implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("breed") @JsonProperty("breed")
public String getBreed() { public String getBreed() {
@ -83,5 +87,33 @@ public class DogAllOf implements Serializable {
} }
public static DogAllOfBuilder<?, ?> builder() {
return new DogAllOfBuilderImpl();
}
private static final class DogAllOfBuilderImpl extends DogAllOfBuilder<DogAllOf, DogAllOfBuilderImpl> {
@Override
protected DogAllOfBuilderImpl self() {
return this;
}
@Override
public DogAllOf build() {
return new DogAllOf(this);
}
}
public static abstract class DogAllOfBuilder<C extends DogAllOf, B extends DogAllOfBuilder<C, B>> {
private String breed;
protected abstract B self();
public abstract C build();
public B breed(String breed) {
this.breed = breed;
return self();
}
}
} }

View File

@ -120,6 +120,12 @@ public enum ArrayEnumEnum {
private @Valid List<ArrayEnumEnum> arrayEnum = new ArrayList<>(); private @Valid List<ArrayEnumEnum> arrayEnum = new ArrayList<>();
protected EnumArrays(EnumArraysBuilder<?, ?> b) {
this.justSymbol = b.justSymbol;this.arrayEnum = b.arrayEnum;
}
public EnumArrays() { }
/** /**
**/ **/
public EnumArrays justSymbol(JustSymbolEnum justSymbol) { public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
@ -128,8 +134,6 @@ public enum ArrayEnumEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("just_symbol") @JsonProperty("just_symbol")
public JustSymbolEnum getJustSymbol() { public JustSymbolEnum getJustSymbol() {
@ -149,8 +153,6 @@ public enum ArrayEnumEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("array_enum") @JsonProperty("array_enum")
public List<ArrayEnumEnum> getArrayEnum() { public List<ArrayEnumEnum> getArrayEnum() {
@ -220,5 +222,38 @@ public enum ArrayEnumEnum {
} }
public static EnumArraysBuilder<?, ?> builder() {
return new EnumArraysBuilderImpl();
}
private static final class EnumArraysBuilderImpl extends EnumArraysBuilder<EnumArrays, EnumArraysBuilderImpl> {
@Override
protected EnumArraysBuilderImpl self() {
return this;
}
@Override
public EnumArrays build() {
return new EnumArrays(this);
}
}
public static abstract class EnumArraysBuilder<C extends EnumArrays, B extends EnumArraysBuilder<C, B>> {
private JustSymbolEnum justSymbol;
private List<ArrayEnumEnum> arrayEnum = new ArrayList<>();
protected abstract B self();
public abstract C build();
public B justSymbol(JustSymbolEnum justSymbol) {
this.justSymbol = justSymbol;
return self();
}
public B arrayEnum(List<ArrayEnumEnum> arrayEnum) {
this.arrayEnum = arrayEnum;
return self();
}
}
} }

View File

@ -219,6 +219,12 @@ public enum EnumNumberEnum {
private @Valid EnumNumberEnum enumNumber; private @Valid EnumNumberEnum enumNumber;
private @Valid OuterEnum outerEnum; private @Valid OuterEnum outerEnum;
protected EnumTest(EnumTestBuilder<?, ?> b) {
this.enumString = b.enumString;this.enumStringRequired = b.enumStringRequired;this.enumInteger = b.enumInteger;this.enumNumber = b.enumNumber;this.outerEnum = b.outerEnum;
}
public EnumTest() { }
/** /**
**/ **/
public EnumTest enumString(EnumStringEnum enumString) { public EnumTest enumString(EnumStringEnum enumString) {
@ -227,8 +233,6 @@ public enum EnumNumberEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("enum_string") @JsonProperty("enum_string")
public EnumStringEnum getEnumString() { public EnumStringEnum getEnumString() {
@ -248,8 +252,6 @@ public enum EnumNumberEnum {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("enum_string_required") @JsonProperty("enum_string_required")
@NotNull @NotNull
@ -270,8 +272,6 @@ public enum EnumNumberEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("enum_integer") @JsonProperty("enum_integer")
public EnumIntegerEnum getEnumInteger() { public EnumIntegerEnum getEnumInteger() {
@ -291,8 +291,6 @@ public enum EnumNumberEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("enum_number") @JsonProperty("enum_number")
public EnumNumberEnum getEnumNumber() { public EnumNumberEnum getEnumNumber() {
@ -312,8 +310,6 @@ public enum EnumNumberEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("outerEnum") @JsonProperty("outerEnum")
public OuterEnum getOuterEnum() { public OuterEnum getOuterEnum() {
@ -373,5 +369,53 @@ public enum EnumNumberEnum {
} }
public static EnumTestBuilder<?, ?> builder() {
return new EnumTestBuilderImpl();
}
private static final class EnumTestBuilderImpl extends EnumTestBuilder<EnumTest, EnumTestBuilderImpl> {
@Override
protected EnumTestBuilderImpl self() {
return this;
}
@Override
public EnumTest build() {
return new EnumTest(this);
}
}
public static abstract class EnumTestBuilder<C extends EnumTest, B extends EnumTestBuilder<C, B>> {
private EnumStringEnum enumString;
private EnumStringRequiredEnum enumStringRequired;
private EnumIntegerEnum enumInteger;
private EnumNumberEnum enumNumber;
private OuterEnum outerEnum;
protected abstract B self();
public abstract C build();
public B enumString(EnumStringEnum enumString) {
this.enumString = enumString;
return self();
}
public B enumStringRequired(EnumStringRequiredEnum enumStringRequired) {
this.enumStringRequired = enumStringRequired;
return self();
}
public B enumInteger(EnumIntegerEnum enumInteger) {
this.enumInteger = enumInteger;
return self();
}
public B enumNumber(EnumNumberEnum enumNumber) {
this.enumNumber = enumNumber;
return self();
}
public B outerEnum(OuterEnum outerEnum) {
this.outerEnum = outerEnum;
return self();
}
}
} }

View File

@ -25,6 +25,12 @@ public class FileSchemaTestClass implements Serializable {
private @Valid ModelFile _file; private @Valid ModelFile _file;
private @Valid List<ModelFile> files = new ArrayList<>(); private @Valid List<ModelFile> files = new ArrayList<>();
protected FileSchemaTestClass(FileSchemaTestClassBuilder<?, ?> b) {
this._file = b._file;this.files = b.files;
}
public FileSchemaTestClass() { }
/** /**
**/ **/
public FileSchemaTestClass _file(ModelFile _file) { public FileSchemaTestClass _file(ModelFile _file) {
@ -33,8 +39,6 @@ public class FileSchemaTestClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("file") @JsonProperty("file")
public ModelFile getFile() { public ModelFile getFile() {
@ -54,8 +58,6 @@ public class FileSchemaTestClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("files") @JsonProperty("files")
public List<ModelFile> getFiles() { public List<ModelFile> getFiles() {
@ -125,5 +127,38 @@ public class FileSchemaTestClass implements Serializable {
} }
public static FileSchemaTestClassBuilder<?, ?> builder() {
return new FileSchemaTestClassBuilderImpl();
}
private static final class FileSchemaTestClassBuilderImpl extends FileSchemaTestClassBuilder<FileSchemaTestClass, FileSchemaTestClassBuilderImpl> {
@Override
protected FileSchemaTestClassBuilderImpl self() {
return this;
}
@Override
public FileSchemaTestClass build() {
return new FileSchemaTestClass(this);
}
}
public static abstract class FileSchemaTestClassBuilder<C extends FileSchemaTestClass, B extends FileSchemaTestClassBuilder<C, B>> {
private ModelFile _file;
private List<ModelFile> files = new ArrayList<>();
protected abstract B self();
public abstract C build();
public B _file(ModelFile _file) {
this._file = _file;
return self();
}
public B files(List<ModelFile> files) {
this.files = files;
return self();
}
}
} }

View File

@ -40,6 +40,12 @@ public class FormatTest implements Serializable {
private @Valid String password; private @Valid String password;
private @Valid BigDecimal bigDecimal; private @Valid BigDecimal bigDecimal;
protected FormatTest(FormatTestBuilder<?, ?> b) {
this.integer = b.integer;this.int32 = b.int32;this.int64 = b.int64;this.number = b.number;this._float = b._float;this._double = b._double;this.string = b.string;this._byte = b._byte;this.binary = b.binary;this.date = b.date;this.dateTime = b.dateTime;this.uuid = b.uuid;this.password = b.password;this.bigDecimal = b.bigDecimal;
}
public FormatTest() { }
/** /**
* minimum: 10 * minimum: 10
* maximum: 100 * maximum: 100
@ -50,8 +56,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("integer") @JsonProperty("integer")
@Min(10) @Max(100) public Integer getInteger() { @Min(10) @Max(100) public Integer getInteger() {
@ -73,8 +77,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("int32") @JsonProperty("int32")
@Min(20) @Max(200) public Integer getInt32() { @Min(20) @Max(200) public Integer getInt32() {
@ -94,8 +96,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("int64") @JsonProperty("int64")
public Long getInt64() { public Long getInt64() {
@ -117,8 +117,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("number") @JsonProperty("number")
@NotNull @NotNull
@ -141,8 +139,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("float") @JsonProperty("float")
@DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() {
@ -164,8 +160,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("double") @JsonProperty("double")
@DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() {
@ -185,8 +179,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("string") @JsonProperty("string")
@Pattern(regexp="/[a-z]/i") public String getString() { @Pattern(regexp="/[a-z]/i") public String getString() {
@ -206,8 +198,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("byte") @JsonProperty("byte")
@NotNull @NotNull
@ -228,8 +218,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("binary") @JsonProperty("binary")
public File getBinary() { public File getBinary() {
@ -249,8 +237,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("date") @JsonProperty("date")
@NotNull @NotNull
@ -271,8 +257,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("dateTime") @JsonProperty("dateTime")
public Date getDateTime() { public Date getDateTime() {
@ -292,8 +276,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "")
@JsonProperty("uuid") @JsonProperty("uuid")
public UUID getUuid() { public UUID getUuid() {
@ -313,8 +295,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("password") @JsonProperty("password")
@NotNull @NotNull
@ -335,8 +315,6 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("BigDecimal") @JsonProperty("BigDecimal")
public BigDecimal getBigDecimal() { public BigDecimal getBigDecimal() {
@ -414,5 +392,98 @@ public class FormatTest implements Serializable {
} }
public static FormatTestBuilder<?, ?> builder() {
return new FormatTestBuilderImpl();
}
private static final class FormatTestBuilderImpl extends FormatTestBuilder<FormatTest, FormatTestBuilderImpl> {
@Override
protected FormatTestBuilderImpl self() {
return this;
}
@Override
public FormatTest build() {
return new FormatTest(this);
}
}
public static abstract class FormatTestBuilder<C extends FormatTest, B extends FormatTestBuilder<C, B>> {
private Integer integer;
private Integer int32;
private Long int64;
private BigDecimal number;
private Float _float;
private Double _double;
private String string;
private byte[] _byte;
private File binary;
private LocalDate date;
private Date dateTime;
private UUID uuid;
private String password;
private BigDecimal bigDecimal;
protected abstract B self();
public abstract C build();
public B integer(Integer integer) {
this.integer = integer;
return self();
}
public B int32(Integer int32) {
this.int32 = int32;
return self();
}
public B int64(Long int64) {
this.int64 = int64;
return self();
}
public B number(BigDecimal number) {
this.number = number;
return self();
}
public B _float(Float _float) {
this._float = _float;
return self();
}
public B _double(Double _double) {
this._double = _double;
return self();
}
public B string(String string) {
this.string = string;
return self();
}
public B _byte(byte[] _byte) {
this._byte = _byte;
return self();
}
public B binary(File binary) {
this.binary = binary;
return self();
}
public B date(LocalDate date) {
this.date = date;
return self();
}
public B dateTime(Date dateTime) {
this.dateTime = dateTime;
return self();
}
public B uuid(UUID uuid) {
this.uuid = uuid;
return self();
}
public B password(String password) {
this.password = password;
return self();
}
public B bigDecimal(BigDecimal bigDecimal) {
this.bigDecimal = bigDecimal;
return self();
}
}
} }

View File

@ -23,6 +23,12 @@ public class HasOnlyReadOnly implements Serializable {
private @Valid String bar; private @Valid String bar;
private @Valid String foo; private @Valid String foo;
protected HasOnlyReadOnly(HasOnlyReadOnlyBuilder<?, ?> b) {
this.bar = b.bar;this.foo = b.foo;
}
public HasOnlyReadOnly() { }
/** /**
**/ **/
public HasOnlyReadOnly bar(String bar) { public HasOnlyReadOnly bar(String bar) {
@ -31,8 +37,6 @@ public class HasOnlyReadOnly implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("bar") @JsonProperty("bar")
public String getBar() { public String getBar() {
@ -52,8 +56,6 @@ public class HasOnlyReadOnly implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("foo") @JsonProperty("foo")
public String getFoo() { public String getFoo() {
@ -107,5 +109,38 @@ public class HasOnlyReadOnly implements Serializable {
} }
public static HasOnlyReadOnlyBuilder<?, ?> builder() {
return new HasOnlyReadOnlyBuilderImpl();
}
private static final class HasOnlyReadOnlyBuilderImpl extends HasOnlyReadOnlyBuilder<HasOnlyReadOnly, HasOnlyReadOnlyBuilderImpl> {
@Override
protected HasOnlyReadOnlyBuilderImpl self() {
return this;
}
@Override
public HasOnlyReadOnly build() {
return new HasOnlyReadOnly(this);
}
}
public static abstract class HasOnlyReadOnlyBuilder<C extends HasOnlyReadOnly, B extends HasOnlyReadOnlyBuilder<C, B>> {
private String bar;
private String foo;
protected abstract B self();
public abstract C build();
public B bar(String bar) {
this.bar = bar;
return self();
}
public B foo(String foo) {
this.foo = foo;
return self();
}
}
} }

View File

@ -75,6 +75,12 @@ public enum InnerEnum {
private @Valid Map<String, Boolean> directMap = new HashMap<>(); private @Valid Map<String, Boolean> directMap = new HashMap<>();
private @Valid Map<String, Boolean> indirectMap = new HashMap<>(); private @Valid Map<String, Boolean> indirectMap = new HashMap<>();
protected MapTest(MapTestBuilder<?, ?> b) {
this.mapMapOfString = b.mapMapOfString;this.mapOfEnumString = b.mapOfEnumString;this.directMap = b.directMap;this.indirectMap = b.indirectMap;
}
public MapTest() { }
/** /**
**/ **/
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) { public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
@ -83,8 +89,6 @@ public enum InnerEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_map_of_string") @JsonProperty("map_map_of_string")
public Map<String, Map<String, String>> getMapMapOfString() { public Map<String, Map<String, String>> getMapMapOfString() {
@ -120,8 +124,6 @@ public enum InnerEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_of_enum_string") @JsonProperty("map_of_enum_string")
public Map<String, InnerEnum> getMapOfEnumString() { public Map<String, InnerEnum> getMapOfEnumString() {
@ -157,8 +159,6 @@ public enum InnerEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("direct_map") @JsonProperty("direct_map")
public Map<String, Boolean> getDirectMap() { public Map<String, Boolean> getDirectMap() {
@ -194,8 +194,6 @@ public enum InnerEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("indirect_map") @JsonProperty("indirect_map")
public Map<String, Boolean> getIndirectMap() { public Map<String, Boolean> getIndirectMap() {
@ -269,5 +267,48 @@ public enum InnerEnum {
} }
public static MapTestBuilder<?, ?> builder() {
return new MapTestBuilderImpl();
}
private static final class MapTestBuilderImpl extends MapTestBuilder<MapTest, MapTestBuilderImpl> {
@Override
protected MapTestBuilderImpl self() {
return this;
}
@Override
public MapTest build() {
return new MapTest(this);
}
}
public static abstract class MapTestBuilder<C extends MapTest, B extends MapTestBuilder<C, B>> {
private Map<String, Map<String, String>> mapMapOfString = new HashMap<>();
private Map<String, InnerEnum> mapOfEnumString = new HashMap<>();
private Map<String, Boolean> directMap = new HashMap<>();
private Map<String, Boolean> indirectMap = new HashMap<>();
protected abstract B self();
public abstract C build();
public B mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
this.mapMapOfString = mapMapOfString;
return self();
}
public B mapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
this.mapOfEnumString = mapOfEnumString;
return self();
}
public B directMap(Map<String, Boolean> directMap) {
this.directMap = directMap;
return self();
}
public B indirectMap(Map<String, Boolean> indirectMap) {
this.indirectMap = indirectMap;
return self();
}
}
} }

View File

@ -29,6 +29,12 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
private @Valid Date dateTime; private @Valid Date dateTime;
private @Valid Map<String, Animal> map = new HashMap<>(); private @Valid Map<String, Animal> map = new HashMap<>();
protected MixedPropertiesAndAdditionalPropertiesClass(MixedPropertiesAndAdditionalPropertiesClassBuilder<?, ?> b) {
this.uuid = b.uuid;this.dateTime = b.dateTime;this.map = b.map;
}
public MixedPropertiesAndAdditionalPropertiesClass() { }
/** /**
**/ **/
public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
@ -37,8 +43,6 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("uuid") @JsonProperty("uuid")
public UUID getUuid() { public UUID getUuid() {
@ -58,8 +62,6 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("dateTime") @JsonProperty("dateTime")
public Date getDateTime() { public Date getDateTime() {
@ -79,8 +81,6 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map") @JsonProperty("map")
public Map<String, Animal> getMap() { public Map<String, Animal> getMap() {
@ -152,5 +152,43 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
} }
public static MixedPropertiesAndAdditionalPropertiesClassBuilder<?, ?> builder() {
return new MixedPropertiesAndAdditionalPropertiesClassBuilderImpl();
}
private static final class MixedPropertiesAndAdditionalPropertiesClassBuilderImpl extends MixedPropertiesAndAdditionalPropertiesClassBuilder<MixedPropertiesAndAdditionalPropertiesClass, MixedPropertiesAndAdditionalPropertiesClassBuilderImpl> {
@Override
protected MixedPropertiesAndAdditionalPropertiesClassBuilderImpl self() {
return this;
}
@Override
public MixedPropertiesAndAdditionalPropertiesClass build() {
return new MixedPropertiesAndAdditionalPropertiesClass(this);
}
}
public static abstract class MixedPropertiesAndAdditionalPropertiesClassBuilder<C extends MixedPropertiesAndAdditionalPropertiesClass, B extends MixedPropertiesAndAdditionalPropertiesClassBuilder<C, B>> {
private UUID uuid;
private Date dateTime;
private Map<String, Animal> map = new HashMap<>();
protected abstract B self();
public abstract C build();
public B uuid(UUID uuid) {
this.uuid = uuid;
return self();
}
public B dateTime(Date dateTime) {
this.dateTime = dateTime;
return self();
}
public B map(Map<String, Animal> map) {
this.map = map;
return self();
}
}
} }

View File

@ -25,6 +25,12 @@ public class Model200Response implements Serializable {
private @Valid Integer name; private @Valid Integer name;
private @Valid String propertyClass; private @Valid String propertyClass;
protected Model200Response(Model200ResponseBuilder<?, ?> b) {
this.name = b.name;this.propertyClass = b.propertyClass;
}
public Model200Response() { }
/** /**
**/ **/
public Model200Response name(Integer name) { public Model200Response name(Integer name) {
@ -33,8 +39,6 @@ public class Model200Response implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public Integer getName() { public Integer getName() {
@ -54,8 +58,6 @@ public class Model200Response implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("class") @JsonProperty("class")
public String getPropertyClass() { public String getPropertyClass() {
@ -109,5 +111,38 @@ public class Model200Response implements Serializable {
} }
public static Model200ResponseBuilder<?, ?> builder() {
return new Model200ResponseBuilderImpl();
}
private static final class Model200ResponseBuilderImpl extends Model200ResponseBuilder<Model200Response, Model200ResponseBuilderImpl> {
@Override
protected Model200ResponseBuilderImpl self() {
return this;
}
@Override
public Model200Response build() {
return new Model200Response(this);
}
}
public static abstract class Model200ResponseBuilder<C extends Model200Response, B extends Model200ResponseBuilder<C, B>> {
private Integer name;
private String propertyClass;
protected abstract B self();
public abstract C build();
public B name(Integer name) {
this.name = name;
return self();
}
public B propertyClass(String propertyClass) {
this.propertyClass = propertyClass;
return self();
}
}
} }

View File

@ -24,6 +24,12 @@ public class ModelApiResponse implements Serializable {
private @Valid String type; private @Valid String type;
private @Valid String message; private @Valid String message;
protected ModelApiResponse(ModelApiResponseBuilder<?, ?> b) {
this.code = b.code;this.type = b.type;this.message = b.message;
}
public ModelApiResponse() { }
/** /**
**/ **/
public ModelApiResponse code(Integer code) { public ModelApiResponse code(Integer code) {
@ -32,8 +38,6 @@ public class ModelApiResponse implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("code") @JsonProperty("code")
public Integer getCode() { public Integer getCode() {
@ -53,8 +57,6 @@ public class ModelApiResponse implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("type") @JsonProperty("type")
public String getType() { public String getType() {
@ -74,8 +76,6 @@ public class ModelApiResponse implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("message") @JsonProperty("message")
public String getMessage() { public String getMessage() {
@ -131,5 +131,43 @@ public class ModelApiResponse implements Serializable {
} }
public static ModelApiResponseBuilder<?, ?> builder() {
return new ModelApiResponseBuilderImpl();
}
private static final class ModelApiResponseBuilderImpl extends ModelApiResponseBuilder<ModelApiResponse, ModelApiResponseBuilderImpl> {
@Override
protected ModelApiResponseBuilderImpl self() {
return this;
}
@Override
public ModelApiResponse build() {
return new ModelApiResponse(this);
}
}
public static abstract class ModelApiResponseBuilder<C extends ModelApiResponse, B extends ModelApiResponseBuilder<C, B>> {
private Integer code;
private String type;
private String message;
protected abstract B self();
public abstract C build();
public B code(Integer code) {
this.code = code;
return self();
}
public B type(String type) {
this.type = type;
return self();
}
public B message(String message) {
this.message = message;
return self();
}
}
} }

View File

@ -24,6 +24,12 @@ public class ModelFile implements Serializable {
private @Valid String sourceURI; private @Valid String sourceURI;
protected ModelFile(ModelFileBuilder<?, ?> b) {
this.sourceURI = b.sourceURI;
}
public ModelFile() { }
/** /**
* Test capitalization * Test capitalization
**/ **/
@ -33,8 +39,6 @@ public class ModelFile implements Serializable {
} }
@ApiModelProperty(value = "Test capitalization") @ApiModelProperty(value = "Test capitalization")
@JsonProperty("sourceURI") @JsonProperty("sourceURI")
public String getSourceURI() { public String getSourceURI() {
@ -86,5 +90,33 @@ public class ModelFile implements Serializable {
} }
public static ModelFileBuilder<?, ?> builder() {
return new ModelFileBuilderImpl();
}
private static final class ModelFileBuilderImpl extends ModelFileBuilder<ModelFile, ModelFileBuilderImpl> {
@Override
protected ModelFileBuilderImpl self() {
return this;
}
@Override
public ModelFile build() {
return new ModelFile(this);
}
}
public static abstract class ModelFileBuilder<C extends ModelFile, B extends ModelFileBuilder<C, B>> {
private String sourceURI;
protected abstract B self();
public abstract C build();
public B sourceURI(String sourceURI) {
this.sourceURI = sourceURI;
return self();
}
}
} }

View File

@ -22,6 +22,12 @@ public class ModelList implements Serializable {
private @Valid String _123list; private @Valid String _123list;
protected ModelList(ModelListBuilder<?, ?> b) {
this._123list = b._123list;
}
public ModelList() { }
/** /**
**/ **/
public ModelList _123list(String _123list) { public ModelList _123list(String _123list) {
@ -30,8 +36,6 @@ public class ModelList implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("123-list") @JsonProperty("123-list")
public String get123list() { public String get123list() {
@ -83,5 +87,33 @@ public class ModelList implements Serializable {
} }
public static ModelListBuilder<?, ?> builder() {
return new ModelListBuilderImpl();
}
private static final class ModelListBuilderImpl extends ModelListBuilder<ModelList, ModelListBuilderImpl> {
@Override
protected ModelListBuilderImpl self() {
return this;
}
@Override
public ModelList build() {
return new ModelList(this);
}
}
public static abstract class ModelListBuilder<C extends ModelList, B extends ModelListBuilder<C, B>> {
private String _123list;
protected abstract B self();
public abstract C build();
public B _123list(String _123list) {
this._123list = _123list;
return self();
}
}
} }

View File

@ -24,6 +24,12 @@ public class ModelReturn implements Serializable {
private @Valid Integer _return; private @Valid Integer _return;
protected ModelReturn(ModelReturnBuilder<?, ?> b) {
this._return = b._return;
}
public ModelReturn() { }
/** /**
**/ **/
public ModelReturn _return(Integer _return) { public ModelReturn _return(Integer _return) {
@ -32,8 +38,6 @@ public class ModelReturn implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("return") @JsonProperty("return")
public Integer getReturn() { public Integer getReturn() {
@ -85,5 +89,33 @@ public class ModelReturn implements Serializable {
} }
public static ModelReturnBuilder<?, ?> builder() {
return new ModelReturnBuilderImpl();
}
private static final class ModelReturnBuilderImpl extends ModelReturnBuilder<ModelReturn, ModelReturnBuilderImpl> {
@Override
protected ModelReturnBuilderImpl self() {
return this;
}
@Override
public ModelReturn build() {
return new ModelReturn(this);
}
}
public static abstract class ModelReturnBuilder<C extends ModelReturn, B extends ModelReturnBuilder<C, B>> {
private Integer _return;
protected abstract B self();
public abstract C build();
public B _return(Integer _return) {
this._return = _return;
return self();
}
}
} }

View File

@ -26,6 +26,12 @@ public class Name implements Serializable {
private @Valid String property; private @Valid String property;
private @Valid Integer _123number; private @Valid Integer _123number;
protected Name(NameBuilder<?, ?> b) {
this.name = b.name;this.snakeCase = b.snakeCase;this.property = b.property;this._123number = b._123number;
}
public Name() { }
/** /**
**/ **/
public Name name(Integer name) { public Name name(Integer name) {
@ -34,8 +40,6 @@ public class Name implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("name") @JsonProperty("name")
@NotNull @NotNull
@ -56,8 +60,6 @@ public class Name implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("snake_case") @JsonProperty("snake_case")
public Integer getSnakeCase() { public Integer getSnakeCase() {
@ -77,8 +79,6 @@ public class Name implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("property") @JsonProperty("property")
public String getProperty() { public String getProperty() {
@ -98,8 +98,6 @@ public class Name implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("123Number") @JsonProperty("123Number")
public Integer get123number() { public Integer get123number() {
@ -157,5 +155,48 @@ public class Name implements Serializable {
} }
public static NameBuilder<?, ?> builder() {
return new NameBuilderImpl();
}
private static final class NameBuilderImpl extends NameBuilder<Name, NameBuilderImpl> {
@Override
protected NameBuilderImpl self() {
return this;
}
@Override
public Name build() {
return new Name(this);
}
}
public static abstract class NameBuilder<C extends Name, B extends NameBuilder<C, B>> {
private Integer name;
private Integer snakeCase;
private String property;
private Integer _123number;
protected abstract B self();
public abstract C build();
public B name(Integer name) {
this.name = name;
return self();
}
public B snakeCase(Integer snakeCase) {
this.snakeCase = snakeCase;
return self();
}
public B property(String property) {
this.property = property;
return self();
}
public B _123number(Integer _123number) {
this._123number = _123number;
return self();
}
}
} }

View File

@ -22,6 +22,12 @@ public class NumberOnly implements Serializable {
private @Valid BigDecimal justNumber; private @Valid BigDecimal justNumber;
protected NumberOnly(NumberOnlyBuilder<?, ?> b) {
this.justNumber = b.justNumber;
}
public NumberOnly() { }
/** /**
**/ **/
public NumberOnly justNumber(BigDecimal justNumber) { public NumberOnly justNumber(BigDecimal justNumber) {
@ -30,8 +36,6 @@ public class NumberOnly implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("JustNumber") @JsonProperty("JustNumber")
public BigDecimal getJustNumber() { public BigDecimal getJustNumber() {
@ -83,5 +87,33 @@ public class NumberOnly implements Serializable {
} }
public static NumberOnlyBuilder<?, ?> builder() {
return new NumberOnlyBuilderImpl();
}
private static final class NumberOnlyBuilderImpl extends NumberOnlyBuilder<NumberOnly, NumberOnlyBuilderImpl> {
@Override
protected NumberOnlyBuilderImpl self() {
return this;
}
@Override
public NumberOnly build() {
return new NumberOnly(this);
}
}
public static abstract class NumberOnlyBuilder<C extends NumberOnly, B extends NumberOnlyBuilder<C, B>> {
private BigDecimal justNumber;
protected abstract B self();
public abstract C build();
public B justNumber(BigDecimal justNumber) {
this.justNumber = justNumber;
return self();
}
}
} }

View File

@ -75,6 +75,12 @@ public enum StatusEnum {
private @Valid StatusEnum status; private @Valid StatusEnum status;
private @Valid Boolean complete = false; private @Valid Boolean complete = false;
protected Order(OrderBuilder<?, ?> b) {
this.id = b.id;this.petId = b.petId;this.quantity = b.quantity;this.shipDate = b.shipDate;this.status = b.status;this.complete = b.complete;
}
public Order() { }
/** /**
**/ **/
public Order id(Long id) { public Order id(Long id) {
@ -83,8 +89,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
@ -104,8 +108,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("petId") @JsonProperty("petId")
public Long getPetId() { public Long getPetId() {
@ -125,8 +127,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("quantity") @JsonProperty("quantity")
public Integer getQuantity() { public Integer getQuantity() {
@ -146,8 +146,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("shipDate") @JsonProperty("shipDate")
public Date getShipDate() { public Date getShipDate() {
@ -168,8 +166,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "Order Status") @ApiModelProperty(value = "Order Status")
@JsonProperty("status") @JsonProperty("status")
public StatusEnum getStatus() { public StatusEnum getStatus() {
@ -189,8 +185,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("complete") @JsonProperty("complete")
public Boolean getComplete() { public Boolean getComplete() {
@ -252,5 +246,58 @@ public enum StatusEnum {
} }
public static OrderBuilder<?, ?> builder() {
return new OrderBuilderImpl();
}
private static final class OrderBuilderImpl extends OrderBuilder<Order, OrderBuilderImpl> {
@Override
protected OrderBuilderImpl self() {
return this;
}
@Override
public Order build() {
return new Order(this);
}
}
public static abstract class OrderBuilder<C extends Order, B extends OrderBuilder<C, B>> {
private Long id;
private Long petId;
private Integer quantity;
private Date shipDate;
private StatusEnum status;
private Boolean complete = false;
protected abstract B self();
public abstract C build();
public B id(Long id) {
this.id = id;
return self();
}
public B petId(Long petId) {
this.petId = petId;
return self();
}
public B quantity(Integer quantity) {
this.quantity = quantity;
return self();
}
public B shipDate(Date shipDate) {
this.shipDate = shipDate;
return self();
}
public B status(StatusEnum status) {
this.status = status;
return self();
}
public B complete(Boolean complete) {
this.complete = complete;
return self();
}
}
} }

View File

@ -24,6 +24,12 @@ public class OuterComposite implements Serializable {
private @Valid String myString; private @Valid String myString;
private @Valid Boolean myBoolean; private @Valid Boolean myBoolean;
protected OuterComposite(OuterCompositeBuilder<?, ?> b) {
this.myNumber = b.myNumber;this.myString = b.myString;this.myBoolean = b.myBoolean;
}
public OuterComposite() { }
/** /**
**/ **/
public OuterComposite myNumber(BigDecimal myNumber) { public OuterComposite myNumber(BigDecimal myNumber) {
@ -32,8 +38,6 @@ public class OuterComposite implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("my_number") @JsonProperty("my_number")
public BigDecimal getMyNumber() { public BigDecimal getMyNumber() {
@ -53,8 +57,6 @@ public class OuterComposite implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("my_string") @JsonProperty("my_string")
public String getMyString() { public String getMyString() {
@ -74,8 +76,6 @@ public class OuterComposite implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("my_boolean") @JsonProperty("my_boolean")
public Boolean getMyBoolean() { public Boolean getMyBoolean() {
@ -131,5 +131,43 @@ public class OuterComposite implements Serializable {
} }
public static OuterCompositeBuilder<?, ?> builder() {
return new OuterCompositeBuilderImpl();
}
private static final class OuterCompositeBuilderImpl extends OuterCompositeBuilder<OuterComposite, OuterCompositeBuilderImpl> {
@Override
protected OuterCompositeBuilderImpl self() {
return this;
}
@Override
public OuterComposite build() {
return new OuterComposite(this);
}
}
public static abstract class OuterCompositeBuilder<C extends OuterComposite, B extends OuterCompositeBuilder<C, B>> {
private BigDecimal myNumber;
private String myString;
private Boolean myBoolean;
protected abstract B self();
public abstract C build();
public B myNumber(BigDecimal myNumber) {
this.myNumber = myNumber;
return self();
}
public B myString(String myString) {
this.myString = myString;
return self();
}
public B myBoolean(Boolean myBoolean) {
this.myBoolean = myBoolean;
return self();
}
}
} }

View File

@ -81,6 +81,12 @@ public enum StatusEnum {
private @Valid StatusEnum status; private @Valid StatusEnum status;
protected Pet(PetBuilder<?, ?> b) {
this.id = b.id;this.category = b.category;this.name = b.name;this.photoUrls = b.photoUrls;this.tags = b.tags;this.status = b.status;
}
public Pet() { }
/** /**
**/ **/
public Pet id(Long id) { public Pet id(Long id) {
@ -89,8 +95,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
@ -110,8 +114,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("category") @JsonProperty("category")
public Category getCategory() { public Category getCategory() {
@ -131,8 +133,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(example = "doggie", required = true, value = "") @ApiModelProperty(example = "doggie", required = true, value = "")
@JsonProperty("name") @JsonProperty("name")
@NotNull @NotNull
@ -153,8 +153,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("photoUrls") @JsonProperty("photoUrls")
@NotNull @NotNull
@ -192,8 +190,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("tags") @JsonProperty("tags")
public List<Tag> getTags() { public List<Tag> getTags() {
@ -230,8 +226,6 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "pet status in the store") @ApiModelProperty(value = "pet status in the store")
@JsonProperty("status") @JsonProperty("status")
public StatusEnum getStatus() { public StatusEnum getStatus() {
@ -293,5 +287,58 @@ public enum StatusEnum {
} }
public static PetBuilder<?, ?> builder() {
return new PetBuilderImpl();
}
private static final class PetBuilderImpl extends PetBuilder<Pet, PetBuilderImpl> {
@Override
protected PetBuilderImpl self() {
return this;
}
@Override
public Pet build() {
return new Pet(this);
}
}
public static abstract class PetBuilder<C extends Pet, B extends PetBuilder<C, B>> {
private Long id;
private Category category;
private String name;
private Set<String> photoUrls = new LinkedHashSet<>();
private List<Tag> tags = new ArrayList<>();
private StatusEnum status;
protected abstract B self();
public abstract C build();
public B id(Long id) {
this.id = id;
return self();
}
public B category(Category category) {
this.category = category;
return self();
}
public B name(String name) {
this.name = name;
return self();
}
public B photoUrls(Set<String> photoUrls) {
this.photoUrls = photoUrls;
return self();
}
public B tags(List<Tag> tags) {
this.tags = tags;
return self();
}
public B status(StatusEnum status) {
this.status = status;
return self();
}
}
} }

View File

@ -22,6 +22,12 @@ public class ReadOnlyFirst implements Serializable {
private @Valid String bar; private @Valid String bar;
private @Valid String baz; private @Valid String baz;
protected ReadOnlyFirst(ReadOnlyFirstBuilder<?, ?> b) {
this.bar = b.bar;this.baz = b.baz;
}
public ReadOnlyFirst() { }
/** /**
**/ **/
public ReadOnlyFirst bar(String bar) { public ReadOnlyFirst bar(String bar) {
@ -30,8 +36,6 @@ public class ReadOnlyFirst implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("bar") @JsonProperty("bar")
public String getBar() { public String getBar() {
@ -51,8 +55,6 @@ public class ReadOnlyFirst implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("baz") @JsonProperty("baz")
public String getBaz() { public String getBaz() {
@ -106,5 +108,38 @@ public class ReadOnlyFirst implements Serializable {
} }
public static ReadOnlyFirstBuilder<?, ?> builder() {
return new ReadOnlyFirstBuilderImpl();
}
private static final class ReadOnlyFirstBuilderImpl extends ReadOnlyFirstBuilder<ReadOnlyFirst, ReadOnlyFirstBuilderImpl> {
@Override
protected ReadOnlyFirstBuilderImpl self() {
return this;
}
@Override
public ReadOnlyFirst build() {
return new ReadOnlyFirst(this);
}
}
public static abstract class ReadOnlyFirstBuilder<C extends ReadOnlyFirst, B extends ReadOnlyFirstBuilder<C, B>> {
private String bar;
private String baz;
protected abstract B self();
public abstract C build();
public B bar(String bar) {
this.bar = bar;
return self();
}
public B baz(String baz) {
this.baz = baz;
return self();
}
}
} }

View File

@ -22,6 +22,12 @@ public class SpecialModelName implements Serializable {
private @Valid Long $specialPropertyName; private @Valid Long $specialPropertyName;
protected SpecialModelName(SpecialModelNameBuilder<?, ?> b) {
this.$specialPropertyName = b.$specialPropertyName;
}
public SpecialModelName() { }
/** /**
**/ **/
public SpecialModelName $specialPropertyName(Long $specialPropertyName) { public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
@ -30,8 +36,6 @@ public class SpecialModelName implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("$special[property.name]") @JsonProperty("$special[property.name]")
public Long get$SpecialPropertyName() { public Long get$SpecialPropertyName() {
@ -83,5 +87,33 @@ public class SpecialModelName implements Serializable {
} }
public static SpecialModelNameBuilder<?, ?> builder() {
return new SpecialModelNameBuilderImpl();
}
private static final class SpecialModelNameBuilderImpl extends SpecialModelNameBuilder<SpecialModelName, SpecialModelNameBuilderImpl> {
@Override
protected SpecialModelNameBuilderImpl self() {
return this;
}
@Override
public SpecialModelName build() {
return new SpecialModelName(this);
}
}
public static abstract class SpecialModelNameBuilder<C extends SpecialModelName, B extends SpecialModelNameBuilder<C, B>> {
private Long $specialPropertyName;
protected abstract B self();
public abstract C build();
public B $specialPropertyName(Long $specialPropertyName) {
this.$specialPropertyName = $specialPropertyName;
return self();
}
}
} }

View File

@ -22,6 +22,12 @@ public class Tag implements Serializable {
private @Valid Long id; private @Valid Long id;
private @Valid String name; private @Valid String name;
protected Tag(TagBuilder<?, ?> b) {
this.id = b.id;this.name = b.name;
}
public Tag() { }
/** /**
**/ **/
public Tag id(Long id) { public Tag id(Long id) {
@ -30,8 +36,6 @@ public class Tag implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
@ -51,8 +55,6 @@ public class Tag implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {
@ -106,5 +108,38 @@ public class Tag implements Serializable {
} }
public static TagBuilder<?, ?> builder() {
return new TagBuilderImpl();
}
private static final class TagBuilderImpl extends TagBuilder<Tag, TagBuilderImpl> {
@Override
protected TagBuilderImpl self() {
return this;
}
@Override
public Tag build() {
return new Tag(this);
}
}
public static abstract class TagBuilder<C extends Tag, B extends TagBuilder<C, B>> {
private Long id;
private String name;
protected abstract B self();
public abstract C build();
public B id(Long id) {
this.id = id;
return self();
}
public B name(String name) {
this.name = name;
return self();
}
}
} }

View File

@ -28,6 +28,12 @@ public class TypeHolderDefault implements Serializable {
private @Valid Boolean boolItem = true; private @Valid Boolean boolItem = true;
private @Valid List<Integer> arrayItem = new ArrayList<>(); private @Valid List<Integer> arrayItem = new ArrayList<>();
protected TypeHolderDefault(TypeHolderDefaultBuilder<?, ?> b) {
this.stringItem = b.stringItem;this.numberItem = b.numberItem;this.integerItem = b.integerItem;this.boolItem = b.boolItem;this.arrayItem = b.arrayItem;
}
public TypeHolderDefault() { }
/** /**
**/ **/
public TypeHolderDefault stringItem(String stringItem) { public TypeHolderDefault stringItem(String stringItem) {
@ -36,8 +42,6 @@ public class TypeHolderDefault implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("string_item") @JsonProperty("string_item")
@NotNull @NotNull
@ -58,8 +62,6 @@ public class TypeHolderDefault implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("number_item") @JsonProperty("number_item")
@NotNull @NotNull
@ -80,8 +82,6 @@ public class TypeHolderDefault implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("integer_item") @JsonProperty("integer_item")
@NotNull @NotNull
@ -102,8 +102,6 @@ public class TypeHolderDefault implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("bool_item") @JsonProperty("bool_item")
@NotNull @NotNull
@ -124,8 +122,6 @@ public class TypeHolderDefault implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("array_item") @JsonProperty("array_item")
@NotNull @NotNull
@ -202,5 +198,53 @@ public class TypeHolderDefault implements Serializable {
} }
public static TypeHolderDefaultBuilder<?, ?> builder() {
return new TypeHolderDefaultBuilderImpl();
}
private static final class TypeHolderDefaultBuilderImpl extends TypeHolderDefaultBuilder<TypeHolderDefault, TypeHolderDefaultBuilderImpl> {
@Override
protected TypeHolderDefaultBuilderImpl self() {
return this;
}
@Override
public TypeHolderDefault build() {
return new TypeHolderDefault(this);
}
}
public static abstract class TypeHolderDefaultBuilder<C extends TypeHolderDefault, B extends TypeHolderDefaultBuilder<C, B>> {
private String stringItem = "what";
private BigDecimal numberItem;
private Integer integerItem;
private Boolean boolItem = true;
private List<Integer> arrayItem = new ArrayList<>();
protected abstract B self();
public abstract C build();
public B stringItem(String stringItem) {
this.stringItem = stringItem;
return self();
}
public B numberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
return self();
}
public B integerItem(Integer integerItem) {
this.integerItem = integerItem;
return self();
}
public B boolItem(Boolean boolItem) {
this.boolItem = boolItem;
return self();
}
public B arrayItem(List<Integer> arrayItem) {
this.arrayItem = arrayItem;
return self();
}
}
} }

View File

@ -29,6 +29,12 @@ public class TypeHolderExample implements Serializable {
private @Valid Boolean boolItem; private @Valid Boolean boolItem;
private @Valid List<Integer> arrayItem = new ArrayList<>(); private @Valid List<Integer> arrayItem = new ArrayList<>();
protected TypeHolderExample(TypeHolderExampleBuilder<?, ?> b) {
this.stringItem = b.stringItem;this.numberItem = b.numberItem;this.floatItem = b.floatItem;this.integerItem = b.integerItem;this.boolItem = b.boolItem;this.arrayItem = b.arrayItem;
}
public TypeHolderExample() { }
/** /**
**/ **/
public TypeHolderExample stringItem(String stringItem) { public TypeHolderExample stringItem(String stringItem) {
@ -37,8 +43,6 @@ public class TypeHolderExample implements Serializable {
} }
@ApiModelProperty(example = "what", required = true, value = "") @ApiModelProperty(example = "what", required = true, value = "")
@JsonProperty("string_item") @JsonProperty("string_item")
@NotNull @NotNull
@ -59,8 +63,6 @@ public class TypeHolderExample implements Serializable {
} }
@ApiModelProperty(example = "1.234", required = true, value = "") @ApiModelProperty(example = "1.234", required = true, value = "")
@JsonProperty("number_item") @JsonProperty("number_item")
@NotNull @NotNull
@ -81,8 +83,6 @@ public class TypeHolderExample implements Serializable {
} }
@ApiModelProperty(example = "1.234", required = true, value = "") @ApiModelProperty(example = "1.234", required = true, value = "")
@JsonProperty("float_item") @JsonProperty("float_item")
@NotNull @NotNull
@ -103,8 +103,6 @@ public class TypeHolderExample implements Serializable {
} }
@ApiModelProperty(example = "-2", required = true, value = "") @ApiModelProperty(example = "-2", required = true, value = "")
@JsonProperty("integer_item") @JsonProperty("integer_item")
@NotNull @NotNull
@ -125,8 +123,6 @@ public class TypeHolderExample implements Serializable {
} }
@ApiModelProperty(example = "true", required = true, value = "") @ApiModelProperty(example = "true", required = true, value = "")
@JsonProperty("bool_item") @JsonProperty("bool_item")
@NotNull @NotNull
@ -147,8 +143,6 @@ public class TypeHolderExample implements Serializable {
} }
@ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
@JsonProperty("array_item") @JsonProperty("array_item")
@NotNull @NotNull
@ -227,5 +221,58 @@ public class TypeHolderExample implements Serializable {
} }
public static TypeHolderExampleBuilder<?, ?> builder() {
return new TypeHolderExampleBuilderImpl();
}
private static final class TypeHolderExampleBuilderImpl extends TypeHolderExampleBuilder<TypeHolderExample, TypeHolderExampleBuilderImpl> {
@Override
protected TypeHolderExampleBuilderImpl self() {
return this;
}
@Override
public TypeHolderExample build() {
return new TypeHolderExample(this);
}
}
public static abstract class TypeHolderExampleBuilder<C extends TypeHolderExample, B extends TypeHolderExampleBuilder<C, B>> {
private String stringItem;
private BigDecimal numberItem;
private Float floatItem;
private Integer integerItem;
private Boolean boolItem;
private List<Integer> arrayItem = new ArrayList<>();
protected abstract B self();
public abstract C build();
public B stringItem(String stringItem) {
this.stringItem = stringItem;
return self();
}
public B numberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
return self();
}
public B floatItem(Float floatItem) {
this.floatItem = floatItem;
return self();
}
public B integerItem(Integer integerItem) {
this.integerItem = integerItem;
return self();
}
public B boolItem(Boolean boolItem) {
this.boolItem = boolItem;
return self();
}
public B arrayItem(List<Integer> arrayItem) {
this.arrayItem = arrayItem;
return self();
}
}
} }

View File

@ -28,6 +28,12 @@ public class User implements Serializable {
private @Valid String phone; private @Valid String phone;
private @Valid Integer userStatus; private @Valid Integer userStatus;
protected User(UserBuilder<?, ?> b) {
this.id = b.id;this.username = b.username;this.firstName = b.firstName;this.lastName = b.lastName;this.email = b.email;this.password = b.password;this.phone = b.phone;this.userStatus = b.userStatus;
}
public User() { }
/** /**
**/ **/
public User id(Long id) { public User id(Long id) {
@ -36,8 +42,6 @@ public class User implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
@ -57,8 +61,6 @@ public class User implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("username") @JsonProperty("username")
public String getUsername() { public String getUsername() {
@ -78,8 +80,6 @@ public class User implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("firstName") @JsonProperty("firstName")
public String getFirstName() { public String getFirstName() {
@ -99,8 +99,6 @@ public class User implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("lastName") @JsonProperty("lastName")
public String getLastName() { public String getLastName() {
@ -120,8 +118,6 @@ public class User implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("email") @JsonProperty("email")
public String getEmail() { public String getEmail() {
@ -141,8 +137,6 @@ public class User implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("password") @JsonProperty("password")
public String getPassword() { public String getPassword() {
@ -162,8 +156,6 @@ public class User implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("phone") @JsonProperty("phone")
public String getPhone() { public String getPhone() {
@ -184,8 +176,6 @@ public class User implements Serializable {
} }
@ApiModelProperty(value = "User Status") @ApiModelProperty(value = "User Status")
@JsonProperty("userStatus") @JsonProperty("userStatus")
public Integer getUserStatus() { public Integer getUserStatus() {
@ -251,5 +241,68 @@ public class User implements Serializable {
} }
public static UserBuilder<?, ?> builder() {
return new UserBuilderImpl();
}
private static final class UserBuilderImpl extends UserBuilder<User, UserBuilderImpl> {
@Override
protected UserBuilderImpl self() {
return this;
}
@Override
public User build() {
return new User(this);
}
}
public static abstract class UserBuilder<C extends User, B extends UserBuilder<C, B>> {
private Long id;
private String username;
private String firstName;
private String lastName;
private String email;
private String password;
private String phone;
private Integer userStatus;
protected abstract B self();
public abstract C build();
public B id(Long id) {
this.id = id;
return self();
}
public B username(String username) {
this.username = username;
return self();
}
public B firstName(String firstName) {
this.firstName = firstName;
return self();
}
public B lastName(String lastName) {
this.lastName = lastName;
return self();
}
public B email(String email) {
this.email = email;
return self();
}
public B password(String password) {
this.password = password;
return self();
}
public B phone(String phone) {
this.phone = phone;
return self();
}
public B userStatus(Integer userStatus) {
this.userStatus = userStatus;
return self();
}
}
} }

View File

@ -52,6 +52,12 @@ public class XmlItem implements Serializable {
private @Valid List<Integer> prefixNsArray = new ArrayList<>(); private @Valid List<Integer> prefixNsArray = new ArrayList<>();
private @Valid List<Integer> prefixNsWrappedArray = new ArrayList<>(); private @Valid List<Integer> prefixNsWrappedArray = new ArrayList<>();
protected XmlItem(XmlItemBuilder<?, ?> b) {
this.attributeString = b.attributeString;this.attributeNumber = b.attributeNumber;this.attributeInteger = b.attributeInteger;this.attributeBoolean = b.attributeBoolean;this.wrappedArray = b.wrappedArray;this.nameString = b.nameString;this.nameNumber = b.nameNumber;this.nameInteger = b.nameInteger;this.nameBoolean = b.nameBoolean;this.nameArray = b.nameArray;this.nameWrappedArray = b.nameWrappedArray;this.prefixString = b.prefixString;this.prefixNumber = b.prefixNumber;this.prefixInteger = b.prefixInteger;this.prefixBoolean = b.prefixBoolean;this.prefixArray = b.prefixArray;this.prefixWrappedArray = b.prefixWrappedArray;this.namespaceString = b.namespaceString;this.namespaceNumber = b.namespaceNumber;this.namespaceInteger = b.namespaceInteger;this.namespaceBoolean = b.namespaceBoolean;this.namespaceArray = b.namespaceArray;this.namespaceWrappedArray = b.namespaceWrappedArray;this.prefixNsString = b.prefixNsString;this.prefixNsNumber = b.prefixNsNumber;this.prefixNsInteger = b.prefixNsInteger;this.prefixNsBoolean = b.prefixNsBoolean;this.prefixNsArray = b.prefixNsArray;this.prefixNsWrappedArray = b.prefixNsWrappedArray;
}
public XmlItem() { }
/** /**
**/ **/
public XmlItem attributeString(String attributeString) { public XmlItem attributeString(String attributeString) {
@ -60,8 +66,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "string", value = "") @ApiModelProperty(example = "string", value = "")
@JsonProperty("attribute_string") @JsonProperty("attribute_string")
public String getAttributeString() { public String getAttributeString() {
@ -81,8 +85,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "1.234", value = "") @ApiModelProperty(example = "1.234", value = "")
@JsonProperty("attribute_number") @JsonProperty("attribute_number")
public BigDecimal getAttributeNumber() { public BigDecimal getAttributeNumber() {
@ -102,8 +104,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "-2", value = "") @ApiModelProperty(example = "-2", value = "")
@JsonProperty("attribute_integer") @JsonProperty("attribute_integer")
public Integer getAttributeInteger() { public Integer getAttributeInteger() {
@ -123,8 +123,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "true", value = "") @ApiModelProperty(example = "true", value = "")
@JsonProperty("attribute_boolean") @JsonProperty("attribute_boolean")
public Boolean getAttributeBoolean() { public Boolean getAttributeBoolean() {
@ -144,8 +142,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("wrapped_array") @JsonProperty("wrapped_array")
public List<Integer> getWrappedArray() { public List<Integer> getWrappedArray() {
@ -181,8 +177,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "string", value = "") @ApiModelProperty(example = "string", value = "")
@JsonProperty("name_string") @JsonProperty("name_string")
public String getNameString() { public String getNameString() {
@ -202,8 +196,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "1.234", value = "") @ApiModelProperty(example = "1.234", value = "")
@JsonProperty("name_number") @JsonProperty("name_number")
public BigDecimal getNameNumber() { public BigDecimal getNameNumber() {
@ -223,8 +215,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "-2", value = "") @ApiModelProperty(example = "-2", value = "")
@JsonProperty("name_integer") @JsonProperty("name_integer")
public Integer getNameInteger() { public Integer getNameInteger() {
@ -244,8 +234,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "true", value = "") @ApiModelProperty(example = "true", value = "")
@JsonProperty("name_boolean") @JsonProperty("name_boolean")
public Boolean getNameBoolean() { public Boolean getNameBoolean() {
@ -265,8 +253,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name_array") @JsonProperty("name_array")
public List<Integer> getNameArray() { public List<Integer> getNameArray() {
@ -302,8 +288,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name_wrapped_array") @JsonProperty("name_wrapped_array")
public List<Integer> getNameWrappedArray() { public List<Integer> getNameWrappedArray() {
@ -339,8 +323,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "string", value = "") @ApiModelProperty(example = "string", value = "")
@JsonProperty("prefix_string") @JsonProperty("prefix_string")
public String getPrefixString() { public String getPrefixString() {
@ -360,8 +342,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "1.234", value = "") @ApiModelProperty(example = "1.234", value = "")
@JsonProperty("prefix_number") @JsonProperty("prefix_number")
public BigDecimal getPrefixNumber() { public BigDecimal getPrefixNumber() {
@ -381,8 +361,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "-2", value = "") @ApiModelProperty(example = "-2", value = "")
@JsonProperty("prefix_integer") @JsonProperty("prefix_integer")
public Integer getPrefixInteger() { public Integer getPrefixInteger() {
@ -402,8 +380,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "true", value = "") @ApiModelProperty(example = "true", value = "")
@JsonProperty("prefix_boolean") @JsonProperty("prefix_boolean")
public Boolean getPrefixBoolean() { public Boolean getPrefixBoolean() {
@ -423,8 +399,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("prefix_array") @JsonProperty("prefix_array")
public List<Integer> getPrefixArray() { public List<Integer> getPrefixArray() {
@ -460,8 +434,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("prefix_wrapped_array") @JsonProperty("prefix_wrapped_array")
public List<Integer> getPrefixWrappedArray() { public List<Integer> getPrefixWrappedArray() {
@ -497,8 +469,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "string", value = "") @ApiModelProperty(example = "string", value = "")
@JsonProperty("namespace_string") @JsonProperty("namespace_string")
public String getNamespaceString() { public String getNamespaceString() {
@ -518,8 +488,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "1.234", value = "") @ApiModelProperty(example = "1.234", value = "")
@JsonProperty("namespace_number") @JsonProperty("namespace_number")
public BigDecimal getNamespaceNumber() { public BigDecimal getNamespaceNumber() {
@ -539,8 +507,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "-2", value = "") @ApiModelProperty(example = "-2", value = "")
@JsonProperty("namespace_integer") @JsonProperty("namespace_integer")
public Integer getNamespaceInteger() { public Integer getNamespaceInteger() {
@ -560,8 +526,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "true", value = "") @ApiModelProperty(example = "true", value = "")
@JsonProperty("namespace_boolean") @JsonProperty("namespace_boolean")
public Boolean getNamespaceBoolean() { public Boolean getNamespaceBoolean() {
@ -581,8 +545,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("namespace_array") @JsonProperty("namespace_array")
public List<Integer> getNamespaceArray() { public List<Integer> getNamespaceArray() {
@ -618,8 +580,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("namespace_wrapped_array") @JsonProperty("namespace_wrapped_array")
public List<Integer> getNamespaceWrappedArray() { public List<Integer> getNamespaceWrappedArray() {
@ -655,8 +615,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "string", value = "") @ApiModelProperty(example = "string", value = "")
@JsonProperty("prefix_ns_string") @JsonProperty("prefix_ns_string")
public String getPrefixNsString() { public String getPrefixNsString() {
@ -676,8 +634,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "1.234", value = "") @ApiModelProperty(example = "1.234", value = "")
@JsonProperty("prefix_ns_number") @JsonProperty("prefix_ns_number")
public BigDecimal getPrefixNsNumber() { public BigDecimal getPrefixNsNumber() {
@ -697,8 +653,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "-2", value = "") @ApiModelProperty(example = "-2", value = "")
@JsonProperty("prefix_ns_integer") @JsonProperty("prefix_ns_integer")
public Integer getPrefixNsInteger() { public Integer getPrefixNsInteger() {
@ -718,8 +672,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(example = "true", value = "") @ApiModelProperty(example = "true", value = "")
@JsonProperty("prefix_ns_boolean") @JsonProperty("prefix_ns_boolean")
public Boolean getPrefixNsBoolean() { public Boolean getPrefixNsBoolean() {
@ -739,8 +691,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("prefix_ns_array") @JsonProperty("prefix_ns_array")
public List<Integer> getPrefixNsArray() { public List<Integer> getPrefixNsArray() {
@ -776,8 +726,6 @@ public class XmlItem implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("prefix_ns_wrapped_array") @JsonProperty("prefix_ns_wrapped_array")
public List<Integer> getPrefixNsWrappedArray() { public List<Integer> getPrefixNsWrappedArray() {
@ -901,5 +849,173 @@ public class XmlItem implements Serializable {
} }
public static XmlItemBuilder<?, ?> builder() {
return new XmlItemBuilderImpl();
}
private static final class XmlItemBuilderImpl extends XmlItemBuilder<XmlItem, XmlItemBuilderImpl> {
@Override
protected XmlItemBuilderImpl self() {
return this;
}
@Override
public XmlItem build() {
return new XmlItem(this);
}
}
public static abstract class XmlItemBuilder<C extends XmlItem, B extends XmlItemBuilder<C, B>> {
private String attributeString;
private BigDecimal attributeNumber;
private Integer attributeInteger;
private Boolean attributeBoolean;
private List<Integer> wrappedArray = new ArrayList<>();
private String nameString;
private BigDecimal nameNumber;
private Integer nameInteger;
private Boolean nameBoolean;
private List<Integer> nameArray = new ArrayList<>();
private List<Integer> nameWrappedArray = new ArrayList<>();
private String prefixString;
private BigDecimal prefixNumber;
private Integer prefixInteger;
private Boolean prefixBoolean;
private List<Integer> prefixArray = new ArrayList<>();
private List<Integer> prefixWrappedArray = new ArrayList<>();
private String namespaceString;
private BigDecimal namespaceNumber;
private Integer namespaceInteger;
private Boolean namespaceBoolean;
private List<Integer> namespaceArray = new ArrayList<>();
private List<Integer> namespaceWrappedArray = new ArrayList<>();
private String prefixNsString;
private BigDecimal prefixNsNumber;
private Integer prefixNsInteger;
private Boolean prefixNsBoolean;
private List<Integer> prefixNsArray = new ArrayList<>();
private List<Integer> prefixNsWrappedArray = new ArrayList<>();
protected abstract B self();
public abstract C build();
public B attributeString(String attributeString) {
this.attributeString = attributeString;
return self();
}
public B attributeNumber(BigDecimal attributeNumber) {
this.attributeNumber = attributeNumber;
return self();
}
public B attributeInteger(Integer attributeInteger) {
this.attributeInteger = attributeInteger;
return self();
}
public B attributeBoolean(Boolean attributeBoolean) {
this.attributeBoolean = attributeBoolean;
return self();
}
public B wrappedArray(List<Integer> wrappedArray) {
this.wrappedArray = wrappedArray;
return self();
}
public B nameString(String nameString) {
this.nameString = nameString;
return self();
}
public B nameNumber(BigDecimal nameNumber) {
this.nameNumber = nameNumber;
return self();
}
public B nameInteger(Integer nameInteger) {
this.nameInteger = nameInteger;
return self();
}
public B nameBoolean(Boolean nameBoolean) {
this.nameBoolean = nameBoolean;
return self();
}
public B nameArray(List<Integer> nameArray) {
this.nameArray = nameArray;
return self();
}
public B nameWrappedArray(List<Integer> nameWrappedArray) {
this.nameWrappedArray = nameWrappedArray;
return self();
}
public B prefixString(String prefixString) {
this.prefixString = prefixString;
return self();
}
public B prefixNumber(BigDecimal prefixNumber) {
this.prefixNumber = prefixNumber;
return self();
}
public B prefixInteger(Integer prefixInteger) {
this.prefixInteger = prefixInteger;
return self();
}
public B prefixBoolean(Boolean prefixBoolean) {
this.prefixBoolean = prefixBoolean;
return self();
}
public B prefixArray(List<Integer> prefixArray) {
this.prefixArray = prefixArray;
return self();
}
public B prefixWrappedArray(List<Integer> prefixWrappedArray) {
this.prefixWrappedArray = prefixWrappedArray;
return self();
}
public B namespaceString(String namespaceString) {
this.namespaceString = namespaceString;
return self();
}
public B namespaceNumber(BigDecimal namespaceNumber) {
this.namespaceNumber = namespaceNumber;
return self();
}
public B namespaceInteger(Integer namespaceInteger) {
this.namespaceInteger = namespaceInteger;
return self();
}
public B namespaceBoolean(Boolean namespaceBoolean) {
this.namespaceBoolean = namespaceBoolean;
return self();
}
public B namespaceArray(List<Integer> namespaceArray) {
this.namespaceArray = namespaceArray;
return self();
}
public B namespaceWrappedArray(List<Integer> namespaceWrappedArray) {
this.namespaceWrappedArray = namespaceWrappedArray;
return self();
}
public B prefixNsString(String prefixNsString) {
this.prefixNsString = prefixNsString;
return self();
}
public B prefixNsNumber(BigDecimal prefixNsNumber) {
this.prefixNsNumber = prefixNsNumber;
return self();
}
public B prefixNsInteger(Integer prefixNsInteger) {
this.prefixNsInteger = prefixNsInteger;
return self();
}
public B prefixNsBoolean(Boolean prefixNsBoolean) {
this.prefixNsBoolean = prefixNsBoolean;
return self();
}
public B prefixNsArray(List<Integer> prefixNsArray) {
this.prefixNsArray = prefixNsArray;
return self();
}
public B prefixNsWrappedArray(List<Integer> prefixNsWrappedArray) {
this.prefixNsWrappedArray = prefixNsWrappedArray;
return self();
}
}
} }