[java][client][jax-rs] Add a constant for Jackson @JsonProperty (#3560)

This commit is contained in:
Jérémie Bresson
2019-08-09 05:01:23 +02:00
committed by William Cheng
parent 65c7c1b39b
commit 1ab7b9ceb6
926 changed files with 6496 additions and 3248 deletions

View File

@@ -33,7 +33,8 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "AdditionalPropertiesAnyType")
public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
@JsonProperty("name")
public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
@JacksonXmlProperty(localName = "name")
@XmlElement(name = "name")
private String name;

View File

@@ -34,7 +34,8 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "AdditionalPropertiesArray")
public class AdditionalPropertiesArray extends HashMap<String, List> {
@JsonProperty("name")
public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
@JacksonXmlProperty(localName = "name")
@XmlElement(name = "name")
private String name;

View File

@@ -33,7 +33,8 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "AdditionalPropertiesBoolean")
public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
@JsonProperty("name")
public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
@JacksonXmlProperty(localName = "name")
@XmlElement(name = "name")
private String name;

View File

@@ -35,73 +35,84 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "AdditionalPropertiesClass")
public class AdditionalPropertiesClass {
@JsonProperty("map_string")
public static final String JSON_PROPERTY_MAP_STRING = "map_string";
@JsonProperty(JSON_PROPERTY_MAP_STRING)
// Is a container wrapped=false
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
// items.example= items.type=String
@XmlElement(name = "inner")
private Map<String, String> mapString = new HashMap<String, String>();
@JsonProperty("map_number")
public static final String JSON_PROPERTY_MAP_NUMBER = "map_number";
@JsonProperty(JSON_PROPERTY_MAP_NUMBER)
// Is a container wrapped=false
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
// items.example= items.type=BigDecimal
@XmlElement(name = "inner")
private Map<String, BigDecimal> mapNumber = new HashMap<String, BigDecimal>();
@JsonProperty("map_integer")
public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer";
@JsonProperty(JSON_PROPERTY_MAP_INTEGER)
// Is a container wrapped=false
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
// items.example= items.type=Integer
@XmlElement(name = "inner")
private Map<String, Integer> mapInteger = new HashMap<String, Integer>();
@JsonProperty("map_boolean")
public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean";
@JsonProperty(JSON_PROPERTY_MAP_BOOLEAN)
// Is a container wrapped=false
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
// items.example= items.type=Boolean
@XmlElement(name = "inner")
private Map<String, Boolean> mapBoolean = new HashMap<String, Boolean>();
@JsonProperty("map_array_integer")
public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer";
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER)
// Is a container wrapped=false
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
// items.example= items.type=List&lt;Integer&gt;
@XmlElement(name = "inner")
private Map<String, List<Integer>> mapArrayInteger = new HashMap<String, List<Integer>>();
@JsonProperty("map_array_anytype")
public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype";
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE)
// Is a container wrapped=false
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
// items.example= items.type=List&lt;Object&gt;
@XmlElement(name = "inner")
private Map<String, List<Object>> mapArrayAnytype = new HashMap<String, List<Object>>();
@JsonProperty("map_map_string")
public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string";
@JsonProperty(JSON_PROPERTY_MAP_MAP_STRING)
// Is a container wrapped=false
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
// items.example= items.type=Map&lt;String, String&gt;
@XmlElement(name = "inner")
private Map<String, Map<String, String>> mapMapString = new HashMap<String, Map<String, String>>();
@JsonProperty("map_map_anytype")
public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype";
@JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE)
// Is a container wrapped=false
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
// items.example= items.type=Map&lt;String, Object&gt;
@XmlElement(name = "inner")
private Map<String, Map<String, Object>> mapMapAnytype = new HashMap<String, Map<String, Object>>();
@JsonProperty("anytype_1")
public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1";
@JsonProperty(JSON_PROPERTY_ANYTYPE1)
@JacksonXmlProperty(localName = "anytype_1")
@XmlElement(name = "anytype_1")
private Object anytype1 = null;
@JsonProperty("anytype_2")
public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2";
@JsonProperty(JSON_PROPERTY_ANYTYPE2)
@JacksonXmlProperty(localName = "anytype_2")
@XmlElement(name = "anytype_2")
private Object anytype2 = null;
@JsonProperty("anytype_3")
public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3";
@JsonProperty(JSON_PROPERTY_ANYTYPE3)
@JacksonXmlProperty(localName = "anytype_3")
@XmlElement(name = "anytype_3")
private Object anytype3 = null;

View File

@@ -33,7 +33,8 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "AdditionalPropertiesInteger")
public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
@JsonProperty("name")
public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
@JacksonXmlProperty(localName = "name")
@XmlElement(name = "name")
private String name;

View File

@@ -34,7 +34,8 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "AdditionalPropertiesNumber")
public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
@JsonProperty("name")
public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
@JacksonXmlProperty(localName = "name")
@XmlElement(name = "name")
private String name;

View File

