fix isArray, isMap tag in jaxrs spec templates (#11424)

This commit is contained in:
William Cheng 2022-01-27 21:14:50 +08:00 committed by GitHub
parent 0bb08a7268
commit 27d322de56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
25 changed files with 1060 additions and 4 deletions

View File

@ -55,7 +55,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.{{name}} = {{name}};
}
{{#isListContainer}}
{{#isArray}}
public {{classname}} add{{nameInCamelCase}}Item({{{items.datatypeWithEnum}}} {{name}}Item) {
if (this.{{name}} == null) {
this.{{name}} = {{{defaultValue}}};
@ -72,8 +72,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
return this;
}
{{/isListContainer}}
{{#isMapContainer}}
{{/isArray}}
{{#isMap}}
public {{classname}} put{{nameInCamelCase}}Item(String key, {{{items.datatypeWithEnum}}} {{name}}Item) {
if (this.{{name}} == null) {
this.{{name}} = {{{defaultValue}}};
@ -90,7 +90,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
return this;
}
{{/isMapContainer}}
{{/isMap}}
{{/vars}}
@Override

View File

@ -55,6 +55,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.mapString = mapString;
}
public AdditionalPropertiesClass putMapStringItem(String key, String mapStringItem) {
if (this.mapString == null) {
this.mapString = new HashMap<String, String>();
}
this.mapString.put(key, mapStringItem);
return this;
}
public AdditionalPropertiesClass removeMapStringItem(String mapStringItem) {
if (mapStringItem != null && this.mapString != null) {
this.mapString.remove(mapStringItem);
}
return this;
}
/**
**/
public AdditionalPropertiesClass mapNumber(Map<String, BigDecimal> mapNumber) {
@ -76,6 +92,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.mapNumber = mapNumber;
}
public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumberItem) {
if (this.mapNumber == null) {
this.mapNumber = new HashMap<String, BigDecimal>();
}
this.mapNumber.put(key, mapNumberItem);
return this;
}
public AdditionalPropertiesClass removeMapNumberItem(BigDecimal mapNumberItem) {
if (mapNumberItem != null && this.mapNumber != null) {
this.mapNumber.remove(mapNumberItem);
}
return this;
}
/**
**/
public AdditionalPropertiesClass mapInteger(Map<String, Integer> mapInteger) {
@ -97,6 +129,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.mapInteger = mapInteger;
}
public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntegerItem) {
if (this.mapInteger == null) {
this.mapInteger = new HashMap<String, Integer>();
}
this.mapInteger.put(key, mapIntegerItem);
return this;
}
public AdditionalPropertiesClass removeMapIntegerItem(Integer mapIntegerItem) {
if (mapIntegerItem != null && this.mapInteger != null) {
this.mapInteger.remove(mapIntegerItem);
}
return this;
}
/**
**/
public AdditionalPropertiesClass mapBoolean(Map<String, Boolean> mapBoolean) {
@ -118,6 +166,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.mapBoolean = mapBoolean;
}
public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBooleanItem) {
if (this.mapBoolean == null) {
this.mapBoolean = new HashMap<String, Boolean>();
}
this.mapBoolean.put(key, mapBooleanItem);
return this;
}
public AdditionalPropertiesClass removeMapBooleanItem(Boolean mapBooleanItem) {
if (mapBooleanItem != null && this.mapBoolean != null) {
this.mapBoolean.remove(mapBooleanItem);
}
return this;
}
/**
**/
public AdditionalPropertiesClass mapArrayInteger(Map<String, List<Integer>> mapArrayInteger) {
@ -139,6 +203,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.mapArrayInteger = mapArrayInteger;
}
public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List<Integer> mapArrayIntegerItem) {
if (this.mapArrayInteger == null) {
this.mapArrayInteger = new HashMap<String, List<Integer>>();
}
this.mapArrayInteger.put(key, mapArrayIntegerItem);
return this;
}
public AdditionalPropertiesClass removeMapArrayIntegerItem(List<Integer> mapArrayIntegerItem) {
if (mapArrayIntegerItem != null && this.mapArrayInteger != null) {
this.mapArrayInteger.remove(mapArrayIntegerItem);
}
return this;
}
/**
**/
public AdditionalPropertiesClass mapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) {
@ -160,6 +240,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.mapArrayAnytype = mapArrayAnytype;
}
public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List<Object> mapArrayAnytypeItem) {
if (this.mapArrayAnytype == null) {
this.mapArrayAnytype = new HashMap<String, List<Object>>();
}
this.mapArrayAnytype.put(key, mapArrayAnytypeItem);
return this;
}
public AdditionalPropertiesClass removeMapArrayAnytypeItem(List<Object> mapArrayAnytypeItem) {
if (mapArrayAnytypeItem != null && this.mapArrayAnytype != null) {
this.mapArrayAnytype.remove(mapArrayAnytypeItem);
}
return this;
}
/**
**/
public AdditionalPropertiesClass mapMapString(Map<String, Map<String, String>> mapMapString) {
@ -181,6 +277,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.mapMapString = mapMapString;
}
public AdditionalPropertiesClass putMapMapStringItem(String key, Map<String, String> mapMapStringItem) {
if (this.mapMapString == null) {
this.mapMapString = new HashMap<String, Map<String, String>>();
}
this.mapMapString.put(key, mapMapStringItem);
return this;
}
public AdditionalPropertiesClass removeMapMapStringItem(Map<String, String> mapMapStringItem) {
if (mapMapStringItem != null && this.mapMapString != null) {
this.mapMapString.remove(mapMapStringItem);
}
return this;
}
/**
**/
public AdditionalPropertiesClass mapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) {
@ -202,6 +314,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.mapMapAnytype = mapMapAnytype;
}
public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map<String, Object> mapMapAnytypeItem) {
if (this.mapMapAnytype == null) {
this.mapMapAnytype = new HashMap<String, Map<String, Object>>();
}
this.mapMapAnytype.put(key, mapMapAnytypeItem);
return this;
}
public AdditionalPropertiesClass removeMapMapAnytypeItem(Map<String, Object> mapMapAnytypeItem) {
if (mapMapAnytypeItem != null && this.mapMapAnytype != null) {
this.mapMapAnytype.remove(mapMapAnytypeItem);
}
return this;
}
/**
**/
public AdditionalPropertiesClass anytype1(Object anytype1) {

View File

@ -44,6 +44,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.arrayArrayNumber = arrayArrayNumber;
}
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
if (this.arrayArrayNumber == null) {
this.arrayArrayNumber = new ArrayList<List<BigDecimal>>();
}
this.arrayArrayNumber.add(arrayArrayNumberItem);
return this;
}
public ArrayOfArrayOfNumberOnly removeArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
if (arrayArrayNumberItem != null && this.arrayArrayNumber != null) {
this.arrayArrayNumber.remove(arrayArrayNumberItem);
}
return this;
}
@Override
public boolean equals(Object o) {

View File

@ -44,6 +44,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.arrayNumber = arrayNumber;
}
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
if (this.arrayNumber == null) {
this.arrayNumber = new ArrayList<BigDecimal>();
}
this.arrayNumber.add(arrayNumberItem);
return this;
}
public ArrayOfNumberOnly removeArrayNumberItem(BigDecimal arrayNumberItem) {
if (arrayNumberItem != null && this.arrayNumber != null) {
this.arrayNumber.remove(arrayNumberItem);
}
return this;
}
@Override
public boolean equals(Object o) {

View File

@ -46,6 +46,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.arrayOfString = arrayOfString;
}
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
if (this.arrayOfString == null) {
this.arrayOfString = new ArrayList<String>();
}
this.arrayOfString.add(arrayOfStringItem);
return this;
}
public ArrayTest removeArrayOfStringItem(String arrayOfStringItem) {
if (arrayOfStringItem != null && this.arrayOfString != null) {
this.arrayOfString.remove(arrayOfStringItem);
}
return this;
}
/**
**/
public ArrayTest arrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
@ -67,6 +83,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.arrayArrayOfInteger = arrayArrayOfInteger;
}
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
if (this.arrayArrayOfInteger == null) {
this.arrayArrayOfInteger = new ArrayList<List<Long>>();
}
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
return this;
}
public ArrayTest removeArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
if (arrayArrayOfIntegerItem != null && this.arrayArrayOfInteger != null) {
this.arrayArrayOfInteger.remove(arrayArrayOfIntegerItem);
}
return this;
}
/**
**/
public ArrayTest arrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
@ -88,6 +120,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.arrayArrayOfModel = arrayArrayOfModel;
}
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
if (this.arrayArrayOfModel == null) {
this.arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
}
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
return this;
}
public ArrayTest removeArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
if (arrayArrayOfModelItem != null && this.arrayArrayOfModel != null) {
this.arrayArrayOfModel.remove(arrayArrayOfModelItem);
}
return this;
}
@Override
public boolean equals(Object o) {

View File

@ -131,6 +131,22 @@ public enum ArrayEnumEnum {
this.arrayEnum = arrayEnum;
}
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
if (this.arrayEnum == null) {
this.arrayEnum = new ArrayList<ArrayEnumEnum>();
}
this.arrayEnum.add(arrayEnumItem);
return this;
}
public EnumArrays removeArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
if (arrayEnumItem != null && this.arrayEnum != null) {
this.arrayEnum.remove(arrayEnumItem);
}
return this;
}
@Override
public boolean equals(Object o) {

View File

@ -66,6 +66,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.files = files;
}
public FileSchemaTestClass addFilesItem(ModelFile filesItem) {
if (this.files == null) {
this.files = new ArrayList<ModelFile>();
}
this.files.add(filesItem);
return this;
}
public FileSchemaTestClass removeFilesItem(ModelFile filesItem) {
if (filesItem != null && this.files != null) {
this.files.remove(filesItem);
}
return this;
}
@Override
public boolean equals(Object o) {

View File

@ -80,6 +80,22 @@ public enum InnerEnum {
this.mapMapOfString = mapMapOfString;
}
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
if (this.mapMapOfString == null) {
this.mapMapOfString = new HashMap<String, Map<String, String>>();
}
this.mapMapOfString.put(key, mapMapOfStringItem);
return this;
}
public MapTest removeMapMapOfStringItem(Map<String, String> mapMapOfStringItem) {
if (mapMapOfStringItem != null && this.mapMapOfString != null) {
this.mapMapOfString.remove(mapMapOfStringItem);
}
return this;
}
/**
**/
public MapTest mapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
@ -101,6 +117,22 @@ public enum InnerEnum {
this.mapOfEnumString = mapOfEnumString;
}
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
if (this.mapOfEnumString == null) {
this.mapOfEnumString = new HashMap<String, InnerEnum>();
}
this.mapOfEnumString.put(key, mapOfEnumStringItem);
return this;
}
public MapTest removeMapOfEnumStringItem(InnerEnum mapOfEnumStringItem) {
if (mapOfEnumStringItem != null && this.mapOfEnumString != null) {
this.mapOfEnumString.remove(mapOfEnumStringItem);
}
return this;
}
/**
**/
public MapTest directMap(Map<String, Boolean> directMap) {
@ -122,6 +154,22 @@ public enum InnerEnum {
this.directMap = directMap;
}
public MapTest putDirectMapItem(String key, Boolean directMapItem) {
if (this.directMap == null) {
this.directMap = new HashMap<String, Boolean>();
}
this.directMap.put(key, directMapItem);
return this;
}
public MapTest removeDirectMapItem(Boolean directMapItem) {
if (directMapItem != null && this.directMap != null) {
this.directMap.remove(directMapItem);
}
return this;
}
/**
**/
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
@ -143,6 +191,22 @@ public enum InnerEnum {
this.indirectMap = indirectMap;
}
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
if (this.indirectMap == null) {
this.indirectMap = new HashMap<String, Boolean>();
}
this.indirectMap.put(key, indirectMapItem);
return this;
}
public MapTest removeIndirectMapItem(Boolean indirectMapItem) {
if (indirectMapItem != null && this.indirectMap != null) {
this.indirectMap.remove(indirectMapItem);
}
return this;
}
@Override
public boolean equals(Object o) {

View File

@ -91,6 +91,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.map = map;
}
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
if (this.map == null) {
this.map = new HashMap<String, Animal>();
}
this.map.put(key, mapItem);
return this;
}
public MixedPropertiesAndAdditionalPropertiesClass removeMapItem(Animal mapItem) {
if (mapItem != null && this.map != null) {
this.map.remove(mapItem);
}
return this;
}
@Override
public boolean equals(Object o) {

View File

@ -152,6 +152,22 @@ public enum StatusEnum {
this.photoUrls = photoUrls;
}
public Pet addPhotoUrlsItem(String photoUrlsItem) {
if (this.photoUrls == null) {
this.photoUrls = new LinkedHashSet<String>();
}
this.photoUrls.add(photoUrlsItem);
return this;
}
public Pet removePhotoUrlsItem(String photoUrlsItem) {
if (photoUrlsItem != null && this.photoUrls != null) {
this.photoUrls.remove(photoUrlsItem);
}
return this;
}
/**
**/
public Pet tags(List<Tag> tags) {
@ -173,6 +189,22 @@ public enum StatusEnum {
this.tags = tags;
}
public Pet addTagsItem(Tag tagsItem) {
if (this.tags == null) {
this.tags = new ArrayList<Tag>();
}
this.tags.add(tagsItem);
return this;
}
public Pet removeTagsItem(Tag tagsItem) {
if (tagsItem != null && this.tags != null) {
this.tags.remove(tagsItem);
}
return this;
}
/**
* pet status in the store
**/

View File

@ -137,6 +137,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.arrayItem = arrayItem;
}
public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
if (this.arrayItem == null) {
this.arrayItem = new ArrayList<Integer>();
}
this.arrayItem.add(arrayItemItem);
return this;
}
public TypeHolderDefault removeArrayItemItem(Integer arrayItemItem) {
if (arrayItemItem != null && this.arrayItem != null) {
this.arrayItem.remove(arrayItemItem);
}
return this;
}
@Override
public boolean equals(Object o) {

View File

@ -160,6 +160,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.arrayItem = arrayItem;
}
public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
if (this.arrayItem == null) {
this.arrayItem = new ArrayList<Integer>();
}
this.arrayItem.add(arrayItemItem);
return this;
}
public TypeHolderExample removeArrayItemItem(Integer arrayItemItem) {
if (arrayItemItem != null && this.arrayItem != null) {
this.arrayItem.remove(arrayItemItem);
}
return this;
}
@Override
public boolean equals(Object o) {

View File

@ -156,6 +156,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.wrappedArray = wrappedArray;
}
public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) {
if (this.wrappedArray == null) {
this.wrappedArray = new ArrayList<Integer>();
}
this.wrappedArray.add(wrappedArrayItem);
return this;
}
public XmlItem removeWrappedArrayItem(Integer wrappedArrayItem) {
if (wrappedArrayItem != null && this.wrappedArray != null) {
this.wrappedArray.remove(wrappedArrayItem);
}
return this;
}
/**
**/
public XmlItem nameString(String nameString) {
@ -261,6 +277,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.nameArray = nameArray;
}
public XmlItem addNameArrayItem(Integer nameArrayItem) {
if (this.nameArray == null) {
this.nameArray = new ArrayList<Integer>();
}
this.nameArray.add(nameArrayItem);
return this;
}
public XmlItem removeNameArrayItem(Integer nameArrayItem) {
if (nameArrayItem != null && this.nameArray != null) {
this.nameArray.remove(nameArrayItem);
}
return this;
}
/**
**/
public XmlItem nameWrappedArray(List<Integer> nameWrappedArray) {
@ -282,6 +314,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.nameWrappedArray = nameWrappedArray;
}
public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) {
if (this.nameWrappedArray == null) {
this.nameWrappedArray = new ArrayList<Integer>();
}
this.nameWrappedArray.add(nameWrappedArrayItem);
return this;
}
public XmlItem removeNameWrappedArrayItem(Integer nameWrappedArrayItem) {
if (nameWrappedArrayItem != null && this.nameWrappedArray != null) {
this.nameWrappedArray.remove(nameWrappedArrayItem);
}
return this;
}
/**
**/
public XmlItem prefixString(String prefixString) {
@ -387,6 +435,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.prefixArray = prefixArray;
}
public XmlItem addPrefixArrayItem(Integer prefixArrayItem) {
if (this.prefixArray == null) {
this.prefixArray = new ArrayList<Integer>();
}
this.prefixArray.add(prefixArrayItem);
return this;
}
public XmlItem removePrefixArrayItem(Integer prefixArrayItem) {
if (prefixArrayItem != null && this.prefixArray != null) {
this.prefixArray.remove(prefixArrayItem);
}
return this;
}
/**
**/
public XmlItem prefixWrappedArray(List<Integer> prefixWrappedArray) {
@ -408,6 +472,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.prefixWrappedArray = prefixWrappedArray;
}
public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) {
if (this.prefixWrappedArray == null) {
this.prefixWrappedArray = new ArrayList<Integer>();
}
this.prefixWrappedArray.add(prefixWrappedArrayItem);
return this;
}
public XmlItem removePrefixWrappedArrayItem(Integer prefixWrappedArrayItem) {
if (prefixWrappedArrayItem != null && this.prefixWrappedArray != null) {
this.prefixWrappedArray.remove(prefixWrappedArrayItem);
}
return this;
}
/**
**/
public XmlItem namespaceString(String namespaceString) {
@ -513,6 +593,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.namespaceArray = namespaceArray;
}
public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) {
if (this.namespaceArray == null) {
this.namespaceArray = new ArrayList<Integer>();
}
this.namespaceArray.add(namespaceArrayItem);
return this;
}
public XmlItem removeNamespaceArrayItem(Integer namespaceArrayItem) {
if (namespaceArrayItem != null && this.namespaceArray != null) {
this.namespaceArray.remove(namespaceArrayItem);
}
return this;
}
/**
**/
public XmlItem namespaceWrappedArray(List<Integer> namespaceWrappedArray) {
@ -534,6 +630,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.namespaceWrappedArray = namespaceWrappedArray;
}
public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) {
if (this.namespaceWrappedArray == null) {
this.namespaceWrappedArray = new ArrayList<Integer>();
}
this.namespaceWrappedArray.add(namespaceWrappedArrayItem);
return this;
}
public XmlItem removeNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) {
if (namespaceWrappedArrayItem != null && this.namespaceWrappedArray != null) {
this.namespaceWrappedArray.remove(namespaceWrappedArrayItem);
}
return this;
}
/**
**/
public XmlItem prefixNsString(String prefixNsString) {
@ -639,6 +751,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.prefixNsArray = prefixNsArray;
}
public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) {
if (this.prefixNsArray == null) {
this.prefixNsArray = new ArrayList<Integer>();
}
this.prefixNsArray.add(prefixNsArrayItem);
return this;
}
public XmlItem removePrefixNsArrayItem(Integer prefixNsArrayItem) {
if (prefixNsArrayItem != null && this.prefixNsArray != null) {
this.prefixNsArray.remove(prefixNsArrayItem);
}
return this;
}
/**
**/
public XmlItem prefixNsWrappedArray(List<Integer> prefixNsWrappedArray) {
@ -660,6 +788,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.prefixNsWrappedArray = prefixNsWrappedArray;
}
public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) {
if (this.prefixNsWrappedArray == null) {
this.prefixNsWrappedArray = new ArrayList<Integer>();
}
this.prefixNsWrappedArray.add(prefixNsWrappedArrayItem);
return this;
}
public XmlItem removePrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) {
if (prefixNsWrappedArrayItem != null && this.prefixNsWrappedArray != null) {
this.prefixNsWrappedArray.remove(prefixNsWrappedArrayItem);
}
return this;
}
@Override
public boolean equals(Object o) {

View File

@ -55,6 +55,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.mapString = mapString;
}
public AdditionalPropertiesClass putMapStringItem(String key, String mapStringItem) {
if (this.mapString == null) {
this.mapString = new HashMap<String, String>();
}
this.mapString.put(key, mapStringItem);
return this;
}
public AdditionalPropertiesClass removeMapStringItem(String mapStringItem) {
if (mapStringItem != null && this.mapString != null) {
this.mapString.remove(mapStringItem);
}
return this;
}
/**
**/
public AdditionalPropertiesClass mapNumber(Map<String, BigDecimal> mapNumber) {
@ -76,6 +92,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.mapNumber = mapNumber;
}
public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumberItem) {
if (this.mapNumber == null) {
this.mapNumber = new HashMap<String, BigDecimal>();
}
this.mapNumber.put(key, mapNumberItem);
return this;
}
public AdditionalPropertiesClass removeMapNumberItem(BigDecimal mapNumberItem) {
if (mapNumberItem != null && this.mapNumber != null) {
this.mapNumber.remove(mapNumberItem);
}
return this;
}
/**
**/
public AdditionalPropertiesClass mapInteger(Map<String, Integer> mapInteger) {
@ -97,6 +129,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.mapInteger = mapInteger;
}
public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntegerItem) {
if (this.mapInteger == null) {
this.mapInteger = new HashMap<String, Integer>();
}
this.mapInteger.put(key, mapIntegerItem);
return this;
}
public AdditionalPropertiesClass removeMapIntegerItem(Integer mapIntegerItem) {
if (mapIntegerItem != null && this.mapInteger != null) {
this.mapInteger.remove(mapIntegerItem);
}
return this;
}
/**
**/
public AdditionalPropertiesClass mapBoolean(Map<String, Boolean> mapBoolean) {
@ -118,6 +166,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.mapBoolean = mapBoolean;
}
public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBooleanItem) {
if (this.mapBoolean == null) {
this.mapBoolean = new HashMap<String, Boolean>();
}
this.mapBoolean.put(key, mapBooleanItem);
return this;
}
public AdditionalPropertiesClass removeMapBooleanItem(Boolean mapBooleanItem) {
if (mapBooleanItem != null && this.mapBoolean != null) {
this.mapBoolean.remove(mapBooleanItem);
}
return this;
}
/**
**/
public AdditionalPropertiesClass mapArrayInteger(Map<String, List<Integer>> mapArrayInteger) {
@ -139,6 +203,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.mapArrayInteger = mapArrayInteger;
}
public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List<Integer> mapArrayIntegerItem) {
if (this.mapArrayInteger == null) {
this.mapArrayInteger = new HashMap<String, List<Integer>>();
}
this.mapArrayInteger.put(key, mapArrayIntegerItem);
return this;
}
public AdditionalPropertiesClass removeMapArrayIntegerItem(List<Integer> mapArrayIntegerItem) {
if (mapArrayIntegerItem != null && this.mapArrayInteger != null) {
this.mapArrayInteger.remove(mapArrayIntegerItem);
}
return this;
}
/**
**/
public AdditionalPropertiesClass mapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) {
@ -160,6 +240,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.mapArrayAnytype = mapArrayAnytype;
}
public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List<Object> mapArrayAnytypeItem) {
if (this.mapArrayAnytype == null) {
this.mapArrayAnytype = new HashMap<String, List<Object>>();
}
this.mapArrayAnytype.put(key, mapArrayAnytypeItem);
return this;
}
public AdditionalPropertiesClass removeMapArrayAnytypeItem(List<Object> mapArrayAnytypeItem) {
if (mapArrayAnytypeItem != null && this.mapArrayAnytype != null) {
this.mapArrayAnytype.remove(mapArrayAnytypeItem);
}
return this;
}
/**
**/
public AdditionalPropertiesClass mapMapString(Map<String, Map<String, String>> mapMapString) {
@ -181,6 +277,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.mapMapString = mapMapString;
}
public AdditionalPropertiesClass putMapMapStringItem(String key, Map<String, String> mapMapStringItem) {
if (this.mapMapString == null) {
this.mapMapString = new HashMap<String, Map<String, String>>();
}
this.mapMapString.put(key, mapMapStringItem);
return this;
}
public AdditionalPropertiesClass removeMapMapStringItem(Map<String, String> mapMapStringItem) {
if (mapMapStringItem != null && this.mapMapString != null) {
this.mapMapString.remove(mapMapStringItem);
}
return this;
}
/**
**/
public AdditionalPropertiesClass mapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) {
@ -202,6 +314,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.mapMapAnytype = mapMapAnytype;
}
public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map<String, Object> mapMapAnytypeItem) {
if (this.mapMapAnytype == null) {
this.mapMapAnytype = new HashMap<String, Map<String, Object>>();
}
this.mapMapAnytype.put(key, mapMapAnytypeItem);
return this;
}
public AdditionalPropertiesClass removeMapMapAnytypeItem(Map<String, Object> mapMapAnytypeItem) {
if (mapMapAnytypeItem != null && this.mapMapAnytype != null) {
this.mapMapAnytype.remove(mapMapAnytypeItem);
}
return this;
}
/**
**/
public AdditionalPropertiesClass anytype1(Object anytype1) {

View File

@ -44,6 +44,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.arrayArrayNumber = arrayArrayNumber;
}
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
if (this.arrayArrayNumber == null) {
this.arrayArrayNumber = new ArrayList<List<BigDecimal>>();
}
this.arrayArrayNumber.add(arrayArrayNumberItem);
return this;
}
public ArrayOfArrayOfNumberOnly removeArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
if (arrayArrayNumberItem != null && this.arrayArrayNumber != null) {
this.arrayArrayNumber.remove(arrayArrayNumberItem);
}
return this;
}
@Override
public boolean equals(Object o) {

View File

@ -44,6 +44,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.arrayNumber = arrayNumber;
}
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
if (this.arrayNumber == null) {
this.arrayNumber = new ArrayList<BigDecimal>();
}
this.arrayNumber.add(arrayNumberItem);
return this;
}
public ArrayOfNumberOnly removeArrayNumberItem(BigDecimal arrayNumberItem) {
if (arrayNumberItem != null && this.arrayNumber != null) {
this.arrayNumber.remove(arrayNumberItem);
}
return this;
}
@Override
public boolean equals(Object o) {

View File

@ -46,6 +46,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.arrayOfString = arrayOfString;
}
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
if (this.arrayOfString == null) {
this.arrayOfString = new ArrayList<String>();
}
this.arrayOfString.add(arrayOfStringItem);
return this;
}
public ArrayTest removeArrayOfStringItem(String arrayOfStringItem) {
if (arrayOfStringItem != null && this.arrayOfString != null) {
this.arrayOfString.remove(arrayOfStringItem);
}
return this;
}
/**
**/
public ArrayTest arrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
@ -67,6 +83,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.arrayArrayOfInteger = arrayArrayOfInteger;
}
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
if (this.arrayArrayOfInteger == null) {
this.arrayArrayOfInteger = new ArrayList<List<Long>>();
}
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
return this;
}
public ArrayTest removeArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
if (arrayArrayOfIntegerItem != null && this.arrayArrayOfInteger != null) {
this.arrayArrayOfInteger.remove(arrayArrayOfIntegerItem);
}
return this;
}
/**
**/
public ArrayTest arrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
@ -88,6 +120,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.arrayArrayOfModel = arrayArrayOfModel;
}
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
if (this.arrayArrayOfModel == null) {
this.arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
}
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
return this;
}
public ArrayTest removeArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
if (arrayArrayOfModelItem != null && this.arrayArrayOfModel != null) {
this.arrayArrayOfModel.remove(arrayArrayOfModelItem);
}
return this;
}
@Override
public boolean equals(Object o) {

View File

@ -131,6 +131,22 @@ public enum ArrayEnumEnum {
this.arrayEnum = arrayEnum;
}
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
if (this.arrayEnum == null) {
this.arrayEnum = new ArrayList<ArrayEnumEnum>();
}
this.arrayEnum.add(arrayEnumItem);
return this;
}
public EnumArrays removeArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
if (arrayEnumItem != null && this.arrayEnum != null) {
this.arrayEnum.remove(arrayEnumItem);
}
return this;
}
@Override
public boolean equals(Object o) {

View File

@ -66,6 +66,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.files = files;
}
public FileSchemaTestClass addFilesItem(ModelFile filesItem) {
if (this.files == null) {
this.files = new ArrayList<ModelFile>();
}
this.files.add(filesItem);
return this;
}
public FileSchemaTestClass removeFilesItem(ModelFile filesItem) {
if (filesItem != null && this.files != null) {
this.files.remove(filesItem);
}
return this;
}
@Override
public boolean equals(Object o) {

View File

@ -80,6 +80,22 @@ public enum InnerEnum {
this.mapMapOfString = mapMapOfString;
}
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
if (this.mapMapOfString == null) {
this.mapMapOfString = new HashMap<String, Map<String, String>>();
}
this.mapMapOfString.put(key, mapMapOfStringItem);
return this;
}
public MapTest removeMapMapOfStringItem(Map<String, String> mapMapOfStringItem) {
if (mapMapOfStringItem != null && this.mapMapOfString != null) {
this.mapMapOfString.remove(mapMapOfStringItem);
}
return this;
}
/**
**/
public MapTest mapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
@ -101,6 +117,22 @@ public enum InnerEnum {
this.mapOfEnumString = mapOfEnumString;
}
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
if (this.mapOfEnumString == null) {
this.mapOfEnumString = new HashMap<String, InnerEnum>();
}
this.mapOfEnumString.put(key, mapOfEnumStringItem);
return this;
}
public MapTest removeMapOfEnumStringItem(InnerEnum mapOfEnumStringItem) {
if (mapOfEnumStringItem != null && this.mapOfEnumString != null) {
this.mapOfEnumString.remove(mapOfEnumStringItem);
}
return this;
}
/**
**/
public MapTest directMap(Map<String, Boolean> directMap) {
@ -122,6 +154,22 @@ public enum InnerEnum {
this.directMap = directMap;
}
public MapTest putDirectMapItem(String key, Boolean directMapItem) {
if (this.directMap == null) {
this.directMap = new HashMap<String, Boolean>();
}
this.directMap.put(key, directMapItem);
return this;
}
public MapTest removeDirectMapItem(Boolean directMapItem) {
if (directMapItem != null && this.directMap != null) {
this.directMap.remove(directMapItem);
}
return this;
}
/**
**/
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
@ -143,6 +191,22 @@ public enum InnerEnum {
this.indirectMap = indirectMap;
}
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
if (this.indirectMap == null) {
this.indirectMap = new HashMap<String, Boolean>();
}
this.indirectMap.put(key, indirectMapItem);
return this;
}
public MapTest removeIndirectMapItem(Boolean indirectMapItem) {
if (indirectMapItem != null && this.indirectMap != null) {
this.indirectMap.remove(indirectMapItem);
}
return this;
}
@Override
public boolean equals(Object o) {

View File

@ -91,6 +91,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.map = map;
}
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
if (this.map == null) {
this.map = new HashMap<String, Animal>();
}
this.map.put(key, mapItem);
return this;
}
public MixedPropertiesAndAdditionalPropertiesClass removeMapItem(Animal mapItem) {
if (mapItem != null && this.map != null) {
this.map.remove(mapItem);
}
return this;
}
@Override
public boolean equals(Object o) {

View File

@ -152,6 +152,22 @@ public enum StatusEnum {
this.photoUrls = photoUrls;
}
public Pet addPhotoUrlsItem(String photoUrlsItem) {
if (this.photoUrls == null) {
this.photoUrls = new LinkedHashSet<String>();
}
this.photoUrls.add(photoUrlsItem);
return this;
}
public Pet removePhotoUrlsItem(String photoUrlsItem) {
if (photoUrlsItem != null && this.photoUrls != null) {
this.photoUrls.remove(photoUrlsItem);
}
return this;
}
/**
**/
public Pet tags(List<Tag> tags) {
@ -173,6 +189,22 @@ public enum StatusEnum {
this.tags = tags;
}
public Pet addTagsItem(Tag tagsItem) {
if (this.tags == null) {
this.tags = new ArrayList<Tag>();
}
this.tags.add(tagsItem);
return this;
}
public Pet removeTagsItem(Tag tagsItem) {
if (tagsItem != null && this.tags != null) {
this.tags.remove(tagsItem);
}
return this;
}
/**
* pet status in the store
**/

View File

@ -137,6 +137,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.arrayItem = arrayItem;
}
public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
if (this.arrayItem == null) {
this.arrayItem = new ArrayList<Integer>();
}
this.arrayItem.add(arrayItemItem);
return this;
}
public TypeHolderDefault removeArrayItemItem(Integer arrayItemItem) {
if (arrayItemItem != null && this.arrayItem != null) {
this.arrayItem.remove(arrayItemItem);
}
return this;
}
@Override
public boolean equals(Object o) {

View File

@ -160,6 +160,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.arrayItem = arrayItem;
}
public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
if (this.arrayItem == null) {
this.arrayItem = new ArrayList<Integer>();
}
this.arrayItem.add(arrayItemItem);
return this;
}
public TypeHolderExample removeArrayItemItem(Integer arrayItemItem) {
if (arrayItemItem != null && this.arrayItem != null) {
this.arrayItem.remove(arrayItemItem);
}
return this;
}
@Override
public boolean equals(Object o) {

View File

@ -156,6 +156,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.wrappedArray = wrappedArray;
}
public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) {
if (this.wrappedArray == null) {
this.wrappedArray = new ArrayList<Integer>();
}
this.wrappedArray.add(wrappedArrayItem);
return this;
}
public XmlItem removeWrappedArrayItem(Integer wrappedArrayItem) {
if (wrappedArrayItem != null && this.wrappedArray != null) {
this.wrappedArray.remove(wrappedArrayItem);
}
return this;
}
/**
**/
public XmlItem nameString(String nameString) {
@ -261,6 +277,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.nameArray = nameArray;
}
public XmlItem addNameArrayItem(Integer nameArrayItem) {
if (this.nameArray == null) {
this.nameArray = new ArrayList<Integer>();
}
this.nameArray.add(nameArrayItem);
return this;
}
public XmlItem removeNameArrayItem(Integer nameArrayItem) {
if (nameArrayItem != null && this.nameArray != null) {
this.nameArray.remove(nameArrayItem);
}
return this;
}
/**
**/
public XmlItem nameWrappedArray(List<Integer> nameWrappedArray) {
@ -282,6 +314,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.nameWrappedArray = nameWrappedArray;
}
public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) {
if (this.nameWrappedArray == null) {
this.nameWrappedArray = new ArrayList<Integer>();
}
this.nameWrappedArray.add(nameWrappedArrayItem);
return this;
}
public XmlItem removeNameWrappedArrayItem(Integer nameWrappedArrayItem) {
if (nameWrappedArrayItem != null && this.nameWrappedArray != null) {
this.nameWrappedArray.remove(nameWrappedArrayItem);
}
return this;
}
/**
**/
public XmlItem prefixString(String prefixString) {
@ -387,6 +435,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.prefixArray = prefixArray;
}
public XmlItem addPrefixArrayItem(Integer prefixArrayItem) {
if (this.prefixArray == null) {
this.prefixArray = new ArrayList<Integer>();
}
this.prefixArray.add(prefixArrayItem);
return this;
}
public XmlItem removePrefixArrayItem(Integer prefixArrayItem) {
if (prefixArrayItem != null && this.prefixArray != null) {
this.prefixArray.remove(prefixArrayItem);
}
return this;
}
/**
**/
public XmlItem prefixWrappedArray(List<Integer> prefixWrappedArray) {
@ -408,6 +472,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.prefixWrappedArray = prefixWrappedArray;
}
public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) {
if (this.prefixWrappedArray == null) {
this.prefixWrappedArray = new ArrayList<Integer>();
}
this.prefixWrappedArray.add(prefixWrappedArrayItem);
return this;
}
public XmlItem removePrefixWrappedArrayItem(Integer prefixWrappedArrayItem) {
if (prefixWrappedArrayItem != null && this.prefixWrappedArray != null) {
this.prefixWrappedArray.remove(prefixWrappedArrayItem);
}
return this;
}
/**
**/
public XmlItem namespaceString(String namespaceString) {
@ -513,6 +593,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.namespaceArray = namespaceArray;
}
public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) {
if (this.namespaceArray == null) {
this.namespaceArray = new ArrayList<Integer>();
}
this.namespaceArray.add(namespaceArrayItem);
return this;
}
public XmlItem removeNamespaceArrayItem(Integer namespaceArrayItem) {
if (namespaceArrayItem != null && this.namespaceArray != null) {
this.namespaceArray.remove(namespaceArrayItem);
}
return this;
}
/**
**/
public XmlItem namespaceWrappedArray(List<Integer> namespaceWrappedArray) {
@ -534,6 +630,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.namespaceWrappedArray = namespaceWrappedArray;
}
public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) {
if (this.namespaceWrappedArray == null) {
this.namespaceWrappedArray = new ArrayList<Integer>();
}
this.namespaceWrappedArray.add(namespaceWrappedArrayItem);
return this;
}
public XmlItem removeNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) {
if (namespaceWrappedArrayItem != null && this.namespaceWrappedArray != null) {
this.namespaceWrappedArray.remove(namespaceWrappedArrayItem);
}
return this;
}
/**
**/
public XmlItem prefixNsString(String prefixNsString) {
@ -639,6 +751,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.prefixNsArray = prefixNsArray;
}
public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) {
if (this.prefixNsArray == null) {
this.prefixNsArray = new ArrayList<Integer>();
}
this.prefixNsArray.add(prefixNsArrayItem);
return this;
}
public XmlItem removePrefixNsArrayItem(Integer prefixNsArrayItem) {
if (prefixNsArrayItem != null && this.prefixNsArray != null) {
this.prefixNsArray.remove(prefixNsArrayItem);
}
return this;
}
/**
**/
public XmlItem prefixNsWrappedArray(List<Integer> prefixNsWrappedArray) {
@ -660,6 +788,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
this.prefixNsWrappedArray = prefixNsWrappedArray;
}
public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) {
if (this.prefixNsWrappedArray == null) {
this.prefixNsWrappedArray = new ArrayList<Integer>();
}
this.prefixNsWrappedArray.add(prefixNsWrappedArrayItem);
return this;
}
public XmlItem removePrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) {
if (prefixNsWrappedArrayItem != null && this.prefixNsWrappedArray != null) {
this.prefixNsWrappedArray.remove(prefixNsWrappedArrayItem);
}
return this;
}
@Override
public boolean equals(Object o) {