diff options
| author | Kostya <mail@sartin.in> | 2026-09-06 09:21:37 +0300 |
|---|---|---|
| committer | Kostya <mail@sartin.in> | 2026-09-06 09:21:37 +0300 |
| commit | da82f3b492c3cd36f2e8723632a63a6cc1f4e39b (patch) | |
| tree | 2ea5970e34757332c9a76e410b6f7ea0099e30ef /service/src/main/java/market/guess | |
| parent | c0dde6531e831730c25230097fd85a8a38214101 (diff) | |
| download | guess-market-da82f3b492c3cd36f2e8723632a63a6cc1f4e39b.tar.gz guess-market-da82f3b492c3cd36f2e8723632a63a6cc1f4e39b.tar.xz guess-market-da82f3b492c3cd36f2e8723632a63a6cc1f4e39b.zip | |
catalog: add generated v3 JAXB binding and ex-2 test data
The ex-2 schema describes a nested Guess-Market/GM-events document in
which every event carries its pricing mechanism inline, as either a
GM-LMSR element holding the liquidity parameter b or a GM-order-book
element holding the allow-mint, initial and d attributes, instead of
naming a mechanism and passing its parameters separately.
Add the xjc-generated classes for that schema under catalog.model.v3,
along with the fixtures the loader will be tested against: small.xml
with two events, one per mechanism, multiple.xml with four, and two
negative cases -- error-2.xml, where a market maker is funded with
zero initial cash, and error-3.xml, where a market maker points at
event id 12, which no event declares -- so the cross-reference and
funding checks have something to reject.
The binding covers the GM-events subtree only. The GM-users half of
the document and the per-event id element are not bound yet, so
nothing reads these classes so far.
Diffstat (limited to 'service/src/main/java/market/guess')
9 files changed, 778 insertions, 0 deletions
diff --git a/service/src/main/java/market/guess/service/catalog/model/v3/Commission.java b/service/src/main/java/market/guess/service/catalog/model/v3/Commission.java new file mode 100644 index 0000000..81fcda9 --- /dev/null +++ b/service/src/main/java/market/guess/service/catalog/model/v3/Commission.java | |||
| @@ -0,0 +1,77 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | package market.guess.service.catalog.model.v3; | ||
| 8 | |||
| 9 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 10 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 11 | import jakarta.xml.bind.annotation.XmlAttribute; | ||
| 12 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 13 | import jakarta.xml.bind.annotation.XmlType; | ||
| 14 | import jakarta.xml.bind.annotation.XmlValue; | ||
| 15 | |||
| 16 | /** | ||
| 17 | * Java class for anonymous complex type. | ||
| 18 | * | ||
| 19 | * <p>The following schema fragment specifies the expected content contained within this class. | ||
| 20 | * | ||
| 21 | * <pre>{@code | ||
| 22 | * <complexType> | ||
| 23 | * <simpleContent> | ||
| 24 | * <extension base="<http://www.w3.org/2001/XMLSchema>int"> | ||
| 25 | * <attribute name="type" use="required"> | ||
| 26 | * <simpleType> | ||
| 27 | * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> | ||
| 28 | * <enumeration value="on-close"/> | ||
| 29 | * <enumeration value="on-purchase"/> | ||
| 30 | * </restriction> | ||
| 31 | * </simpleType> | ||
| 32 | * </attribute> | ||
| 33 | * </extension> | ||
| 34 | * </simpleContent> | ||
| 35 | * </complexType> | ||
| 36 | * }</pre> | ||
| 37 | */ | ||
| 38 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 39 | @XmlType( | ||
| 40 | name = "", | ||
| 41 | propOrder = {"value"}) | ||
| 42 | @XmlRootElement(name = "commission") | ||
| 43 | public class Commission { | ||
| 44 | |||
| 45 | @XmlValue protected int value; | ||
| 46 | |||
| 47 | @XmlAttribute(name = "type", required = true) | ||
| 48 | protected String type; | ||
| 49 | |||
| 50 | /** Gets the value of the value property. */ | ||
| 51 | public int getValue() { | ||
| 52 | return value; | ||
| 53 | } | ||
| 54 | |||
| 55 | /** Sets the value of the value property. */ | ||
| 56 | public void setValue(int value) { | ||
| 57 | this.value = value; | ||
| 58 | } | ||
| 59 | |||
| 60 | /** | ||
| 61 | * Gets the value of the type property. | ||
| 62 | * | ||
| 63 | * @return possible object is {@link String } | ||
| 64 | */ | ||
| 65 | public String getType() { | ||
| 66 | return type; | ||
| 67 | } | ||
| 68 | |||
| 69 | /** | ||
| 70 | * Sets the value of the type property. | ||
| 71 | * | ||
| 72 | * @param value allowed object is {@link String } | ||
| 73 | */ | ||
| 74 | public void setType(String value) { | ||
| 75 | this.type = value; | ||
| 76 | } | ||
| 77 | } | ||
diff --git a/service/src/main/java/market/guess/service/catalog/model/v3/GMEvent.java b/service/src/main/java/market/guess/service/catalog/model/v3/GMEvent.java new file mode 100644 index 0000000..be08ef4 --- /dev/null +++ b/service/src/main/java/market/guess/service/catalog/model/v3/GMEvent.java | |||
| @@ -0,0 +1,148 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | package market.guess.service.catalog.model.v3; | ||
| 8 | |||
| 9 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 10 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 11 | import jakarta.xml.bind.annotation.XmlAttribute; | ||
| 12 | import jakarta.xml.bind.annotation.XmlElement; | ||
| 13 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 14 | import jakarta.xml.bind.annotation.XmlType; | ||
| 15 | |||
| 16 | /** | ||
| 17 | * Java class for anonymous complex type. | ||
| 18 | * | ||
| 19 | * <p>The following schema fragment specifies the expected content contained within this class. | ||
| 20 | * | ||
| 21 | * <pre>{@code | ||
| 22 | * <complexType> | ||
| 23 | * <complexContent> | ||
| 24 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 25 | * <sequence> | ||
| 26 | * <element ref="{}description"/> | ||
| 27 | * <element ref="{}commission"/> | ||
| 28 | * <element ref="{}GM-options"/> | ||
| 29 | * <element ref="{}GM-method"/> | ||
| 30 | * </sequence> | ||
| 31 | * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> | ||
| 32 | * </restriction> | ||
| 33 | * </complexContent> | ||
| 34 | * </complexType> | ||
| 35 | * }</pre> | ||
| 36 | */ | ||
| 37 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 38 | @XmlType( | ||
| 39 | name = "", | ||
| 40 | propOrder = {"description", "commission", "gmOptions", "gmMethod"}) | ||
| 41 | @XmlRootElement(name = "GM-event") | ||
| 42 | public class GMEvent { | ||
| 43 | |||
| 44 | @XmlElement(required = true) | ||
| 45 | protected String description; | ||
| 46 | |||
| 47 | @XmlElement(required = true) | ||
| 48 | protected Commission commission; | ||
| 49 | |||
| 50 | @XmlElement(name = "GM-options", required = true) | ||
| 51 | protected GMOptions gmOptions; | ||
| 52 | |||
| 53 | @XmlElement(name = "GM-method", required = true) | ||
| 54 | protected GMMethod gmMethod; | ||
| 55 | |||
| 56 | @XmlAttribute(name = "name", required = true) | ||
| 57 | protected String name; | ||
| 58 | |||
| 59 | /** | ||
| 60 | * Gets the value of the description property. | ||
| 61 | * | ||
| 62 | * @return possible object is {@link String } | ||
| 63 | */ | ||
| 64 | public String getDescription() { | ||
| 65 | return description; | ||
| 66 | } | ||
| 67 | |||
| 68 | /** | ||
| 69 | * Sets the value of the description property. | ||
| 70 | * | ||
| 71 | * @param value allowed object is {@link String } | ||
| 72 | */ | ||
| 73 | public void setDescription(String value) { | ||
| 74 | this.description = value; | ||
| 75 | } | ||
| 76 | |||
| 77 | /** | ||
| 78 | * Gets the value of the commission property. | ||
| 79 | * | ||
| 80 | * @return possible object is {@link Commission } | ||
| 81 | */ | ||
| 82 | public Commission getCommission() { | ||
| 83 | return commission; | ||
| 84 | } | ||
| 85 | |||
| 86 | /** | ||
| 87 | * Sets the value of the commission property. | ||
| 88 | * | ||
| 89 | * @param value allowed object is {@link Commission } | ||
| 90 | */ | ||
| 91 | public void setCommission(Commission value) { | ||
| 92 | this.commission = value; | ||
| 93 | } | ||
| 94 | |||
| 95 | /** | ||
| 96 | * Gets the value of the gmOptions property. | ||
| 97 | * | ||
| 98 | * @return possible object is {@link GMOptions } | ||
| 99 | */ | ||
| 100 | public GMOptions getGMOptions() { | ||
| 101 | return gmOptions; | ||
| 102 | } | ||
| 103 | |||
| 104 | /** | ||
| 105 | * Sets the value of the gmOptions property. | ||
| 106 | * | ||
| 107 | * @param value allowed object is {@link GMOptions } | ||
| 108 | */ | ||
| 109 | public void setGMOptions(GMOptions value) { | ||
| 110 | this.gmOptions = value; | ||
| 111 | } | ||
| 112 | |||
| 113 | /** | ||
| 114 | * Gets the value of the gmMethod property. | ||
| 115 | * | ||
| 116 | * @return possible object is {@link GMMethod } | ||
| 117 | */ | ||
| 118 | public GMMethod getGMMethod() { | ||
| 119 | return gmMethod; | ||
| 120 | } | ||
| 121 | |||
| 122 | /** | ||
| 123 | * Sets the value of the gmMethod property. | ||
| 124 | * | ||
| 125 | * @param value allowed object is {@link GMMethod } | ||
| 126 | */ | ||
| 127 | public void setGMMethod(GMMethod value) { | ||
| 128 | this.gmMethod = value; | ||
| 129 | } | ||
| 130 | |||
| 131 | /** | ||
| 132 | * Gets the value of the name property. | ||
| 133 | * | ||
| 134 | * @return possible object is {@link String } | ||
| 135 | */ | ||
| 136 | public String getName() { | ||
| 137 | return name; | ||
| 138 | } | ||
| 139 | |||
| 140 | /** | ||
| 141 | * Sets the value of the name property. | ||
| 142 | * | ||
| 143 | * @param value allowed object is {@link String } | ||
| 144 | */ | ||
| 145 | public void setName(String value) { | ||
| 146 | this.name = value; | ||
| 147 | } | ||
| 148 | } | ||
diff --git a/service/src/main/java/market/guess/service/catalog/model/v3/GMEvents.java b/service/src/main/java/market/guess/service/catalog/model/v3/GMEvents.java new file mode 100644 index 0000000..a6ee73d --- /dev/null +++ b/service/src/main/java/market/guess/service/catalog/model/v3/GMEvents.java | |||
| @@ -0,0 +1,67 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | package market.guess.service.catalog.model.v3; | ||
| 8 | |||
| 9 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 10 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 11 | import jakarta.xml.bind.annotation.XmlElement; | ||
| 12 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 13 | import jakarta.xml.bind.annotation.XmlType; | ||
| 14 | import java.util.ArrayList; | ||
| 15 | import java.util.List; | ||
| 16 | |||
| 17 | /** | ||
| 18 | * Java class for anonymous complex type. | ||
| 19 | * | ||
| 20 | * <p>The following schema fragment specifies the expected content contained within this class. | ||
| 21 | * | ||
| 22 | * <pre>{@code | ||
| 23 | * <complexType> | ||
| 24 | * <complexContent> | ||
| 25 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 26 | * <sequence> | ||
| 27 | * <element ref="{}GM-event" maxOccurs="unbounded"/> | ||
| 28 | * </sequence> | ||
| 29 | * </restriction> | ||
| 30 | * </complexContent> | ||
| 31 | * </complexType> | ||
| 32 | * }</pre> | ||
| 33 | */ | ||
| 34 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 35 | @XmlType( | ||
| 36 | name = "", | ||
| 37 | propOrder = {"gmEvent"}) | ||
| 38 | @XmlRootElement(name = "GM-events") | ||
| 39 | public class GMEvents { | ||
| 40 | |||
| 41 | @XmlElement(name = "GM-event", required = true) | ||
| 42 | protected List<GMEvent> gmEvent; | ||
| 43 | |||
| 44 | /** | ||
| 45 | * Gets the value of the gmEvent property. | ||
| 46 | * | ||
| 47 | * <p>This accessor method returns a reference to the live list, not a snapshot. Therefore any | ||
| 48 | * modification you make to the returned list will be present inside the JAXB object. This is why | ||
| 49 | * there is not a <CODE>set</CODE> method for the gmEvent property. | ||
| 50 | * | ||
| 51 | * <p>For example, to add a new item, do as follows: | ||
| 52 | * | ||
| 53 | * <pre> | ||
| 54 | * getGMEvent().add(newItem); | ||
| 55 | * </pre> | ||
| 56 | * | ||
| 57 | * <p>Objects of the following type(s) are allowed in the list {@link GMEvent } | ||
| 58 | * | ||
| 59 | * @return The value of the gmEvent property. | ||
| 60 | */ | ||
| 61 | public List<GMEvent> getGMEvent() { | ||
| 62 | if (gmEvent == null) { | ||
| 63 | gmEvent = new ArrayList<>(); | ||
| 64 | } | ||
| 65 | return this.gmEvent; | ||
| 66 | } | ||
| 67 | } | ||
diff --git a/service/src/main/java/market/guess/service/catalog/model/v3/GMLMSR.java b/service/src/main/java/market/guess/service/catalog/model/v3/GMLMSR.java new file mode 100644 index 0000000..415d434 --- /dev/null +++ b/service/src/main/java/market/guess/service/catalog/model/v3/GMLMSR.java | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | package market.guess.service.catalog.model.v3; | ||
| 8 | |||
| 9 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 10 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 11 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 12 | import jakarta.xml.bind.annotation.XmlType; | ||
| 13 | |||
| 14 | /** | ||
| 15 | * Java class for anonymous complex type. | ||
| 16 | * | ||
| 17 | * <p>The following schema fragment specifies the expected content contained within this class. | ||
| 18 | * | ||
| 19 | * <pre>{@code | ||
| 20 | * <complexType> | ||
| 21 | * <complexContent> | ||
| 22 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 23 | * <sequence> | ||
| 24 | * <element ref="{}b"/> | ||
| 25 | * </sequence> | ||
| 26 | * </restriction> | ||
| 27 | * </complexContent> | ||
| 28 | * </complexType> | ||
| 29 | * }</pre> | ||
| 30 | */ | ||
| 31 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 32 | @XmlType( | ||
| 33 | name = "", | ||
| 34 | propOrder = {"b"}) | ||
| 35 | @XmlRootElement(name = "GM-LMSR") | ||
| 36 | public class GMLMSR { | ||
| 37 | |||
| 38 | protected int b; | ||
| 39 | |||
| 40 | /** Gets the value of the b property. */ | ||
| 41 | public int getB() { | ||
| 42 | return b; | ||
| 43 | } | ||
| 44 | |||
| 45 | /** Sets the value of the b property. */ | ||
| 46 | public void setB(int value) { | ||
| 47 | this.b = value; | ||
| 48 | } | ||
| 49 | } | ||
diff --git a/service/src/main/java/market/guess/service/catalog/model/v3/GMMethod.java b/service/src/main/java/market/guess/service/catalog/model/v3/GMMethod.java new file mode 100644 index 0000000..62b9a12 --- /dev/null +++ b/service/src/main/java/market/guess/service/catalog/model/v3/GMMethod.java | |||
| @@ -0,0 +1,81 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | package market.guess.service.catalog.model.v3; | ||
| 8 | |||
| 9 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 10 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 11 | import jakarta.xml.bind.annotation.XmlElement; | ||
| 12 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 13 | import jakarta.xml.bind.annotation.XmlType; | ||
| 14 | |||
| 15 | /** | ||
| 16 | * Java class for anonymous complex type. | ||
| 17 | * | ||
| 18 | * <p>The following schema fragment specifies the expected content contained within this class. | ||
| 19 | * | ||
| 20 | * <pre>{@code | ||
| 21 | * <complexType> | ||
| 22 | * <complexContent> | ||
| 23 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 24 | * <choice> | ||
| 25 | * <element ref="{}GM-LMSR"/> | ||
| 26 | * <element ref="{}GM-order-book"/> | ||
| 27 | * </choice> | ||
| 28 | * </restriction> | ||
| 29 | * </complexContent> | ||
| 30 | * </complexType> | ||
| 31 | * }</pre> | ||
| 32 | */ | ||
| 33 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 34 | @XmlType( | ||
| 35 | name = "", | ||
| 36 | propOrder = {"gmlmsr", "gmOrderBook"}) | ||
| 37 | @XmlRootElement(name = "GM-method") | ||
| 38 | public class GMMethod { | ||
| 39 | |||
| 40 | @XmlElement(name = "GM-LMSR") | ||
| 41 | protected GMLMSR gmlmsr; | ||
| 42 | |||
| 43 | @XmlElement(name = "GM-order-book") | ||
| 44 | protected GMOrderBook gmOrderBook; | ||
| 45 | |||
| 46 | /** | ||
| 47 | * Gets the value of the gmlmsr property. | ||
| 48 | * | ||
| 49 | * @return possible object is {@link GMLMSR } | ||
| 50 | */ | ||
| 51 | public GMLMSR getGMLMSR() { | ||
| 52 | return gmlmsr; | ||
| 53 | } | ||
| 54 | |||
| 55 | /** | ||
| 56 | * Sets the value of the gmlmsr property. | ||
| 57 | * | ||
| 58 | * @param value allowed object is {@link GMLMSR } | ||
| 59 | */ | ||
| 60 | public void setGMLMSR(GMLMSR value) { | ||
| 61 | this.gmlmsr = value; | ||
| 62 | } | ||
| 63 | |||
| 64 | /** | ||
| 65 | * Gets the value of the gmOrderBook property. | ||
| 66 | * | ||
| 67 | * @return possible object is {@link GMOrderBook } | ||
| 68 | */ | ||
| 69 | public GMOrderBook getGMOrderBook() { | ||
| 70 | return gmOrderBook; | ||
| 71 | } | ||
| 72 | |||
| 73 | /** | ||
| 74 | * Sets the value of the gmOrderBook property. | ||
| 75 | * | ||
| 76 | * @param value allowed object is {@link GMOrderBook } | ||
| 77 | */ | ||
| 78 | public void setGMOrderBook(GMOrderBook value) { | ||
| 79 | this.gmOrderBook = value; | ||
| 80 | } | ||
| 81 | } | ||
diff --git a/service/src/main/java/market/guess/service/catalog/model/v3/GMOptions.java b/service/src/main/java/market/guess/service/catalog/model/v3/GMOptions.java new file mode 100644 index 0000000..ebd2968 --- /dev/null +++ b/service/src/main/java/market/guess/service/catalog/model/v3/GMOptions.java | |||
| @@ -0,0 +1,67 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | package market.guess.service.catalog.model.v3; | ||
| 8 | |||
| 9 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 10 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 11 | import jakarta.xml.bind.annotation.XmlElement; | ||
| 12 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 13 | import jakarta.xml.bind.annotation.XmlType; | ||
| 14 | import java.util.ArrayList; | ||
| 15 | import java.util.List; | ||
| 16 | |||
| 17 | /** | ||
| 18 | * Java class for anonymous complex type. | ||
| 19 | * | ||
| 20 | * <p>The following schema fragment specifies the expected content contained within this class. | ||
| 21 | * | ||
| 22 | * <pre>{@code | ||
| 23 | * <complexType> | ||
| 24 | * <complexContent> | ||
| 25 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 26 | * <sequence> | ||
| 27 | * <element ref="{}GM-option" maxOccurs="2"/> | ||
| 28 | * </sequence> | ||
| 29 | * </restriction> | ||
| 30 | * </complexContent> | ||
| 31 | * </complexType> | ||
| 32 | * }</pre> | ||
| 33 | */ | ||
| 34 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 35 | @XmlType( | ||
| 36 | name = "", | ||
| 37 | propOrder = {"gmOption"}) | ||
| 38 | @XmlRootElement(name = "GM-options") | ||
| 39 | public class GMOptions { | ||
| 40 | |||
| 41 | @XmlElement(name = "GM-option", required = true) | ||
| 42 | protected List<String> gmOption; | ||
| 43 | |||
| 44 | /** | ||
| 45 | * Gets the value of the gmOption property. | ||
| 46 | * | ||
| 47 | * <p>This accessor method returns a reference to the live list, not a snapshot. Therefore any | ||
| 48 | * modification you make to the returned list will be present inside the JAXB object. This is why | ||
| 49 | * there is not a <CODE>set</CODE> method for the gmOption property. | ||
| 50 | * | ||
| 51 | * <p>For example, to add a new item, do as follows: | ||
| 52 | * | ||
| 53 | * <pre> | ||
| 54 | * getGMOption().add(newItem); | ||
| 55 | * </pre> | ||
| 56 | * | ||
| 57 | * <p>Objects of the following type(s) are allowed in the list {@link String } | ||
| 58 | * | ||
| 59 | * @return The value of the gmOption property. | ||
| 60 | */ | ||
| 61 | public List<String> getGMOption() { | ||
| 62 | if (gmOption == null) { | ||
| 63 | gmOption = new ArrayList<>(); | ||
| 64 | } | ||
| 65 | return this.gmOption; | ||
| 66 | } | ||
| 67 | } | ||
diff --git a/service/src/main/java/market/guess/service/catalog/model/v3/GMOrderBook.java b/service/src/main/java/market/guess/service/catalog/model/v3/GMOrderBook.java new file mode 100644 index 0000000..b4bdd6c --- /dev/null +++ b/service/src/main/java/market/guess/service/catalog/model/v3/GMOrderBook.java | |||
| @@ -0,0 +1,90 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | package market.guess.service.catalog.model.v3; | ||
| 8 | |||
| 9 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 10 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 11 | import jakarta.xml.bind.annotation.XmlAttribute; | ||
| 12 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 13 | import jakarta.xml.bind.annotation.XmlType; | ||
| 14 | |||
| 15 | /** | ||
| 16 | * Java class for anonymous complex type. | ||
| 17 | * | ||
| 18 | * <p>The following schema fragment specifies the expected content contained within this class. | ||
| 19 | * | ||
| 20 | * <pre>{@code | ||
| 21 | * <complexType> | ||
| 22 | * <complexContent> | ||
| 23 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 24 | * <attribute name="initial" use="required" type="{http://www.w3.org/2001/XMLSchema}int" /> | ||
| 25 | * <attribute name="d" use="required" type="{http://www.w3.org/2001/XMLSchema}int" /> | ||
| 26 | * <attribute name="allow-mint" use="required"> | ||
| 27 | * <simpleType> | ||
| 28 | * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> | ||
| 29 | * <enumeration value="false"/> | ||
| 30 | * <enumeration value="true"/> | ||
| 31 | * </restriction> | ||
| 32 | * </simpleType> | ||
| 33 | * </attribute> | ||
| 34 | * </restriction> | ||
| 35 | * </complexContent> | ||
| 36 | * </complexType> | ||
| 37 | * }</pre> | ||
| 38 | */ | ||
| 39 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 40 | @XmlType(name = "") | ||
| 41 | @XmlRootElement(name = "GM-order-book") | ||
| 42 | public class GMOrderBook { | ||
| 43 | |||
| 44 | @XmlAttribute(name = "initial", required = true) | ||
| 45 | protected int initial; | ||
| 46 | |||
| 47 | @XmlAttribute(name = "d", required = true) | ||
| 48 | protected int d; | ||
| 49 | |||
| 50 | @XmlAttribute(name = "allow-mint", required = true) | ||
| 51 | protected String allowMint; | ||
| 52 | |||
| 53 | /** Gets the value of the initial property. */ | ||
| 54 | public int getInitial() { | ||
| 55 | return initial; | ||
| 56 | } | ||
| 57 | |||
| 58 | /** Sets the value of the initial property. */ | ||
| 59 | public void setInitial(int value) { | ||
| 60 | this.initial = value; | ||
| 61 | } | ||
| 62 | |||
| 63 | /** Gets the value of the d property. */ | ||
| 64 | public int getD() { | ||
| 65 | return d; | ||
| 66 | } | ||
| 67 | |||
| 68 | /** Sets the value of the d property. */ | ||
| 69 | public void setD(int value) { | ||
| 70 | this.d = value; | ||
| 71 | } | ||
| 72 | |||
| 73 | /** | ||
| 74 | * Gets the value of the allowMint property. | ||
| 75 | * | ||
| 76 | * @return possible object is {@link String } | ||
| 77 | */ | ||
| 78 | public String getAllowMint() { | ||
| 79 | return allowMint; | ||
| 80 | } | ||
| 81 | |||
| 82 | /** | ||
| 83 | * Sets the value of the allowMint property. | ||
| 84 | * | ||
| 85 | * @param value allowed object is {@link String } | ||
| 86 | */ | ||
| 87 | public void setAllowMint(String value) { | ||
| 88 | this.allowMint = value; | ||
| 89 | } | ||
| 90 | } | ||
diff --git a/service/src/main/java/market/guess/service/catalog/model/v3/GuessMarket.java b/service/src/main/java/market/guess/service/catalog/model/v3/GuessMarket.java new file mode 100644 index 0000000..0865612 --- /dev/null +++ b/service/src/main/java/market/guess/service/catalog/model/v3/GuessMarket.java | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | package market.guess.service.catalog.model.v3; | ||
| 8 | |||
| 9 | import jakarta.xml.bind.annotation.XmlAccessType; | ||
| 10 | import jakarta.xml.bind.annotation.XmlAccessorType; | ||
| 11 | import jakarta.xml.bind.annotation.XmlElement; | ||
| 12 | import jakarta.xml.bind.annotation.XmlRootElement; | ||
| 13 | import jakarta.xml.bind.annotation.XmlType; | ||
| 14 | |||
| 15 | /** | ||
| 16 | * Java class for anonymous complex type. | ||
| 17 | * | ||
| 18 | * <p>The following schema fragment specifies the expected content contained within this class. | ||
| 19 | * | ||
| 20 | * <pre>{@code | ||
| 21 | * <complexType> | ||
| 22 | * <complexContent> | ||
| 23 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
| 24 | * <sequence> | ||
| 25 | * <element ref="{}GM-events"/> | ||
| 26 | * </sequence> | ||
| 27 | * </restriction> | ||
| 28 | * </complexContent> | ||
| 29 | * </complexType> | ||
| 30 | * }</pre> | ||
| 31 | */ | ||
| 32 | @XmlAccessorType(XmlAccessType.FIELD) | ||
| 33 | @XmlType( | ||
| 34 | name = "", | ||
| 35 | propOrder = {"gmEvents"}) | ||
| 36 | @XmlRootElement(name = "Guess-Market") | ||
| 37 | public class GuessMarket { | ||
| 38 | |||
| 39 | @XmlElement(name = "GM-events", required = true) | ||
| 40 | protected GMEvents gmEvents; | ||
| 41 | |||
| 42 | /** | ||
| 43 | * Gets the value of the gmEvents property. | ||
| 44 | * | ||
| 45 | * @return possible object is {@link GMEvents } | ||
| 46 | */ | ||
| 47 | public GMEvents getGMEvents() { | ||
| 48 | return gmEvents; | ||
| 49 | } | ||
| 50 | |||
| 51 | /** | ||
| 52 | * Sets the value of the gmEvents property. | ||
| 53 | * | ||
| 54 | * @param value allowed object is {@link GMEvents } | ||
| 55 | */ | ||
| 56 | public void setGMEvents(GMEvents value) { | ||
| 57 | this.gmEvents = value; | ||
| 58 | } | ||
| 59 | } | ||
diff --git a/service/src/main/java/market/guess/service/catalog/model/v3/ObjectFactory.java b/service/src/main/java/market/guess/service/catalog/model/v3/ObjectFactory.java new file mode 100644 index 0000000..0fcc285 --- /dev/null +++ b/service/src/main/java/market/guess/service/catalog/model/v3/ObjectFactory.java | |||
| @@ -0,0 +1,140 @@ | |||
| 1 | // | ||
| 2 | // This file was generated by the Eclipse Implementation of JAXB, v4.0.5 | ||
| 3 | // See https://eclipse-ee4j.github.io/jaxb-ri | ||
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. | ||
| 5 | // | ||
| 6 | |||
| 7 | package market.guess.service.catalog.model.v3; | ||
| 8 | |||
| 9 | import jakarta.xml.bind.JAXBElement; | ||
| 10 | import jakarta.xml.bind.annotation.XmlElementDecl; | ||
| 11 | import jakarta.xml.bind.annotation.XmlRegistry; | ||
| 12 | import javax.xml.namespace.QName; | ||
| 13 | |||
| 14 | /** | ||
| 15 | * This object contains factory methods for each Java content interface and Java element interface | ||
| 16 | * generated in the market.guess.service.model.v3 package. | ||
| 17 | * | ||
| 18 | * <p>An ObjectFactory allows you to programmatically construct new instances of the Java | ||
| 19 | * representation for XML content. The Java representation of XML content can consist of schema | ||
| 20 | * derived interfaces and classes representing the binding of schema type definitions, element | ||
| 21 | * declarations and model groups. Factory methods for each of these are provided in this class. | ||
| 22 | */ | ||
| 23 | @XmlRegistry | ||
| 24 | public class ObjectFactory { | ||
| 25 | |||
| 26 | private static final QName _Description_QNAME = new QName("", "description"); | ||
| 27 | private static final QName _B_QNAME = new QName("", "b"); | ||
| 28 | private static final QName _GMOption_QNAME = new QName("", "GM-option"); | ||
| 29 | |||
| 30 | /** | ||
| 31 | * Create a new ObjectFactory that can be used to create new instances of schema derived classes | ||
| 32 | * for package: market.guess.service.model.v3 | ||
| 33 | */ | ||
| 34 | public ObjectFactory() {} | ||
| 35 | |||
| 36 | /** | ||
| 37 | * Create an instance of {@link Commission } | ||
| 38 | * | ||
| 39 | * @return the new instance of {@link Commission } | ||
| 40 | */ | ||
| 41 | public Commission createCommission() { | ||
| 42 | return new Commission(); | ||
| 43 | } | ||
| 44 | |||
| 45 | /** | ||
| 46 | * Create an instance of {@link GuessMarket } | ||
| 47 | * | ||
| 48 | * @return the new instance of {@link GuessMarket } | ||
| 49 | */ | ||
| 50 | public GuessMarket createGuessMarket() { | ||
| 51 | return new GuessMarket(); | ||
| 52 | } | ||
| 53 | |||
| 54 | /** | ||
| 55 | * Create an instance of {@link GMEvents } | ||
| 56 | * | ||
| 57 | * @return the new instance of {@link GMEvents } | ||
| 58 | */ | ||
| 59 | public GMEvents createGMEvents() { | ||
| 60 | return new GMEvents(); | ||
| 61 | } | ||
| 62 | |||
| 63 | /** | ||
| 64 | * Create an instance of {@link GMEvent } | ||
| 65 | * | ||
| 66 | * @return the new instance of {@link GMEvent } | ||
| 67 | */ | ||
| 68 | public GMEvent createGMEvent() { | ||
| 69 | return new GMEvent(); | ||
| 70 | } | ||
| 71 | |||
| 72 | /** | ||
| 73 | * Create an instance of {@link GMOptions } | ||
| 74 | * | ||
| 75 | * @return the new instance of {@link GMOptions } | ||
| 76 | */ | ||
| 77 | public GMOptions createGMOptions() { | ||
| 78 | return new GMOptions(); | ||
| 79 | } | ||
| 80 | |||
| 81 | /** | ||
| 82 | * Create an instance of {@link GMMethod } | ||
| 83 | * | ||
| 84 | * @return the new instance of {@link GMMethod } | ||
| 85 | */ | ||
| 86 | public GMMethod createGMMethod() { | ||
| 87 | return new GMMethod(); | ||
| 88 | } | ||
| 89 | |||
| 90 | /** | ||
| 91 | * Create an instance of {@link GMLMSR } | ||
| 92 | * | ||
| 93 | * @return the new instance of {@link GMLMSR } | ||
| 94 | */ | ||
| 95 | public GMLMSR createGMLMSR() { | ||
| 96 | return new GMLMSR(); | ||
| 97 | } | ||
| 98 | |||
| 99 | /** | ||
| 100 | * Create an instance of {@link GMOrderBook } | ||
| 101 | * | ||
| 102 | * @return the new instance of {@link GMOrderBook } | ||
| 103 | */ | ||
| 104 | public GMOrderBook createGMOrderBook() { | ||
| 105 | return new GMOrderBook(); | ||
| 106 | } | ||
| 107 | |||
| 108 | /** | ||
| 109 | * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} | ||
| 110 | * | ||
| 111 | * @param value Java instance representing xml element's value. | ||
| 112 | * @return the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} | ||
| 113 | */ | ||
| 114 | @XmlElementDecl(namespace = "", name = "description") | ||
| 115 | public JAXBElement<String> createDescription(String value) { | ||
| 116 | return new JAXBElement<>(_Description_QNAME, String.class, null, value); | ||
| 117 | } | ||
| 118 | |||
| 119 | /** | ||
| 120 | * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >} | ||
| 121 | * | ||
| 122 | * @param value Java instance representing xml element's value. | ||
| 123 | * @return the new instance of {@link JAXBElement }{@code <}{@link Integer }{@code >} | ||
| 124 | */ | ||
| 125 | @XmlElementDecl(namespace = "", name = "b") | ||
| 126 | public JAXBElement<Integer> createB(Integer value) { | ||
| 127 | return new JAXBElement<>(_B_QNAME, Integer.class, null, value); | ||
| 128 | } | ||
| 129 | |||
| 130 | /** | ||
| 131 | * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} | ||
| 132 | * | ||
| 133 | * @param value Java instance representing xml element's value. | ||
| 134 | * @return the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} | ||
| 135 | */ | ||
| 136 | @XmlElementDecl(namespace = "", name = "GM-option") | ||
| 137 | public JAXBElement<String> createGMOption(String value) { | ||
| 138 | return new JAXBElement<>(_GMOption_QNAME, String.class, null, value); | ||
| 139 | } | ||
| 140 | } | ||