@@ -33,7 +33,8 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "AdditionalPropertiesObject")
public class AdditionalPropertiesObject extends HashMap<String, Map> {
@JsonProperty("name")
public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
@JacksonXmlProperty(localName = "name")
@XmlElement(name = "name")
private String name;

View File

@@ -33,7 +33,8 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "AdditionalPropertiesString")
public class AdditionalPropertiesString extends HashMap<String, String> {
@JsonProperty("name")
public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
@JacksonXmlProperty(localName = "name")
@XmlElement(name = "name")
private String name;

View File

@@ -39,12 +39,14 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "Animal")
public class Animal {
@JsonProperty("className")
public static final String JSON_PROPERTY_CLASS_NAME = "className";
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
@JacksonXmlProperty(localName = "className")
@XmlElement(name = "className")
private String className;
@JsonProperty("color")
public static final String JSON_PROPERTY_COLOR = "color";
@JsonProperty(JSON_PROPERTY_COLOR)
@JacksonXmlProperty(localName = "color")
@XmlElement(name = "color")
private String color = "red";

View File

@@ -34,7 +34,8 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "ArrayOfArrayOfNumberOnly")
public class ArrayOfArrayOfNumberOnly {
@JsonProperty("ArrayArrayNumber")
public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber";
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
// Is a container wrapped=false
// items.name=arrayArrayNumber items.baseName=arrayArrayNumber items.xmlName= items.xmlNamespace=
// items.example= items.type=List&lt;BigDecimal&gt;

View File

@@ -34,7 +34,8 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "ArrayOfNumberOnly")
public class ArrayOfNumberOnly {
@JsonProperty("ArrayNumber")
public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber";
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
// Is a container wrapped=false
// items.name=arrayNumber items.baseName=arrayNumber items.xmlName= items.xmlNamespace=
// items.example= items.type=BigDecimal

View File

@@ -34,21 +34,24 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "ArrayTest")
public class ArrayTest {
@JsonProperty("array_of_string")
public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string";
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
// Is a container wrapped=false
// items.name=arrayOfString items.baseName=arrayOfString items.xmlName= items.xmlNamespace=
// items.example= items.type=String
@XmlElement(name = "arrayOfString")
private List<String> arrayOfString = new ArrayList<String>();
@JsonProperty("array_array_of_integer")
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer";
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
// Is a container wrapped=false
// items.name=arrayArrayOfInteger items.baseName=arrayArrayOfInteger items.xmlName= items.xmlNamespace=
// items.example= items.type=List&lt;Long&gt;
@XmlElement(name = "arrayArrayOfInteger")
private List<List<Long>> arrayArrayOfInteger = new ArrayList<List<Long>>();
@JsonProperty("array_array_of_model")
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model";
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
// Is a container wrapped=false
// items.name=arrayArrayOfModel items.baseName=arrayArrayOfModel items.xmlName= items.xmlNamespace=
// items.example= items.type=List&lt;ReadOnlyFirst&gt;

View File

@@ -31,32 +31,38 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "Capitalization")
public class Capitalization {
@JsonProperty("smallCamel")
public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel";
@JsonProperty(JSON_PROPERTY_SMALL_CAMEL)
@JacksonXmlProperty(localName = "smallCamel")
@XmlElement(name = "smallCamel")
private String smallCamel;
@JsonProperty("CapitalCamel")
public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel";
@JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL)
@JacksonXmlProperty(localName = "CapitalCamel")
@XmlElement(name = "CapitalCamel")
private String capitalCamel;
@JsonProperty("small_Snake")
public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake";
@JsonProperty(JSON_PROPERTY_SMALL_SNAKE)
@JacksonXmlProperty(localName = "small_Snake")
@XmlElement(name = "small_Snake")
private String smallSnake;
@JsonProperty("Capital_Snake")
public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake";
@JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE)
@JacksonXmlProperty(localName = "Capital_Snake")
@XmlElement(name = "Capital_Snake")
private String capitalSnake;
@JsonProperty("SCA_ETH_Flow_Points")
public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points";
@JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS)
@JacksonXmlProperty(localName = "SCA_ETH_Flow_Points")
@XmlElement(name = "SCA_ETH_Flow_Points")
private String scAETHFlowPoints;
@JsonProperty("ATT_NAME")
public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME";
@JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E)
@JacksonXmlProperty(localName = "ATT_NAME")
@XmlElement(name = "ATT_NAME")
private String ATT_NAME;

View File

