forked from loafle/openapi-generator-original
always use @JacksonXmlElementWrapper and read xml data from referenced schema, updated (#15115)
* always use @JacksonXmlElementWrapper and read xml data from referenced schema based on https://github.com/OpenAPITools/openapi-generator/pull/5371 * run generate-samples.sh * suggestion: remove comment with empty name
This commit is contained in:
@@ -3887,14 +3887,6 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
property.isNullable = p.getNullable();
|
property.isNullable = p.getNullable();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p.getXml() != null) {
|
|
||||||
if (p.getXml().getAttribute() != null) {
|
|
||||||
property.isXmlAttribute = p.getXml().getAttribute();
|
|
||||||
}
|
|
||||||
property.xmlPrefix = p.getXml().getPrefix();
|
|
||||||
property.xmlName = p.getXml().getName();
|
|
||||||
property.xmlNamespace = p.getXml().getNamespace();
|
|
||||||
}
|
|
||||||
if (p.getExtensions() != null && !p.getExtensions().isEmpty()) {
|
if (p.getExtensions() != null && !p.getExtensions().isEmpty()) {
|
||||||
property.getVendorExtensions().putAll(p.getExtensions());
|
property.getVendorExtensions().putAll(p.getExtensions());
|
||||||
} else if (p.get$ref() != null) {
|
} else if (p.get$ref() != null) {
|
||||||
@@ -3944,6 +3936,32 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
property.isNullable = (Boolean) referencedSchema.getExtensions().get("x-nullable");
|
property.isNullable = (Boolean) referencedSchema.getExtensions().get("x-nullable");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final XML referencedSchemaXml = referencedSchema.getXml();
|
||||||
|
|
||||||
|
if (referencedSchemaXml != null) {
|
||||||
|
property.xmlName = referencedSchemaXml.getName();
|
||||||
|
property.xmlNamespace = referencedSchemaXml.getNamespace();
|
||||||
|
property.xmlPrefix = referencedSchemaXml.getPrefix();
|
||||||
|
if (referencedSchemaXml.getAttribute() != null) {
|
||||||
|
property.isXmlAttribute = referencedSchemaXml.getAttribute();
|
||||||
|
}
|
||||||
|
if (referencedSchemaXml.getWrapped() != null) {
|
||||||
|
property.isXmlWrapped = referencedSchemaXml.getWrapped();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (p.getXml() != null) {
|
||||||
|
if (p.getXml().getAttribute() != null) {
|
||||||
|
property.isXmlAttribute = p.getXml().getAttribute();
|
||||||
|
}
|
||||||
|
if (p.getXml().getWrapped() != null) {
|
||||||
|
property.isXmlWrapped = p.getXml().getWrapped();
|
||||||
|
}
|
||||||
|
property.xmlPrefix = p.getXml().getPrefix();
|
||||||
|
property.xmlName = p.getXml().getName();
|
||||||
|
property.xmlNamespace = p.getXml().getNamespace();
|
||||||
|
}
|
||||||
|
|
||||||
property.dataType = getTypeDeclaration(p);
|
property.dataType = getTypeDeclaration(p);
|
||||||
property.dataFormat = p.getFormat();
|
property.dataFormat = p.getFormat();
|
||||||
property.baseType = getSchemaType(p);
|
property.baseType = getSchemaType(p);
|
||||||
@@ -3978,12 +3996,6 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
property.containerType = "array";
|
property.containerType = "array";
|
||||||
}
|
}
|
||||||
property.baseType = getSchemaType(p);
|
property.baseType = getSchemaType(p);
|
||||||
if (p.getXml() != null) {
|
|
||||||
property.isXmlWrapped = p.getXml().getWrapped() != null && p.getXml().getWrapped();
|
|
||||||
property.xmlPrefix = p.getXml().getPrefix();
|
|
||||||
property.xmlNamespace = p.getXml().getNamespace();
|
|
||||||
property.xmlName = p.getXml().getName();
|
|
||||||
}
|
|
||||||
|
|
||||||
// handle inner property
|
// handle inner property
|
||||||
String itemName = getItemsName(p, name);
|
String itemName = getItemsName(p, name);
|
||||||
|
|||||||
@@ -11,9 +11,10 @@
|
|||||||
@JacksonXmlProperty({{#isXmlAttribute}}isAttribute = true, {{/isXmlAttribute}}{{#xmlNamespace}}namespace="{{.}}", {{/xmlNamespace}}localName = "{{xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}")
|
@JacksonXmlProperty({{#isXmlAttribute}}isAttribute = true, {{/isXmlAttribute}}{{#xmlNamespace}}namespace="{{.}}", {{/xmlNamespace}}localName = "{{xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}")
|
||||||
{{/isContainer}}
|
{{/isContainer}}
|
||||||
{{#isContainer}}
|
{{#isContainer}}
|
||||||
{{#isXmlWrapped}}
|
{{#xmlName}}
|
||||||
// items.xmlName={{items.xmlName}}
|
// xmlName={{.}}
|
||||||
@JacksonXmlElementWrapper(useWrapping = {{isXmlWrapped}}, {{#xmlNamespace}}namespace="{{.}}", {{/xmlNamespace}}localName = "{{#items.xmlName}}{{items.xmlName}}{{/items.xmlName}}{{^items.xmlName}}{{items.baseName}}{{/items.xmlName}}")
|
{{/xmlName}}
|
||||||
{{/isXmlWrapped}}
|
@JacksonXmlProperty({{#xmlNamespace}}namespace="{{.}}", {{/xmlNamespace}}localName = "{{#xmlName}}{{xmlName}}{{/xmlName}}{{^xmlName}}{{#xmlName}}{{xmlName}}{{/xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}{{/xmlName}}")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = {{isXmlWrapped}}{{#xmlNamespace}}, namespace="{{.}}"{{/xmlNamespace}}{{#isXmlWrapped}}, localName = "{{#xmlName}}{{xmlName}}{{/xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}"{{/isXmlWrapped}})
|
||||||
{{/isContainer}}
|
{{/isContainer}}
|
||||||
{{/withXml}}
|
{{/withXml}}
|
||||||
@@ -144,6 +144,8 @@ public class AdditionalPropertiesClass {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_STRING)
|
@JsonProperty(JSON_PROPERTY_MAP_STRING)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "map_string")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public Map<String, String> getMapString() {
|
public Map<String, String> getMapString() {
|
||||||
return mapString;
|
return mapString;
|
||||||
@@ -152,6 +154,8 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_STRING)
|
@JsonProperty(JSON_PROPERTY_MAP_STRING)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "map_string")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setMapString(Map<String, String> mapString) {
|
public void setMapString(Map<String, String> mapString) {
|
||||||
this.mapString = mapString;
|
this.mapString = mapString;
|
||||||
}
|
}
|
||||||
@@ -178,6 +182,8 @@ public class AdditionalPropertiesClass {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_NUMBER)
|
@JsonProperty(JSON_PROPERTY_MAP_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "map_number")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public Map<String, BigDecimal> getMapNumber() {
|
public Map<String, BigDecimal> getMapNumber() {
|
||||||
return mapNumber;
|
return mapNumber;
|
||||||
@@ -186,6 +192,8 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_NUMBER)
|
@JsonProperty(JSON_PROPERTY_MAP_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "map_number")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setMapNumber(Map<String, BigDecimal> mapNumber) {
|
public void setMapNumber(Map<String, BigDecimal> mapNumber) {
|
||||||
this.mapNumber = mapNumber;
|
this.mapNumber = mapNumber;
|
||||||
}
|
}
|
||||||
@@ -212,6 +220,8 @@ public class AdditionalPropertiesClass {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_INTEGER)
|
@JsonProperty(JSON_PROPERTY_MAP_INTEGER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "map_integer")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public Map<String, Integer> getMapInteger() {
|
public Map<String, Integer> getMapInteger() {
|
||||||
return mapInteger;
|
return mapInteger;
|
||||||
@@ -220,6 +230,8 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_INTEGER)
|
@JsonProperty(JSON_PROPERTY_MAP_INTEGER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "map_integer")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setMapInteger(Map<String, Integer> mapInteger) {
|
public void setMapInteger(Map<String, Integer> mapInteger) {
|
||||||
this.mapInteger = mapInteger;
|
this.mapInteger = mapInteger;
|
||||||
}
|
}
|
||||||
@@ -246,6 +258,8 @@ public class AdditionalPropertiesClass {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_BOOLEAN)
|
@JsonProperty(JSON_PROPERTY_MAP_BOOLEAN)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "map_boolean")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public Map<String, Boolean> getMapBoolean() {
|
public Map<String, Boolean> getMapBoolean() {
|
||||||
return mapBoolean;
|
return mapBoolean;
|
||||||
@@ -254,6 +268,8 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_BOOLEAN)
|
@JsonProperty(JSON_PROPERTY_MAP_BOOLEAN)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "map_boolean")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setMapBoolean(Map<String, Boolean> mapBoolean) {
|
public void setMapBoolean(Map<String, Boolean> mapBoolean) {
|
||||||
this.mapBoolean = mapBoolean;
|
this.mapBoolean = mapBoolean;
|
||||||
}
|
}
|
||||||
@@ -280,6 +296,8 @@ public class AdditionalPropertiesClass {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER)
|
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "map_array_integer")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public Map<String, List<Integer>> getMapArrayInteger() {
|
public Map<String, List<Integer>> getMapArrayInteger() {
|
||||||
return mapArrayInteger;
|
return mapArrayInteger;
|
||||||
@@ -288,6 +306,8 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER)
|
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "map_array_integer")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setMapArrayInteger(Map<String, List<Integer>> mapArrayInteger) {
|
public void setMapArrayInteger(Map<String, List<Integer>> mapArrayInteger) {
|
||||||
this.mapArrayInteger = mapArrayInteger;
|
this.mapArrayInteger = mapArrayInteger;
|
||||||
}
|
}
|
||||||
@@ -314,6 +334,8 @@ public class AdditionalPropertiesClass {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE)
|
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "map_array_anytype")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public Map<String, List<Object>> getMapArrayAnytype() {
|
public Map<String, List<Object>> getMapArrayAnytype() {
|
||||||
return mapArrayAnytype;
|
return mapArrayAnytype;
|
||||||
@@ -322,6 +344,8 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE)
|
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "map_array_anytype")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setMapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) {
|
public void setMapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) {
|
||||||
this.mapArrayAnytype = mapArrayAnytype;
|
this.mapArrayAnytype = mapArrayAnytype;
|
||||||
}
|
}
|
||||||
@@ -348,6 +372,8 @@ public class AdditionalPropertiesClass {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_STRING)
|
@JsonProperty(JSON_PROPERTY_MAP_MAP_STRING)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "map_map_string")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public Map<String, Map<String, String>> getMapMapString() {
|
public Map<String, Map<String, String>> getMapMapString() {
|
||||||
return mapMapString;
|
return mapMapString;
|
||||||
@@ -356,6 +382,8 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_STRING)
|
@JsonProperty(JSON_PROPERTY_MAP_MAP_STRING)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "map_map_string")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setMapMapString(Map<String, Map<String, String>> mapMapString) {
|
public void setMapMapString(Map<String, Map<String, String>> mapMapString) {
|
||||||
this.mapMapString = mapMapString;
|
this.mapMapString = mapMapString;
|
||||||
}
|
}
|
||||||
@@ -382,6 +410,8 @@ public class AdditionalPropertiesClass {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE)
|
@JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "map_map_anytype")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public Map<String, Map<String, Object>> getMapMapAnytype() {
|
public Map<String, Map<String, Object>> getMapMapAnytype() {
|
||||||
return mapMapAnytype;
|
return mapMapAnytype;
|
||||||
@@ -390,6 +420,8 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE)
|
@JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "map_map_anytype")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setMapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) {
|
public void setMapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) {
|
||||||
this.mapMapAnytype = mapMapAnytype;
|
this.mapMapAnytype = mapMapAnytype;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,6 +72,8 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
|
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "ArrayArrayNumber")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public List<List<BigDecimal>> getArrayArrayNumber() {
|
public List<List<BigDecimal>> getArrayArrayNumber() {
|
||||||
return arrayArrayNumber;
|
return arrayArrayNumber;
|
||||||
@@ -80,6 +82,8 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
|
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "ArrayArrayNumber")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setArrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
public void setArrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
||||||
this.arrayArrayNumber = arrayArrayNumber;
|
this.arrayArrayNumber = arrayArrayNumber;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,6 +72,8 @@ public class ArrayOfNumberOnly {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
|
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "ArrayNumber")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public List<BigDecimal> getArrayNumber() {
|
public List<BigDecimal> getArrayNumber() {
|
||||||
return arrayNumber;
|
return arrayNumber;
|
||||||
@@ -80,6 +82,8 @@ public class ArrayOfNumberOnly {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
|
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "ArrayNumber")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setArrayNumber(List<BigDecimal> arrayNumber) {
|
public void setArrayNumber(List<BigDecimal> arrayNumber) {
|
||||||
this.arrayNumber = arrayNumber;
|
this.arrayNumber = arrayNumber;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,6 +88,8 @@ public class ArrayTest {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
|
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "array_of_string")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public List<String> getArrayOfString() {
|
public List<String> getArrayOfString() {
|
||||||
return arrayOfString;
|
return arrayOfString;
|
||||||
@@ -96,6 +98,8 @@ public class ArrayTest {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
|
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "array_of_string")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setArrayOfString(List<String> arrayOfString) {
|
public void setArrayOfString(List<String> arrayOfString) {
|
||||||
this.arrayOfString = arrayOfString;
|
this.arrayOfString = arrayOfString;
|
||||||
}
|
}
|
||||||
@@ -122,6 +126,8 @@ public class ArrayTest {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
|
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "array_array_of_integer")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public List<List<Long>> getArrayArrayOfInteger() {
|
public List<List<Long>> getArrayArrayOfInteger() {
|
||||||
return arrayArrayOfInteger;
|
return arrayArrayOfInteger;
|
||||||
@@ -130,6 +136,8 @@ public class ArrayTest {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
|
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "array_array_of_integer")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setArrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
|
public void setArrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
|
||||||
this.arrayArrayOfInteger = arrayArrayOfInteger;
|
this.arrayArrayOfInteger = arrayArrayOfInteger;
|
||||||
}
|
}
|
||||||
@@ -156,6 +164,8 @@ public class ArrayTest {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
|
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "array_array_of_model")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
||||||
return arrayArrayOfModel;
|
return arrayArrayOfModel;
|
||||||
@@ -164,6 +174,8 @@ public class ArrayTest {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
|
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "array_array_of_model")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
|
public void setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
|
||||||
this.arrayArrayOfModel = arrayArrayOfModel;
|
this.arrayArrayOfModel = arrayArrayOfModel;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -182,6 +182,8 @@ public class EnumArrays {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
|
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "array_enum")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public List<ArrayEnumEnum> getArrayEnum() {
|
public List<ArrayEnumEnum> getArrayEnum() {
|
||||||
return arrayEnum;
|
return arrayEnum;
|
||||||
@@ -190,6 +192,8 @@ public class EnumArrays {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
|
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "array_enum")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setArrayEnum(List<ArrayEnumEnum> arrayEnum) {
|
public void setArrayEnum(List<ArrayEnumEnum> arrayEnum) {
|
||||||
this.arrayEnum = arrayEnum;
|
this.arrayEnum = arrayEnum;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,6 +105,8 @@ public class FileSchemaTestClass {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_FILES)
|
@JsonProperty(JSON_PROPERTY_FILES)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "files")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public List<ModelFile> getFiles() {
|
public List<ModelFile> getFiles() {
|
||||||
return files;
|
return files;
|
||||||
@@ -113,6 +115,8 @@ public class FileSchemaTestClass {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_FILES)
|
@JsonProperty(JSON_PROPERTY_FILES)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "files")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setFiles(List<ModelFile> files) {
|
public void setFiles(List<ModelFile> files) {
|
||||||
this.files = files;
|
this.files = files;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -134,6 +134,8 @@ public class MapTest {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING)
|
@JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "map_map_of_string")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public Map<String, Map<String, String>> getMapMapOfString() {
|
public Map<String, Map<String, String>> getMapMapOfString() {
|
||||||
return mapMapOfString;
|
return mapMapOfString;
|
||||||
@@ -142,6 +144,8 @@ public class MapTest {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING)
|
@JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "map_map_of_string")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setMapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public void setMapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
}
|
}
|
||||||
@@ -168,6 +172,8 @@ public class MapTest {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING)
|
@JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "map_of_enum_string")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public Map<String, InnerEnum> getMapOfEnumString() {
|
public Map<String, InnerEnum> getMapOfEnumString() {
|
||||||
return mapOfEnumString;
|
return mapOfEnumString;
|
||||||
@@ -176,6 +182,8 @@ public class MapTest {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING)
|
@JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "map_of_enum_string")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setMapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
|
public void setMapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
|
||||||
this.mapOfEnumString = mapOfEnumString;
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
}
|
}
|
||||||
@@ -202,6 +210,8 @@ public class MapTest {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_DIRECT_MAP)
|
@JsonProperty(JSON_PROPERTY_DIRECT_MAP)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "direct_map")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public Map<String, Boolean> getDirectMap() {
|
public Map<String, Boolean> getDirectMap() {
|
||||||
return directMap;
|
return directMap;
|
||||||
@@ -210,6 +220,8 @@ public class MapTest {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_DIRECT_MAP)
|
@JsonProperty(JSON_PROPERTY_DIRECT_MAP)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "direct_map")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setDirectMap(Map<String, Boolean> directMap) {
|
public void setDirectMap(Map<String, Boolean> directMap) {
|
||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
}
|
}
|
||||||
@@ -236,6 +248,8 @@ public class MapTest {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
|
@JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "indirect_map")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public Map<String, Boolean> getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
@@ -244,6 +258,8 @@ public class MapTest {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
|
@JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "indirect_map")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -141,6 +141,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_MAP)
|
@JsonProperty(JSON_PROPERTY_MAP)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "map")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public Map<String, Animal> getMap() {
|
public Map<String, Animal> getMap() {
|
||||||
return map;
|
return map;
|
||||||
@@ -149,6 +151,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_MAP)
|
@JsonProperty(JSON_PROPERTY_MAP)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "map")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setMap(Map<String, Animal> map) {
|
public void setMap(Map<String, Animal> map) {
|
||||||
this.map = map;
|
this.map = map;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ public class Pet {
|
|||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_CATEGORY = "category";
|
public static final String JSON_PROPERTY_CATEGORY = "category";
|
||||||
@XmlElement(name = "category")
|
@XmlElement(name = "Category")
|
||||||
private Category category;
|
private Category category;
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_NAME = "name";
|
public static final String JSON_PROPERTY_NAME = "name";
|
||||||
@@ -72,9 +72,9 @@ public class Pet {
|
|||||||
|
|
||||||
public static final String JSON_PROPERTY_TAGS = "tags";
|
public static final String JSON_PROPERTY_TAGS = "tags";
|
||||||
// Is a container wrapped=true
|
// Is a container wrapped=true
|
||||||
// items.name=tags items.baseName=tags items.xmlName= items.xmlNamespace=
|
// items.name=tags items.baseName=tags items.xmlName=Tag items.xmlNamespace=
|
||||||
// items.example= items.type=Tag
|
// items.example= items.type=Tag
|
||||||
@XmlElement(name = "tags")
|
@XmlElement(name = "Tag")
|
||||||
@XmlElementWrapper(name = "tag")
|
@XmlElementWrapper(name = "tag")
|
||||||
private List<Tag> tags;
|
private List<Tag> tags;
|
||||||
|
|
||||||
@@ -168,7 +168,7 @@ public class Pet {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_CATEGORY)
|
@JsonProperty(JSON_PROPERTY_CATEGORY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
@JacksonXmlProperty(localName = "category")
|
@JacksonXmlProperty(localName = "Category")
|
||||||
|
|
||||||
public Category getCategory() {
|
public Category getCategory() {
|
||||||
return category;
|
return category;
|
||||||
@@ -177,7 +177,7 @@ public class Pet {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_CATEGORY)
|
@JsonProperty(JSON_PROPERTY_CATEGORY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
@JacksonXmlProperty(localName = "category")
|
@JacksonXmlProperty(localName = "Category")
|
||||||
public void setCategory(Category category) {
|
public void setCategory(Category category) {
|
||||||
this.category = category;
|
this.category = category;
|
||||||
}
|
}
|
||||||
@@ -232,8 +232,9 @@ public class Pet {
|
|||||||
@javax.annotation.Nonnull
|
@javax.annotation.Nonnull
|
||||||
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
|
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||||
// items.xmlName=
|
// xmlName=photoUrl
|
||||||
@JacksonXmlElementWrapper(useWrapping = true, localName = "photoUrls")
|
@JacksonXmlProperty(localName = "photoUrl")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = true, localName = "photoUrl")
|
||||||
|
|
||||||
public Set<String> getPhotoUrls() {
|
public Set<String> getPhotoUrls() {
|
||||||
return photoUrls;
|
return photoUrls;
|
||||||
@@ -243,8 +244,9 @@ public class Pet {
|
|||||||
@JsonDeserialize(as = LinkedHashSet.class)
|
@JsonDeserialize(as = LinkedHashSet.class)
|
||||||
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
|
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||||
// items.xmlName=
|
// xmlName=photoUrl
|
||||||
@JacksonXmlElementWrapper(useWrapping = true, localName = "photoUrls")
|
@JacksonXmlProperty(localName = "photoUrl")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = true, localName = "photoUrl")
|
||||||
public void setPhotoUrls(Set<String> photoUrls) {
|
public void setPhotoUrls(Set<String> photoUrls) {
|
||||||
this.photoUrls = photoUrls;
|
this.photoUrls = photoUrls;
|
||||||
}
|
}
|
||||||
@@ -271,8 +273,9 @@ public class Pet {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_TAGS)
|
@JsonProperty(JSON_PROPERTY_TAGS)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
// items.xmlName=
|
// xmlName=tag
|
||||||
@JacksonXmlElementWrapper(useWrapping = true, localName = "tags")
|
@JacksonXmlProperty(localName = "tag")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = true, localName = "tag")
|
||||||
|
|
||||||
public List<Tag> getTags() {
|
public List<Tag> getTags() {
|
||||||
return tags;
|
return tags;
|
||||||
@@ -281,8 +284,9 @@ public class Pet {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_TAGS)
|
@JsonProperty(JSON_PROPERTY_TAGS)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
// items.xmlName=
|
// xmlName=tag
|
||||||
@JacksonXmlElementWrapper(useWrapping = true, localName = "tags")
|
@JacksonXmlProperty(localName = "tag")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = true, localName = "tag")
|
||||||
public void setTags(List<Tag> tags) {
|
public void setTags(List<Tag> tags) {
|
||||||
this.tags = tags;
|
this.tags = tags;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -204,6 +204,8 @@ public class TypeHolderDefault {
|
|||||||
@javax.annotation.Nonnull
|
@javax.annotation.Nonnull
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
|
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||||
|
@JacksonXmlProperty(localName = "array_item")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public List<Integer> getArrayItem() {
|
public List<Integer> getArrayItem() {
|
||||||
return arrayItem;
|
return arrayItem;
|
||||||
@@ -212,6 +214,8 @@ public class TypeHolderDefault {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
|
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||||
|
@JacksonXmlProperty(localName = "array_item")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setArrayItem(List<Integer> arrayItem) {
|
public void setArrayItem(List<Integer> arrayItem) {
|
||||||
this.arrayItem = arrayItem;
|
this.arrayItem = arrayItem;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -237,6 +237,8 @@ public class TypeHolderExample {
|
|||||||
@javax.annotation.Nonnull
|
@javax.annotation.Nonnull
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
|
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||||
|
@JacksonXmlProperty(localName = "array_item")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public List<Integer> getArrayItem() {
|
public List<Integer> getArrayItem() {
|
||||||
return arrayItem;
|
return arrayItem;
|
||||||
@@ -245,6 +247,8 @@ public class TypeHolderExample {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
|
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
|
||||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||||
|
@JacksonXmlProperty(localName = "array_item")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setArrayItem(List<Integer> arrayItem) {
|
public void setArrayItem(List<Integer> arrayItem) {
|
||||||
this.arrayItem = arrayItem;
|
this.arrayItem = arrayItem;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -353,8 +353,8 @@ public class XmlItem {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY)
|
@JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
// items.xmlName=
|
@JacksonXmlProperty(localName = "wrapped_array")
|
||||||
@JacksonXmlElementWrapper(useWrapping = true, localName = "wrappedArray")
|
@JacksonXmlElementWrapper(useWrapping = true, localName = "wrapped_array")
|
||||||
|
|
||||||
public List<Integer> getWrappedArray() {
|
public List<Integer> getWrappedArray() {
|
||||||
return wrappedArray;
|
return wrappedArray;
|
||||||
@@ -363,8 +363,8 @@ public class XmlItem {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY)
|
@JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
// items.xmlName=
|
@JacksonXmlProperty(localName = "wrapped_array")
|
||||||
@JacksonXmlElementWrapper(useWrapping = true, localName = "wrappedArray")
|
@JacksonXmlElementWrapper(useWrapping = true, localName = "wrapped_array")
|
||||||
public void setWrappedArray(List<Integer> wrappedArray) {
|
public void setWrappedArray(List<Integer> wrappedArray) {
|
||||||
this.wrappedArray = wrappedArray;
|
this.wrappedArray = wrappedArray;
|
||||||
}
|
}
|
||||||
@@ -503,6 +503,8 @@ public class XmlItem {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_NAME_ARRAY)
|
@JsonProperty(JSON_PROPERTY_NAME_ARRAY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "name_array")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public List<Integer> getNameArray() {
|
public List<Integer> getNameArray() {
|
||||||
return nameArray;
|
return nameArray;
|
||||||
@@ -511,6 +513,8 @@ public class XmlItem {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_NAME_ARRAY)
|
@JsonProperty(JSON_PROPERTY_NAME_ARRAY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "name_array")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setNameArray(List<Integer> nameArray) {
|
public void setNameArray(List<Integer> nameArray) {
|
||||||
this.nameArray = nameArray;
|
this.nameArray = nameArray;
|
||||||
}
|
}
|
||||||
@@ -537,8 +541,9 @@ public class XmlItem {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY)
|
@JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
// items.xmlName=xml_name_wrapped_array_item
|
// xmlName=xml_name_wrapped_array
|
||||||
@JacksonXmlElementWrapper(useWrapping = true, localName = "xml_name_wrapped_array_item")
|
@JacksonXmlProperty(localName = "xml_name_wrapped_array")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = true, localName = "xml_name_wrapped_array")
|
||||||
|
|
||||||
public List<Integer> getNameWrappedArray() {
|
public List<Integer> getNameWrappedArray() {
|
||||||
return nameWrappedArray;
|
return nameWrappedArray;
|
||||||
@@ -547,8 +552,9 @@ public class XmlItem {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY)
|
@JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
// items.xmlName=xml_name_wrapped_array_item
|
// xmlName=xml_name_wrapped_array
|
||||||
@JacksonXmlElementWrapper(useWrapping = true, localName = "xml_name_wrapped_array_item")
|
@JacksonXmlProperty(localName = "xml_name_wrapped_array")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = true, localName = "xml_name_wrapped_array")
|
||||||
public void setNameWrappedArray(List<Integer> nameWrappedArray) {
|
public void setNameWrappedArray(List<Integer> nameWrappedArray) {
|
||||||
this.nameWrappedArray = nameWrappedArray;
|
this.nameWrappedArray = nameWrappedArray;
|
||||||
}
|
}
|
||||||
@@ -687,6 +693,8 @@ public class XmlItem {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_PREFIX_ARRAY)
|
@JsonProperty(JSON_PROPERTY_PREFIX_ARRAY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "prefix_array")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public List<Integer> getPrefixArray() {
|
public List<Integer> getPrefixArray() {
|
||||||
return prefixArray;
|
return prefixArray;
|
||||||
@@ -695,6 +703,8 @@ public class XmlItem {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_PREFIX_ARRAY)
|
@JsonProperty(JSON_PROPERTY_PREFIX_ARRAY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "prefix_array")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setPrefixArray(List<Integer> prefixArray) {
|
public void setPrefixArray(List<Integer> prefixArray) {
|
||||||
this.prefixArray = prefixArray;
|
this.prefixArray = prefixArray;
|
||||||
}
|
}
|
||||||
@@ -721,8 +731,8 @@ public class XmlItem {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY)
|
@JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
// items.xmlName=
|
@JacksonXmlProperty(localName = "prefix_wrapped_array")
|
||||||
@JacksonXmlElementWrapper(useWrapping = true, localName = "prefixWrappedArray")
|
@JacksonXmlElementWrapper(useWrapping = true, localName = "prefix_wrapped_array")
|
||||||
|
|
||||||
public List<Integer> getPrefixWrappedArray() {
|
public List<Integer> getPrefixWrappedArray() {
|
||||||
return prefixWrappedArray;
|
return prefixWrappedArray;
|
||||||
@@ -731,8 +741,8 @@ public class XmlItem {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY)
|
@JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
// items.xmlName=
|
@JacksonXmlProperty(localName = "prefix_wrapped_array")
|
||||||
@JacksonXmlElementWrapper(useWrapping = true, localName = "prefixWrappedArray")
|
@JacksonXmlElementWrapper(useWrapping = true, localName = "prefix_wrapped_array")
|
||||||
public void setPrefixWrappedArray(List<Integer> prefixWrappedArray) {
|
public void setPrefixWrappedArray(List<Integer> prefixWrappedArray) {
|
||||||
this.prefixWrappedArray = prefixWrappedArray;
|
this.prefixWrappedArray = prefixWrappedArray;
|
||||||
}
|
}
|
||||||
@@ -871,6 +881,8 @@ public class XmlItem {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY)
|
@JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "namespace_array")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public List<Integer> getNamespaceArray() {
|
public List<Integer> getNamespaceArray() {
|
||||||
return namespaceArray;
|
return namespaceArray;
|
||||||
@@ -879,6 +891,8 @@ public class XmlItem {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY)
|
@JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "namespace_array")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setNamespaceArray(List<Integer> namespaceArray) {
|
public void setNamespaceArray(List<Integer> namespaceArray) {
|
||||||
this.namespaceArray = namespaceArray;
|
this.namespaceArray = namespaceArray;
|
||||||
}
|
}
|
||||||
@@ -905,8 +919,8 @@ public class XmlItem {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY)
|
@JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
// items.xmlName=
|
@JacksonXmlProperty(namespace="http://f.com/schema", localName = "namespace_wrapped_array")
|
||||||
@JacksonXmlElementWrapper(useWrapping = true, namespace="http://f.com/schema", localName = "namespaceWrappedArray")
|
@JacksonXmlElementWrapper(useWrapping = true, namespace="http://f.com/schema", localName = "namespace_wrapped_array")
|
||||||
|
|
||||||
public List<Integer> getNamespaceWrappedArray() {
|
public List<Integer> getNamespaceWrappedArray() {
|
||||||
return namespaceWrappedArray;
|
return namespaceWrappedArray;
|
||||||
@@ -915,8 +929,8 @@ public class XmlItem {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY)
|
@JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
// items.xmlName=
|
@JacksonXmlProperty(namespace="http://f.com/schema", localName = "namespace_wrapped_array")
|
||||||
@JacksonXmlElementWrapper(useWrapping = true, namespace="http://f.com/schema", localName = "namespaceWrappedArray")
|
@JacksonXmlElementWrapper(useWrapping = true, namespace="http://f.com/schema", localName = "namespace_wrapped_array")
|
||||||
public void setNamespaceWrappedArray(List<Integer> namespaceWrappedArray) {
|
public void setNamespaceWrappedArray(List<Integer> namespaceWrappedArray) {
|
||||||
this.namespaceWrappedArray = namespaceWrappedArray;
|
this.namespaceWrappedArray = namespaceWrappedArray;
|
||||||
}
|
}
|
||||||
@@ -1055,6 +1069,8 @@ public class XmlItem {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY)
|
@JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "prefix_ns_array")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
|
|
||||||
public List<Integer> getPrefixNsArray() {
|
public List<Integer> getPrefixNsArray() {
|
||||||
return prefixNsArray;
|
return prefixNsArray;
|
||||||
@@ -1063,6 +1079,8 @@ public class XmlItem {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY)
|
@JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
|
@JacksonXmlProperty(localName = "prefix_ns_array")
|
||||||
|
@JacksonXmlElementWrapper(useWrapping = false)
|
||||||
public void setPrefixNsArray(List<Integer> prefixNsArray) {
|
public void setPrefixNsArray(List<Integer> prefixNsArray) {
|
||||||
this.prefixNsArray = prefixNsArray;
|
this.prefixNsArray = prefixNsArray;
|
||||||
}
|
}
|
||||||
@@ -1089,8 +1107,8 @@ public class XmlItem {
|
|||||||
@javax.annotation.Nullable
|
@javax.annotation.Nullable
|
||||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY)
|
@JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
// items.xmlName=
|
@JacksonXmlProperty(namespace="http://f.com/schema", localName = "prefix_ns_wrapped_array")
|
||||||
@JacksonXmlElementWrapper(useWrapping = true, namespace="http://f.com/schema", localName = "prefixNsWrappedArray")
|
@JacksonXmlElementWrapper(useWrapping = true, namespace="http://f.com/schema", localName = "prefix_ns_wrapped_array")
|
||||||
|
|
||||||
public List<Integer> getPrefixNsWrappedArray() {
|
public List<Integer> getPrefixNsWrappedArray() {
|
||||||
return prefixNsWrappedArray;
|
return prefixNsWrappedArray;
|
||||||
@@ -1099,8 +1117,8 @@ public class XmlItem {
|
|||||||
|
|
||||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY)
|
@JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY)
|
||||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||||
// items.xmlName=
|
@JacksonXmlProperty(namespace="http://f.com/schema", localName = "prefix_ns_wrapped_array")
|
||||||
@JacksonXmlElementWrapper(useWrapping = true, namespace="http://f.com/schema", localName = "prefixNsWrappedArray")
|
@JacksonXmlElementWrapper(useWrapping = true, namespace="http://f.com/schema", localName = "prefix_ns_wrapped_array")
|
||||||
public void setPrefixNsWrappedArray(List<Integer> prefixNsWrappedArray) {
|
public void setPrefixNsWrappedArray(List<Integer> prefixNsWrappedArray) {
|
||||||
this.prefixNsWrappedArray = prefixNsWrappedArray;
|
this.prefixNsWrappedArray = prefixNsWrappedArray;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ public class Pet {
|
|||||||
@JacksonXmlProperty(localName = "id")
|
@JacksonXmlProperty(localName = "id")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@JacksonXmlProperty(localName = "category")
|
@JacksonXmlProperty(localName = "Category")
|
||||||
private Category category;
|
private Category category;
|
||||||
|
|
||||||
@JacksonXmlProperty(localName = "name")
|
@JacksonXmlProperty(localName = "name")
|
||||||
|
|||||||
Reference in New Issue
Block a user