diff options
13 files changed, 1026 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 | } | ||
diff --git a/test-data/ex-2/error-2.xml b/test-data/ex-2/error-2.xml new file mode 100644 index 0000000..fea2eea --- /dev/null +++ b/test-data/ex-2/error-2.xml | |||
| @@ -0,0 +1,76 @@ | |||
| 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | <Guess-Market xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="GM-EX2-Schema.xsd"> | ||
| 3 | <GM-events> | ||
| 4 | <GM-event name="Mujtaba is Dead"> | ||
| 5 | <id>1</id> | ||
| 6 | <description>This event gambles if Mujtaba is a live or not. it will be determined if he will be shown in public until 31.8.26</description> | ||
| 7 | <commission type="on-purchase">5</commission> | ||
| 8 | <GM-options> | ||
| 9 | <GM-option>Hell Yea !</GM-option> | ||
| 10 | <GM-option>No way !</GM-option> | ||
| 11 | </GM-options> | ||
| 12 | <GM-method> | ||
| 13 | <GM-LMSR> | ||
| 14 | <b>100</b> | ||
| 15 | </GM-LMSR> | ||
| 16 | </GM-method> | ||
| 17 | </GM-event> | ||
| 18 | <GM-event name="World Cap Winner"> | ||
| 19 | <id>2</id> | ||
| 20 | <description>Who do you think will win the world cap ?</description> | ||
| 21 | <commission type="on-close">15</commission> | ||
| 22 | <GM-options> | ||
| 23 | <GM-option>Argentina</GM-option> | ||
| 24 | <GM-option>Spain</GM-option> | ||
| 25 | </GM-options> | ||
| 26 | <GM-method> | ||
| 27 | <GM-order-book allow-mint="true" initial="100" d="1"/> | ||
| 28 | </GM-method> | ||
| 29 | </GM-event> | ||
| 30 | <GM-event name="Earth Quake on Dead Sea"> | ||
| 31 | <id>3</id> | ||
| 32 | <description>Will there be an earth quake on the dead sea until the December 31th 2026</description> | ||
| 33 | <commission type="on-purchase">50</commission> | ||
| 34 | <GM-options> | ||
| 35 | <GM-option>Yes</GM-option> | ||
| 36 | <GM-option>No</GM-option> | ||
| 37 | </GM-options> | ||
| 38 | <GM-method> | ||
| 39 | <GM-order-book allow-mint="false" initial="1000" d="1"/> | ||
| 40 | </GM-method> | ||
| 41 | </GM-event> | ||
| 42 | <GM-event name="Will it rain tomorrow ?"> | ||
| 43 | <id>4</id> | ||
| 44 | <description>Will there be 30 mm of rain tomorrow at Alenbi 283 st by 12:00 PM ?</description> | ||
| 45 | <commission type="on-close">10</commission> | ||
| 46 | <GM-options> | ||
| 47 | <GM-option>Yes</GM-option> | ||
| 48 | <GM-option>No</GM-option> | ||
| 49 | </GM-options> | ||
| 50 | <GM-method> | ||
| 51 | <GM-LMSR> | ||
| 52 | <b>200</b> | ||
| 53 | </GM-LMSR> | ||
| 54 | </GM-method> | ||
| 55 | </GM-event> | ||
| 56 | </GM-events> | ||
| 57 | <GM-users> | ||
| 58 | <GM-user name="Avrum"> | ||
| 59 | <initial-cash>0</initial-cash> | ||
| 60 | <GM-market-maker> | ||
| 61 | <event id="2"/> | ||
| 62 | </GM-market-maker> | ||
| 63 | </GM-user> | ||
| 64 | <GM-user name="Tikva"> | ||
| 65 | <initial-cash>10000</initial-cash> | ||
| 66 | <GM-market-maker> | ||
| 67 | <event id="1"/> | ||
| 68 | <event id="4"/> | ||
| 69 | <event id="3"/> | ||
| 70 | </GM-market-maker> | ||
| 71 | </GM-user> | ||
| 72 | <GM-user name="Menash"> | ||
| 73 | <initial-cash>100</initial-cash> | ||
| 74 | </GM-user> | ||
| 75 | </GM-users> | ||
| 76 | </Guess-Market> | ||
diff --git a/test-data/ex-2/error-3.xml b/test-data/ex-2/error-3.xml new file mode 100644 index 0000000..d022938 --- /dev/null +++ b/test-data/ex-2/error-3.xml | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | <Guess-Market xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="GM-EX2-Schema.xsd"> | ||
| 3 | <GM-events> | ||
| 4 | <GM-event name="Mujtaba is Dead"> | ||
| 5 | <id>1</id> | ||
| 6 | <description>This event gambles if Mujtaba is a live or not. it will be determined if he will be shown in public until 31.8.26</description> | ||
| 7 | <commission type="on-purchase">5</commission> | ||
| 8 | <GM-options> | ||
| 9 | <GM-option>Hell Yea !</GM-option> | ||
| 10 | <GM-option>No way !</GM-option> | ||
| 11 | </GM-options> | ||
| 12 | <GM-method> | ||
| 13 | <GM-LMSR> | ||
| 14 | <b>100</b> | ||
| 15 | </GM-LMSR> | ||
| 16 | </GM-method> | ||
| 17 | </GM-event> | ||
| 18 | <GM-event name="World Cap Winner"> | ||
| 19 | <id>2</id> | ||
| 20 | <description>Who do you think will win the world cap ?</description> | ||
| 21 | <commission type="on-close">15</commission> | ||
| 22 | <GM-options> | ||
| 23 | <GM-option>Argentina</GM-option> | ||
| 24 | <GM-option>Spain</GM-option> | ||
| 25 | </GM-options> | ||
| 26 | <GM-method> | ||
| 27 | <GM-order-book allow-mint="true" initial="100" d="1"/> | ||
| 28 | </GM-method> | ||
| 29 | </GM-event> | ||
| 30 | </GM-events> | ||
| 31 | <GM-users> | ||
| 32 | <GM-user name="Avrum"> | ||
| 33 | <initial-cash>1000</initial-cash> | ||
| 34 | <GM-market-maker> | ||
| 35 | <event id="12"/> | ||
| 36 | </GM-market-maker> | ||
| 37 | </GM-user> | ||
| 38 | <GM-user name="Tikva"> | ||
| 39 | <initial-cash>10000</initial-cash> | ||
| 40 | <GM-market-maker> | ||
| 41 | <event id="1"/> | ||
| 42 | </GM-market-maker> | ||
| 43 | </GM-user> | ||
| 44 | <GM-user name="Menash"> | ||
| 45 | <initial-cash>100</initial-cash> | ||
| 46 | </GM-user> | ||
| 47 | </GM-users> | ||
| 48 | </Guess-Market> | ||
diff --git a/test-data/ex-2/multiple.xml b/test-data/ex-2/multiple.xml new file mode 100644 index 0000000..52c6f6b --- /dev/null +++ b/test-data/ex-2/multiple.xml | |||
| @@ -0,0 +1,76 @@ | |||
| 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | <Guess-Market xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="GM-EX2-Schema.xsd"> | ||
| 3 | <GM-events> | ||
| 4 | <GM-event name="Mujtaba is Dead"> | ||
| 5 | <id>1</id> | ||
| 6 | <description>This event gambles if Mujtaba is a live or not. it will be determined if he will be shown in public until 31.8.26</description> | ||
| 7 | <commission type="on-purchase">5</commission> | ||
| 8 | <GM-options> | ||
| 9 | <GM-option>Hell Yea !</GM-option> | ||
| 10 | <GM-option>No way !</GM-option> | ||
| 11 | </GM-options> | ||
| 12 | <GM-method> | ||
| 13 | <GM-LMSR> | ||
| 14 | <b>100</b> | ||
| 15 | </GM-LMSR> | ||
| 16 | </GM-method> | ||
| 17 | </GM-event> | ||
| 18 | <GM-event name="World Cap Winner"> | ||
| 19 | <id>2</id> | ||
| 20 | <description>Who do you think will win the world cap ?</description> | ||
| 21 | <commission type="on-close">10</commission> | ||
| 22 | <GM-options> | ||
| 23 | <GM-option>Argentina</GM-option> | ||
| 24 | <GM-option>Spain</GM-option> | ||
| 25 | </GM-options> | ||
| 26 | <GM-method> | ||
| 27 | <GM-order-book allow-mint="true" initial="100" d="1"/> | ||
| 28 | </GM-method> | ||
| 29 | </GM-event> | ||
| 30 | <GM-event name="Earth Quake on Dead Sea"> | ||
| 31 | <id>3</id> | ||
| 32 | <description>Will there be an earth quake at the dead sea until the December 31th 2026</description> | ||
| 33 | <commission type="on-purchase">50</commission> | ||
| 34 | <GM-options> | ||
| 35 | <GM-option>Yes</GM-option> | ||
| 36 | <GM-option>No</GM-option> | ||
| 37 | </GM-options> | ||
| 38 | <GM-method> | ||
| 39 | <GM-order-book allow-mint="false" initial="1000" d="1"/> | ||
| 40 | </GM-method> | ||
| 41 | </GM-event> | ||
| 42 | <GM-event name="Will it rain tomorrow ?"> | ||
| 43 | <id>4</id> | ||
| 44 | <description>Will there be 30 mm of rain tomorrow at Alenbi 283 st by 12:00 PM ?</description> | ||
| 45 | <commission type="on-close">10</commission> | ||
| 46 | <GM-options> | ||
| 47 | <GM-option>Yes</GM-option> | ||
| 48 | <GM-option>No</GM-option> | ||
| 49 | </GM-options> | ||
| 50 | <GM-method> | ||
| 51 | <GM-LMSR> | ||
| 52 | <b>200</b> | ||
| 53 | </GM-LMSR> | ||
| 54 | </GM-method> | ||
| 55 | </GM-event> | ||
| 56 | </GM-events> | ||
| 57 | <GM-users> | ||
| 58 | <GM-user name="Avrum"> | ||
| 59 | <initial-cash>1000</initial-cash> | ||
| 60 | <GM-market-maker> | ||
| 61 | <event id="2"/> | ||
| 62 | </GM-market-maker> | ||
| 63 | </GM-user> | ||
| 64 | <GM-user name="Tikva"> | ||
| 65 | <initial-cash>10000</initial-cash> | ||
| 66 | <GM-market-maker> | ||
| 67 | <event id="1"/> | ||
| 68 | <event id="4"/> | ||
| 69 | <event id="3"/> | ||
| 70 | </GM-market-maker> | ||
| 71 | </GM-user> | ||
| 72 | <GM-user name="Menash"> | ||
| 73 | <initial-cash>100</initial-cash> | ||
| 74 | </GM-user> | ||
| 75 | </GM-users> | ||
| 76 | </Guess-Market> | ||
diff --git a/test-data/ex-2/small.xml b/test-data/ex-2/small.xml new file mode 100644 index 0000000..640aa3e --- /dev/null +++ b/test-data/ex-2/small.xml | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | <Guess-Market xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="GM-EX2-Schema.xsd"> | ||
| 3 | <GM-events> | ||
| 4 | <GM-event name="Mujtaba is Dead"> | ||
| 5 | <id>1</id> | ||
| 6 | <description>This event gambles if Mujtaba is a live or not. it will be determined if he will be shown in public until 31.8.26</description> | ||
| 7 | <commission type="on-purchase">5</commission> | ||
| 8 | <GM-options> | ||
| 9 | <GM-option>Hell Yea !</GM-option> | ||
| 10 | <GM-option>No way !</GM-option> | ||
| 11 | </GM-options> | ||
| 12 | <GM-method> | ||
| 13 | <GM-LMSR> | ||
| 14 | <b>100</b> | ||
| 15 | </GM-LMSR> | ||
| 16 | </GM-method> | ||
| 17 | </GM-event> | ||
| 18 | <GM-event name="World Cap Winner"> | ||
| 19 | <id>2</id> | ||
| 20 | <description>Who do you think will win the world cap ?</description> | ||
| 21 | <commission type="on-close">15</commission> | ||
| 22 | <GM-options> | ||
| 23 | <GM-option>Argentina</GM-option> | ||
| 24 | <GM-option>Spain</GM-option> | ||
| 25 | </GM-options> | ||
| 26 | <GM-method> | ||
| 27 | <GM-order-book allow-mint="true" initial="100" d="1"/> | ||
| 28 | </GM-method> | ||
| 29 | </GM-event> | ||
| 30 | </GM-events> | ||
| 31 | <GM-users> | ||
| 32 | <GM-user name="Avrum"> | ||
| 33 | <initial-cash>1000</initial-cash> | ||
| 34 | <GM-market-maker> | ||
| 35 | <event id="2"/> | ||
| 36 | </GM-market-maker> | ||
| 37 | </GM-user> | ||
| 38 | <GM-user name="Tikva"> | ||
| 39 | <initial-cash>10000</initial-cash> | ||
| 40 | <GM-market-maker> | ||
| 41 | <event id="1"/> | ||
| 42 | </GM-market-maker> | ||
| 43 | </GM-user> | ||
| 44 | <GM-user name="Menash"> | ||
| 45 | <initial-cash>100</initial-cash> | ||
| 46 | </GM-user> | ||
| 47 | </GM-users> | ||
| 48 | </Guess-Market> | ||