@@ -33,7 +33,8 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "Cat")
public class Cat extends Animal {
@JsonProperty("declawed")
public static final String JSON_PROPERTY_DECLAWED = "declawed";
@JsonProperty(JSON_PROPERTY_DECLAWED)
@JacksonXmlProperty(localName = "declawed")
@XmlElement(name = "declawed")
private Boolean declawed;

View File

@@ -31,7 +31,8 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "CatAllOf")
public class CatAllOf {
@JsonProperty("declawed")
public static final String JSON_PROPERTY_DECLAWED = "declawed";
@JsonProperty(JSON_PROPERTY_DECLAWED)
@JacksonXmlProperty(localName = "declawed")
@XmlElement(name = "declawed")
private Boolean declawed;

View File

@@ -31,12 +31,14 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "Category")
public class Category {
@JsonProperty("id")
public static final String JSON_PROPERTY_ID = "id";
@JsonProperty(JSON_PROPERTY_ID)
@JacksonXmlProperty(localName = "id")
@XmlElement(name = "id")
private Long id;
@JsonProperty("name")
public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
@JacksonXmlProperty(localName = "name")
@XmlElement(name = "name")
private String name = "default-name";

View File

@@ -32,7 +32,8 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "ClassModel")
public class ClassModel {
@JsonProperty("_class")
public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class";
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
@JacksonXmlProperty(localName = "_class")
@XmlElement(name = "_class")
private String propertyClass;

View File

@@ -31,7 +31,8 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "Client")
public class Client {
@JsonProperty("client")
public static final String JSON_PROPERTY_CLIENT = "client";
@JsonProperty(JSON_PROPERTY_CLIENT)
@JacksonXmlProperty(localName = "client")
@XmlElement(name = "client")
private String client;

View File

@@ -33,7 +33,8 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "Dog")
public class Dog extends Animal {
@JsonProperty("breed")
public static final String JSON_PROPERTY_BREED = "breed";
@JsonProperty(JSON_PROPERTY_BREED)
@JacksonXmlProperty(localName = "breed")
@XmlElement(name = "breed")
private String breed;

View File

@@ -31,7 +31,8 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "DogAllOf")
public class DogAllOf {
@JsonProperty("breed")
public static final String JSON_PROPERTY_BREED = "breed";
@JsonProperty(JSON_PROPERTY_BREED)
@JacksonXmlProperty(localName = "breed")
@XmlElement(name = "breed")
private String breed;

View File

@@ -68,7 +68,8 @@ public class EnumArrays {
}
}
@JsonProperty("just_symbol")
public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol";
@JsonProperty(JSON_PROPERTY_JUST_SYMBOL)
@JacksonXmlProperty(localName = "just_symbol")
@XmlElement(name = "just_symbol")
private JustSymbolEnum justSymbol;
@@ -108,7 +109,8 @@ public class EnumArrays {
}
}
@JsonProperty("array_enum")
public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum";
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
// Is a container wrapped=false
// items.name=arrayEnum items.baseName=arrayEnum items.xmlName= items.xmlNamespace=
// items.example= items.type=String

View File

@@ -69,7 +69,8 @@ public class EnumTest {
}
}
@JsonProperty("enum_string")
public static final String JSON_PROPERTY_ENUM_STRING = "enum_string";
@JsonProperty(JSON_PROPERTY_ENUM_STRING)
@JacksonXmlProperty(localName = "enum_string")
@XmlElement(name = "enum_string")
private EnumStringEnum enumString;
@@ -111,7 +112,8 @@ public class EnumTest {
}
}
@JsonProperty("enum_string_required")
public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required";
@JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED)
@JacksonXmlProperty(localName = "enum_string_required")
@XmlElement(name = "enum_string_required")
private EnumStringRequiredEnum enumStringRequired;
@@ -151,7 +153,8 @@ public class EnumTest {
}
}
@JsonProperty("enum_integer")
public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer";
@JsonProperty(JSON_PROPERTY_ENUM_INTEGER)
@JacksonXmlProperty(localName = "enum_integer")
@XmlElement(name = "enum_integer")
private EnumIntegerEnum enumInteger;
@@ -191,12 +194,14 @@ public class EnumTest {
}
}
@JsonProperty("enum_number")
public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number";
@JsonProperty(JSON_PROPERTY_ENUM_NUMBER)
@JacksonXmlProperty(localName = "enum_number")
@XmlElement(name = "enum_number")
private EnumNumberEnum enumNumber;
@JsonProperty("outerEnum")
public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum";
@JsonProperty(JSON_PROPERTY_OUTER_ENUM)
@JacksonXmlProperty(localName = "outerEnum")
@XmlElement(name = "outerEnum")
private OuterEnum outerEnum;

View File

@@ -33,12 +33,14 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "FileSchemaTestClass")
public class FileSchemaTestClass {
@JsonProperty("file")
public static final String JSON_PROPERTY_FILE = "file";
@JsonProperty(JSON_PROPERTY_FILE)
@JacksonXmlProperty(localName = "file")
@XmlElement(name = "file")
private java.io.File file = null;
@JsonProperty("files")
public static final String JSON_PROPERTY_FILES = "files";
@JsonProperty(JSON_PROPERTY_FILES)
// Is a container wrapped=false
// items.name=files items.baseName=files items.xmlName= items.xmlNamespace=
// items.example= items.type=java.io.File

View File

@@ -36,67 +36,80 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "FormatTest")
public class FormatTest {
@JsonProperty("integer")
public static final String JSON_PROPERTY_INTEGER = "integer";
@JsonProperty(JSON_PROPERTY_INTEGER)
@JacksonXmlProperty(localName = "integer")
@XmlElement(name = "integer")
private Integer integer;
@JsonProperty("int32")
public static final String JSON_PROPERTY_INT32 = "int32";
@JsonProperty(JSON_PROPERTY_INT32)
@JacksonXmlProperty(localName = "int32")
@XmlElement(name = "int32")
private Integer int32;
@JsonProperty("int64")
public static final String JSON_PROPERTY_INT64 = "int64";
@JsonProperty(JSON_PROPERTY_INT64)
@JacksonXmlProperty(localName = "int64")
@XmlElement(name = "int64")
private Long int64;
@JsonProperty("number")
public static final String JSON_PROPERTY_NUMBER = "number";
@JsonProperty(JSON_PROPERTY_NUMBER)
@JacksonXmlProperty(localName = "number")
@XmlElement(name = "number")
private BigDecimal number;
@JsonProperty("float")
public static final String JSON_PROPERTY_FLOAT = "float";
@JsonProperty(JSON_PROPERTY_FLOAT)
@JacksonXmlProperty(localName = "float")
@XmlElement(name = "float")
private Float _float;
@JsonProperty("double")
public static final String JSON_PROPERTY_DOUBLE = "double";
@JsonProperty(JSON_PROPERTY_DOUBLE)
@JacksonXmlProperty(localName = "double")
@XmlElement(name = "double")
private Double _double;
@JsonProperty("string")
public static final String JSON_PROPERTY_STRING = "string";
@JsonProperty(JSON_PROPERTY_STRING)
@JacksonXmlProperty(localName = "string")
@XmlElement(name = "string")
private String string;
@JsonProperty("byte")
public static final String JSON_PROPERTY_BYTE = "byte";
@JsonProperty(JSON_PROPERTY_BYTE)
@JacksonXmlProperty(localName = "byte")
@XmlElement(name = "byte")
private byte[] _byte;
@JsonProperty("binary")
public static final String JSON_PROPERTY_BINARY = "binary";
@JsonProperty(JSON_PROPERTY_BINARY)
@JacksonXmlProperty(localName = "binary")
@XmlElement(name = "binary")
private File binary;
@JsonProperty("date")
public static final String JSON_PROPERTY_DATE = "date";
@JsonProperty(JSON_PROPERTY_DATE)
@JacksonXmlProperty(localName = "date")
@XmlElement(name = "date")
private LocalDate date;
@JsonProperty("dateTime")
public static final String JSON_PROPERTY_DATE_TIME = "dateTime";
@JsonProperty(JSON_PROPERTY_DATE_TIME)
@JacksonXmlProperty(localName = "dateTime")
@XmlElement(name = "dateTime")
private OffsetDateTime dateTime;
@JsonProperty("uuid")
public static final String JSON_PROPERTY_UUID = "uuid";
@JsonProperty(JSON_PROPERTY_UUID)
@JacksonXmlProperty(localName = "uuid")
@XmlElement(name = "uuid")
private UUID uuid;
@JsonProperty("password")
public static final String JSON_PROPERTY_PASSWORD = "password";
@JsonProperty(JSON_PROPERTY_PASSWORD)
@JacksonXmlProperty(localName = "password")
@XmlElement(name = "password")
private String password;

View File

@@ -31,12 +31,14 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "HasOnlyReadOnly")
public class HasOnlyReadOnly {
@JsonProperty("bar")
public static final String JSON_PROPERTY_BAR = "bar";
@JsonProperty(JSON_PROPERTY_BAR)
@JacksonXmlProperty(localName = "bar")
@XmlElement(name = "bar")
private String bar;
@JsonProperty("foo")
public static final String JSON_PROPERTY_FOO = "foo";
@JsonProperty(JSON_PROPERTY_FOO)
@JacksonXmlProperty(localName = "foo")
@XmlElement(name = "foo")
private String foo;

View File

@@ -34,7 +34,8 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "MapTest")
public class MapTest {
@JsonProperty("map_map_of_string")
public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string";
@JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING)
// Is a container wrapped=false
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
// items.example= items.type=Map&lt;String, String&gt;
@@ -76,21 +77,24 @@ public class MapTest {
}
}
@JsonProperty("map_of_enum_string")
public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string";
@JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING)
// Is a container wrapped=false
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
// items.example= items.type=String
@XmlElement(name = "inner")
private Map<String, InnerEnum> mapOfEnumString = new HashMap<String, InnerEnum>();
@JsonProperty("direct_map")
public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map";
@JsonProperty(JSON_PROPERTY_DIRECT_MAP)
// Is a container wrapped=false
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
// items.example= items.type=Boolean
@XmlElement(name = "inner")
private Map<String, Boolean> directMap = new HashMap<String, Boolean>();
@JsonProperty("indirect_map")
public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map";
@JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
// Is a container wrapped=false
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
// items.example= items.type=Boolean

View File

@@ -37,17 +37,20 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "MixedPropertiesAndAdditionalPropertiesClass")
public class MixedPropertiesAndAdditionalPropertiesClass {
@JsonProperty("uuid")
public static final String JSON_PROPERTY_UUID = "uuid";
@JsonProperty(JSON_PROPERTY_UUID)
@JacksonXmlProperty(localName = "uuid")
@XmlElement(name = "uuid")
private UUID uuid;
@JsonProperty("dateTime")
public static final String JSON_PROPERTY_DATE_TIME = "dateTime";
@JsonProperty(JSON_PROPERTY_DATE_TIME)
@JacksonXmlProperty(localName = "dateTime")
@XmlElement(name = "dateTime")
private OffsetDateTime dateTime;
@JsonProperty("map")
public static final String JSON_PROPERTY_MAP = "map";
@JsonProperty(JSON_PROPERTY_MAP)
// Is a container wrapped=false
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
// items.example= items.type=Animal

View File

@@ -32,12 +32,14 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "Name")
public class Model200Response {
@JsonProperty("name")
public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
@JacksonXmlProperty(localName = "name")
@XmlElement(name = "name")
private Integer name;
@JsonProperty("class")
public static final String JSON_PROPERTY_PROPERTY_CLASS = "class";
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
@JacksonXmlProperty(localName = "class")
@XmlElement(name = "class")
private String propertyClass;

View File

@@ -31,17 +31,20 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "ModelApiResponse")
public class ModelApiResponse {
@JsonProperty("code")
public static final String JSON_PROPERTY_CODE = "code";
@JsonProperty(JSON_PROPERTY_CODE)
@JacksonXmlProperty(localName = "code")
@XmlElement(name = "code")
private Integer code;
@JsonProperty("type")
public static final String JSON_PROPERTY_TYPE = "type";
@JsonProperty(JSON_PROPERTY_TYPE)
@JacksonXmlProperty(localName = "type")
@XmlElement(name = "type")
private String type;
@JsonProperty("message")
public static final String JSON_PROPERTY_MESSAGE = "message";
@JsonProperty(JSON_PROPERTY_MESSAGE)
@JacksonXmlProperty(localName = "message")
@XmlElement(name = "message")
private String message;

View File

@@ -32,7 +32,8 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "Return")
public class ModelReturn {
@JsonProperty("return")
public static final String JSON_PROPERTY_RETURN = "return";
@JsonProperty(JSON_PROPERTY_RETURN)
@JacksonXmlProperty(localName = "return")
@XmlElement(name = "return")
private Integer _return;

View File

@@ -32,22 +32,26 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "Name")
public class Name {
@JsonProperty("name")
public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
@JacksonXmlProperty(localName = "name")
@XmlElement(name = "name")
private Integer name;
@JsonProperty("snake_case")
public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case";
@JsonProperty(JSON_PROPERTY_SNAKE_CASE)
@JacksonXmlProperty(localName = "snake_case")
@XmlElement(name = "snake_case")
private Integer snakeCase;
@JsonProperty("property")
public static final String JSON_PROPERTY_PROPERTY = "property";
@JsonProperty(JSON_PROPERTY_PROPERTY)
@JacksonXmlProperty(localName = "property")
@XmlElement(name = "property")
private String property;
@JsonProperty("123Number")
public static final String JSON_PROPERTY_123NUMBER = "123Number";
@JsonProperty(JSON_PROPERTY_123NUMBER)
@JacksonXmlProperty(localName = "123Number")
@XmlElement(name = "123Number")
private Integer _123number;

View File

@@ -32,7 +32,8 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "NumberOnly")
public class NumberOnly {
@JsonProperty("JustNumber")
public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber";
@JsonProperty(JSON_PROPERTY_JUST_NUMBER)
@JacksonXmlProperty(localName = "JustNumber")
@XmlElement(name = "JustNumber")
private BigDecimal justNumber;

View File

@@ -32,22 +32,26 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "Order")
public class Order {
@JsonProperty("id")
public static final String JSON_PROPERTY_ID = "id";
@JsonProperty(JSON_PROPERTY_ID)
@JacksonXmlProperty(localName = "id")
@XmlElement(name = "id")
private Long id;
@JsonProperty("petId")
public static final String JSON_PROPERTY_PET_ID = "petId";
@JsonProperty(JSON_PROPERTY_PET_ID)
@JacksonXmlProperty(localName = "petId")
@XmlElement(name = "petId")
private Long petId;
@JsonProperty("quantity")
public static final String JSON_PROPERTY_QUANTITY = "quantity";
@JsonProperty(JSON_PROPERTY_QUANTITY)
@JacksonXmlProperty(localName = "quantity")
@XmlElement(name = "quantity")
private Integer quantity;
@JsonProperty("shipDate")
public static final String JSON_PROPERTY_SHIP_DATE = "shipDate";
@JsonProperty(JSON_PROPERTY_SHIP_DATE)
@JacksonXmlProperty(localName = "shipDate")
@XmlElement(name = "shipDate")
private OffsetDateTime shipDate;
@@ -89,12 +93,14 @@ public class Order {
}
}
@JsonProperty("status")
public static final String JSON_PROPERTY_STATUS = "status";
@JsonProperty(JSON_PROPERTY_STATUS)
@JacksonXmlProperty(localName = "status")
@XmlElement(name = "status")
private StatusEnum status;
@JsonProperty("complete")
public static final String JSON_PROPERTY_COMPLETE = "complete";
@JsonProperty(JSON_PROPERTY_COMPLETE)
@JacksonXmlProperty(localName = "complete")
@XmlElement(name = "complete")
private Boolean complete = false;

View File

@@ -32,17 +32,20 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "OuterComposite")
public class OuterComposite {
@JsonProperty("my_number")
public static final String JSON_PROPERTY_MY_NUMBER = "my_number";
@JsonProperty(JSON_PROPERTY_MY_NUMBER)
@JacksonXmlProperty(localName = "my_number")
@XmlElement(name = "my_number")
private BigDecimal myNumber;
@JsonProperty("my_string")
public static final String JSON_PROPERTY_MY_STRING = "my_string";
@JsonProperty(JSON_PROPERTY_MY_STRING)
@JacksonXmlProperty(localName = "my_string")
@XmlElement(name = "my_string")
private String myString;
@JsonProperty("my_boolean")
public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean";
@JsonProperty(JSON_PROPERTY_MY_BOOLEAN)
@JacksonXmlProperty(localName = "my_boolean")
@XmlElement(name = "my_boolean")
private Boolean myBoolean;

View File

@@ -35,22 +35,26 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "Pet")
public class Pet {
@JsonProperty("id")
public static final String JSON_PROPERTY_ID = "id";
@JsonProperty(JSON_PROPERTY_ID)
@JacksonXmlProperty(localName = "id")
@XmlElement(name = "id")
private Long id;
@JsonProperty("category")
public static final String JSON_PROPERTY_CATEGORY = "category";
@JsonProperty(JSON_PROPERTY_CATEGORY)
@JacksonXmlProperty(localName = "category")
@XmlElement(name = "category")
private Category category = null;
@JsonProperty("name")
public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
@JacksonXmlProperty(localName = "name")
@XmlElement(name = "name")
private String name;
@JsonProperty("photoUrls")
public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls";
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
// items.xmlName=
@JacksonXmlElementWrapper(useWrapping = true, localName = "photoUrls")
// Is a container wrapped=true
@@ -60,7 +64,8 @@ public class Pet {
@XmlElementWrapper(name = "photoUrl")
private List<String> photoUrls = new ArrayList<String>();
@JsonProperty("tags")
public static final String JSON_PROPERTY_TAGS = "tags";
@JsonProperty(JSON_PROPERTY_TAGS)
// items.xmlName=
@JacksonXmlElementWrapper(useWrapping = true, localName = "tags")
// Is a container wrapped=true
@@ -107,7 +112,8 @@ public class Pet {
}
}
@JsonProperty("status")
public static final String JSON_PROPERTY_STATUS = "status";
@JsonProperty(JSON_PROPERTY_STATUS)
@JacksonXmlProperty(localName = "status")
@XmlElement(name = "status")
private StatusEnum status;

View File

@@ -31,12 +31,14 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "ReadOnlyFirst")
public class ReadOnlyFirst {
@JsonProperty("bar")
public static final String JSON_PROPERTY_BAR = "bar";
@JsonProperty(JSON_PROPERTY_BAR)
@JacksonXmlProperty(localName = "bar")
@XmlElement(name = "bar")
private String bar;
@JsonProperty("baz")
public static final String JSON_PROPERTY_BAZ = "baz";
@JsonProperty(JSON_PROPERTY_BAZ)
@JacksonXmlProperty(localName = "baz")
@XmlElement(name = "baz")
private String baz;

View File

@@ -31,7 +31,8 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "$special[model.name]")
public class SpecialModelName {
@JsonProperty("$special[property.name]")
public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]";
@JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME)
@JacksonXmlProperty(localName = "$special[property.name]")
@XmlElement(name = "$special[property.name]")
private Long $specialPropertyName;

View File

@@ -31,12 +31,14 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "Tag")
public class Tag {
@JsonProperty("id")
public static final String JSON_PROPERTY_ID = "id";
@JsonProperty(JSON_PROPERTY_ID)
@JacksonXmlProperty(localName = "id")
@XmlElement(name = "id")
private Long id;
@JsonProperty("name")
public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
@JacksonXmlProperty(localName = "name")
@XmlElement(name = "name")
private String name;

View File

@@ -34,27 +34,32 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "TypeHolderDefault")
public class TypeHolderDefault {
@JsonProperty("string_item")
public static final String JSON_PROPERTY_STRING_ITEM = "string_item";
@JsonProperty(JSON_PROPERTY_STRING_ITEM)
@JacksonXmlProperty(localName = "string_item")
@XmlElement(name = "string_item")
private String stringItem = "what";
@JsonProperty("number_item")
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
@JacksonXmlProperty(localName = "number_item")
@XmlElement(name = "number_item")
private BigDecimal numberItem;
@JsonProperty("integer_item")
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
@JsonProperty(JSON_PROPERTY_INTEGER_ITEM)
@JacksonXmlProperty(localName = "integer_item")
@XmlElement(name = "integer_item")
private Integer integerItem;
@JsonProperty("bool_item")
public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item";
@JsonProperty(JSON_PROPERTY_BOOL_ITEM)
@JacksonXmlProperty(localName = "bool_item")
@XmlElement(name = "bool_item")
private Boolean boolItem = true;
@JsonProperty("array_item")
public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item";
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
// Is a container wrapped=false
// items.name=arrayItem items.baseName=arrayItem items.xmlName= items.xmlNamespace=
// items.example= items.type=Integer

View File

@@ -34,27 +34,32 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "TypeHolderExample")
public class TypeHolderExample {
@JsonProperty("string_item")
public static final String JSON_PROPERTY_STRING_ITEM = "string_item";
@JsonProperty(JSON_PROPERTY_STRING_ITEM)
@JacksonXmlProperty(localName = "string_item")
@XmlElement(name = "string_item")
private String stringItem;
@JsonProperty("number_item")
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
@JacksonXmlProperty(localName = "number_item")
@XmlElement(name = "number_item")
private BigDecimal numberItem;
@JsonProperty("integer_item")
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
@JsonProperty(JSON_PROPERTY_INTEGER_ITEM)
@JacksonXmlProperty(localName = "integer_item")
@XmlElement(name = "integer_item")
private Integer integerItem;
@JsonProperty("bool_item")
public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item";
@JsonProperty(JSON_PROPERTY_BOOL_ITEM)
@JacksonXmlProperty(localName = "bool_item")
@XmlElement(name = "bool_item")
private Boolean boolItem;
@JsonProperty("array_item")
public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item";
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
// Is a container wrapped=false
// items.name=arrayItem items.baseName=arrayItem items.xmlName= items.xmlNamespace=
// items.example= items.type=Integer

View File

@@ -31,42 +31,50 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(localName = "User")
public class User {
@JsonProperty("id")
public static final String JSON_PROPERTY_ID = "id";
@JsonProperty(JSON_PROPERTY_ID)
@JacksonXmlProperty(localName = "id")
@XmlElement(name = "id")
private Long id;
@JsonProperty("username")
public static final String JSON_PROPERTY_USERNAME = "username";
@JsonProperty(JSON_PROPERTY_USERNAME)
@JacksonXmlProperty(localName = "username")
@XmlElement(name = "username")
private String username;
@JsonProperty("firstName")
public static final String JSON_PROPERTY_FIRST_NAME = "firstName";
@JsonProperty(JSON_PROPERTY_FIRST_NAME)
@JacksonXmlProperty(localName = "firstName")
@XmlElement(name = "firstName")
private String firstName;
@JsonProperty("lastName")
public static final String JSON_PROPERTY_LAST_NAME = "lastName";
@JsonProperty(JSON_PROPERTY_LAST_NAME)
@JacksonXmlProperty(localName = "lastName")
@XmlElement(name = "lastName")
private String lastName;
@JsonProperty("email")
public static final String JSON_PROPERTY_EMAIL = "email";
@JsonProperty(JSON_PROPERTY_EMAIL)
@JacksonXmlProperty(localName = "email")
@XmlElement(name = "email")
private String email;
@JsonProperty("password")
public static final String JSON_PROPERTY_PASSWORD = "password";
@JsonProperty(JSON_PROPERTY_PASSWORD)
@JacksonXmlProperty(localName = "password")
@XmlElement(name = "password")
private String password;
@JsonProperty("phone")
public static final String JSON_PROPERTY_PHONE = "phone";
@JsonProperty(JSON_PROPERTY_PHONE)
@JacksonXmlProperty(localName = "phone")
@XmlElement(name = "phone")
private String phone;
@JsonProperty("userStatus")
public static final String JSON_PROPERTY_USER_STATUS = "userStatus";
@JsonProperty(JSON_PROPERTY_USER_STATUS)
@JacksonXmlProperty(localName = "userStatus")
@XmlElement(name = "userStatus")
private Integer userStatus;

View File

@@ -34,27 +34,32 @@ import javax.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
@JacksonXmlRootElement(namespace="http://a.com/schema", localName = "XmlItem")
public class XmlItem {
@JsonProperty("attribute_string")
public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string";
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING)
@JacksonXmlProperty(isAttribute = true, localName = "attribute_string")
@XmlAttribute(name = "attribute_string")
private String attributeString;
@JsonProperty("attribute_number")
public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number";
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER)
@JacksonXmlProperty(isAttribute = true, localName = "attribute_number")
@XmlAttribute(name = "attribute_number")
private BigDecimal attributeNumber;
@JsonProperty("attribute_integer")
public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer";
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER)
@JacksonXmlProperty(isAttribute = true, localName = "attribute_integer")
@XmlAttribute(name = "attribute_integer")
private Integer attributeInteger;
@JsonProperty("attribute_boolean")
public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean";
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN)
@JacksonXmlProperty(isAttribute = true, localName = "attribute_boolean")
@XmlAttribute(name = "attribute_boolean")
private Boolean attributeBoolean;
@JsonProperty("wrapped_array")
public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array";
@JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY)
// items.xmlName=
@JacksonXmlElementWrapper(useWrapping = true, localName = "wrappedArray")
// Is a container wrapped=true
@@ -64,34 +69,40 @@ public class XmlItem {
@XmlElementWrapper(name = "wrapped_array")
private List<Integer> wrappedArray = new ArrayList<Integer>();
@JsonProperty("name_string")
public static final String JSON_PROPERTY_NAME_STRING = "name_string";
@JsonProperty(JSON_PROPERTY_NAME_STRING)
@JacksonXmlProperty(localName = "xml_name_string")
@XmlElement(name = "xml_name_string")
private String nameString;
@JsonProperty("name_number")
public static final String JSON_PROPERTY_NAME_NUMBER = "name_number";
@JsonProperty(JSON_PROPERTY_NAME_NUMBER)
@JacksonXmlProperty(localName = "xml_name_number")
@XmlElement(name = "xml_name_number")
private BigDecimal nameNumber;
@JsonProperty("name_integer")
public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer";
@JsonProperty(JSON_PROPERTY_NAME_INTEGER)
@JacksonXmlProperty(localName = "xml_name_integer")
@XmlElement(name = "xml_name_integer")
private Integer nameInteger;
@JsonProperty("name_boolean")
public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean";
@JsonProperty(JSON_PROPERTY_NAME_BOOLEAN)
@JacksonXmlProperty(localName = "xml_name_boolean")
@XmlElement(name = "xml_name_boolean")
private Boolean nameBoolean;
@JsonProperty("name_array")
public static final String JSON_PROPERTY_NAME_ARRAY = "name_array";
@JsonProperty(JSON_PROPERTY_NAME_ARRAY)
// Is a container wrapped=false
// items.name=nameArray items.baseName=nameArray items.xmlName=xml_name_array_item items.xmlNamespace=
// items.example= items.type=Integer
@XmlElement(name = "xml_name_array_item")
private List<Integer> nameArray = new ArrayList<Integer>();
@JsonProperty("name_wrapped_array")
public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array";
@JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY)
// items.xmlName=xml_name_wrapped_array_item
@JacksonXmlElementWrapper(useWrapping = true, localName = "xml_name_wrapped_array_item")
// Is a container wrapped=true
@@ -101,34 +112,40 @@ public class XmlItem {
@XmlElementWrapper(name = "xml_name_wrapped_array")
private List<Integer> nameWrappedArray = new ArrayList<Integer>();
@JsonProperty("prefix_string")
public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string";
@JsonProperty(JSON_PROPERTY_PREFIX_STRING)
@JacksonXmlProperty(localName = "prefix_string")
@XmlElement(name = "prefix_string")
private String prefixString;
@JsonProperty("prefix_number")
public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number";
@JsonProperty(JSON_PROPERTY_PREFIX_NUMBER)
@JacksonXmlProperty(localName = "prefix_number")
@XmlElement(name = "prefix_number")
private BigDecimal prefixNumber;
@JsonProperty("prefix_integer")
public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer";
@JsonProperty(JSON_PROPERTY_PREFIX_INTEGER)
@JacksonXmlProperty(localName = "prefix_integer")
@XmlElement(name = "prefix_integer")
private Integer prefixInteger;
@JsonProperty("prefix_boolean")
public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean";
@JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN)
@JacksonXmlProperty(localName = "prefix_boolean")
@XmlElement(name = "prefix_boolean")
private Boolean prefixBoolean;
@JsonProperty("prefix_array")
public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array";
@JsonProperty(JSON_PROPERTY_PREFIX_ARRAY)
// Is a container wrapped=false
// items.name=prefixArray items.baseName=prefixArray items.xmlName= items.xmlNamespace=
// items.example= items.type=Integer
@XmlElement(name = "prefixArray")
private List<Integer> prefixArray = new ArrayList<Integer>();
@JsonProperty("prefix_wrapped_array")
public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array";
@JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY)
// items.xmlName=
@JacksonXmlElementWrapper(useWrapping = true, localName = "prefixWrappedArray")
// Is a container wrapped=true
@@ -138,34 +155,40 @@ public class XmlItem {
@XmlElementWrapper(name = "prefix_wrapped_array")
private List<Integer> prefixWrappedArray = new ArrayList<Integer>();
@JsonProperty("namespace_string")
public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string";
@JsonProperty(JSON_PROPERTY_NAMESPACE_STRING)
@JacksonXmlProperty(namespace="http://a.com/schema", localName = "namespace_string")
@XmlElement(namespace="http://a.com/schema", name = "namespace_string")
private String namespaceString;
@JsonProperty("namespace_number")
public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number";
@JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER)
@JacksonXmlProperty(namespace="http://b.com/schema", localName = "namespace_number")
@XmlElement(namespace="http://b.com/schema", name = "namespace_number")
private BigDecimal namespaceNumber;
@JsonProperty("namespace_integer")
public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer";
@JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER)
@JacksonXmlProperty(namespace="http://c.com/schema", localName = "namespace_integer")
@XmlElement(namespace="http://c.com/schema", name = "namespace_integer")
private Integer namespaceInteger;
@JsonProperty("namespace_boolean")
public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean";
@JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN)
@JacksonXmlProperty(namespace="http://d.com/schema", localName = "namespace_boolean")
@XmlElement(namespace="http://d.com/schema", name = "namespace_boolean")
private Boolean namespaceBoolean;
@JsonProperty("namespace_array")
public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array";
@JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY)
// Is a container wrapped=false
// items.name=namespaceArray items.baseName=namespaceArray items.xmlName= items.xmlNamespace=http://e.com/schema
// items.example= items.type=Integer
@XmlElement(namespace="http://e.com/schema", name = "namespaceArray")
private List<Integer> namespaceArray = new ArrayList<Integer>();
@JsonProperty("namespace_wrapped_array")
public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array";
@JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY)
// items.xmlName=
@JacksonXmlElementWrapper(useWrapping = true, namespace="http://f.com/schema", localName = "namespaceWrappedArray")
// Is a container wrapped=true
@@ -175,34 +198,40 @@ public class XmlItem {
@XmlElementWrapper(namespace="http://f.com/schema", name = "namespace_wrapped_array")
private List<Integer> namespaceWrappedArray = new ArrayList<Integer>();
@JsonProperty("prefix_ns_string")
public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string";
@JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING)
@JacksonXmlProperty(namespace="http://a.com/schema", localName = "prefix_ns_string")
@XmlElement(namespace="http://a.com/schema", name = "prefix_ns_string")
private String prefixNsString;
@JsonProperty("prefix_ns_number")
public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number";
@JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER)
@JacksonXmlProperty(namespace="http://b.com/schema", localName = "prefix_ns_number")
@XmlElement(namespace="http://b.com/schema", name = "prefix_ns_number")
private BigDecimal prefixNsNumber;
@JsonProperty("prefix_ns_integer")
public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer";
@JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER)
@JacksonXmlProperty(namespace="http://c.com/schema", localName = "prefix_ns_integer")
@XmlElement(namespace="http://c.com/schema", name = "prefix_ns_integer")
private Integer prefixNsInteger;
@JsonProperty("prefix_ns_boolean")
public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean";
@JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN)
@JacksonXmlProperty(namespace="http://d.com/schema", localName = "prefix_ns_boolean")
@XmlElement(namespace="http://d.com/schema", name = "prefix_ns_boolean")
private Boolean prefixNsBoolean;
@JsonProperty("prefix_ns_array")
public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array";
@JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY)
// Is a container wrapped=false
// items.name=prefixNsArray items.baseName=prefixNsArray items.xmlName= items.xmlNamespace=http://e.com/schema
// items.example= items.type=Integer
@XmlElement(namespace="http://e.com/schema", name = "prefixNsArray")
private List<Integer> prefixNsArray = new ArrayList<Integer>();
@JsonProperty("prefix_ns_wrapped_array")
public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array";
@JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY)
// items.xmlName=
@JacksonXmlElementWrapper(useWrapping = true, namespace="http://f.com/schema", localName = "prefixNsWrappedArray")
// Is a container wrapped=true