diff --git a/racevisionGame/src/main/java/mock/app/Event.java b/racevisionGame/src/main/java/mock/app/Event.java index 4d58cc9e..a7ce5099 100644 --- a/racevisionGame/src/main/java/mock/app/Event.java +++ b/racevisionGame/src/main/java/mock/app/Event.java @@ -3,6 +3,7 @@ package mock.app; import mock.dataInput.PolarParser; import mock.model.MockRace; import mock.model.Polars; +import mock.xml.Race; import mock.xml.RaceXMLCreator; import network.Messages.LatestMessages; import org.xml.sax.SAXException; @@ -13,6 +14,7 @@ import shared.exceptions.InvalidRaceDataException; import shared.exceptions.InvalidRegattaDataException; import shared.exceptions.XMLReaderException; import shared.model.Constants; +import shared.xml.XMLUtilities; import javax.xml.bind.JAXBException; import javax.xml.parsers.ParserConfigurationException; @@ -53,7 +55,6 @@ public class Event { } catch (ParserConfigurationException e) { e.printStackTrace(); } - System.out.println(this.raceXML); this.boatXML = XMLReader.readXMLFileToString("mock/mockXML/boatsSinglePlayer.xml", StandardCharsets.UTF_8); this.regattaXML = XMLReader.readXMLFileToString("mock/mockXML/regattaTest.xml", StandardCharsets.UTF_8); this.xmlFileType = XMLFileType.Contents; @@ -95,18 +96,21 @@ public class Event { * @throws InvalidBoatDataException Thrown if the boat xml file cannot be parsed. * @throws InvalidRegattaDataException Thrown if the regatta xml file cannot be parsed. */ - public void start() throws InvalidRaceDataException, XMLReaderException, InvalidBoatDataException, InvalidRegattaDataException { + public void start() throws InvalidRaceDataException, XMLReaderException, InvalidBoatDataException, InvalidRegattaDataException, ParserConfigurationException, JAXBException, SAXException, IOException { new Thread(mockOutput).start(); sendXMLs(); //Parse the XML files into data sources. - RaceDataSource raceDataSource = new RaceXMLReader(this.raceXML, this.xmlFileType); +// RaceDataSource raceDataSource = new RaceXMLReader(this.raceXML, this.xmlFileType); + Race race = (Race) XMLUtilities.xmlToClass(raceXML, + RaceXMLCreator.class.getClassLoader().getResource("mock/mockXML/schema/raceSchema.xsd"), + Race.class); BoatDataSource boatDataSource = new BoatXMLReader(this.boatXML, this.xmlFileType); RegattaDataSource regattaDataSource = new RegattaXMLReader(this.regattaXML, this.xmlFileType); //Create and start race. - MockRace newRace = new MockRace(boatDataSource, raceDataSource, regattaDataSource, this.latestMessages, this.boatPolars, Constants.RaceTimeScale); + MockRace newRace = new MockRace(boatDataSource, race, regattaDataSource, this.latestMessages, this.boatPolars, Constants.RaceTimeScale); new Thread(newRace).start(); } diff --git a/racevisionGame/src/main/java/mock/model/MockRace.java b/racevisionGame/src/main/java/mock/model/MockRace.java index ad259bdc..739eb29f 100644 --- a/racevisionGame/src/main/java/mock/model/MockRace.java +++ b/racevisionGame/src/main/java/mock/model/MockRace.java @@ -1,6 +1,7 @@ package mock.model; import javafx.animation.AnimationTimer; +import mock.xml.*; import network.Messages.BoatLocation; import network.Messages.BoatStatus; import network.Messages.Enums.BoatStatusEnum; @@ -12,6 +13,7 @@ import shared.dataInput.RaceDataSource; import network.Messages.Enums.RaceStatusEnum; import shared.dataInput.RegattaDataSource; import shared.model.*; +import shared.model.Race; import java.time.ZonedDateTime; import java.time.temporal.ChronoUnit; @@ -88,7 +90,7 @@ public class MockRace extends Race { * @param polars The polars table to be used for boat simulation. * @param timeScale The timeScale for the race. See {@link Constants#RaceTimeScale}. */ - public MockRace(BoatDataSource boatDataSource, RaceDataSource raceDataSource, RegattaDataSource regattaDataSource, LatestMessages latestMessages, Polars polars, int timeScale) { + public MockRace(BoatDataSource boatDataSource, mock.xml.Race raceDataSource, RegattaDataSource regattaDataSource, LatestMessages latestMessages, Polars polars, int timeScale) { super(boatDataSource, raceDataSource, regattaDataSource, latestMessages); diff --git a/racevisionGame/src/main/java/mock/xml/Race.java b/racevisionGame/src/main/java/mock/xml/Race.java index a8c7696a..0b32bd09 100644 --- a/racevisionGame/src/main/java/mock/xml/Race.java +++ b/racevisionGame/src/main/java/mock/xml/Race.java @@ -2,12 +2,13 @@ // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See http://java.sun.com/xml/jaxb // Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2017.08.03 at 02:28:57 AM NZST +// Generated on: 2017.08.13 at 10:39:29 PM NZST // package mock.xml; +import java.math.BigInteger; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; @@ -15,20 +16,21 @@ import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; /** *

Java class for anonymous complex type. - * + * *

The following schema fragment specifies the expected content contained within this class. - * + * *

  * <complexType>
  *   <complexContent>
  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  *       <sequence>
- *         <element name="RaceID" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="RaceID" type="{http://www.w3.org/2001/XMLSchema}positiveInteger"/>
  *         <element name="RaceType" type="{http://www.w3.org/2001/XMLSchema}string"/>
  *         <element name="CreationTimeDate" type="{http://www.w3.org/2001/XMLSchema}string"/>
  *         <element name="RaceStartTime">
@@ -51,6 +53,7 @@ import javax.xml.bind.annotation.XmlType;
  *                       <complexContent>
  *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  *                           <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="Entry" type="{http://www.w3.org/2001/XMLSchema}string" />
  *                         </restriction>
  *                       </complexContent>
  *                     </complexType>
@@ -69,8 +72,10 @@ import javax.xml.bind.annotation.XmlType;
  *                     <complexType>
  *                       <complexContent>
  *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *                           <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                           <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+ *                           <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+ *                           <attribute name="Rounding" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="ZoneSize" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
  *                         </restriction>
  *                       </complexContent>
  *                     </complexType>
@@ -141,25 +146,26 @@ import javax.xml.bind.annotation.XmlType;
  *   </complexContent>
  * </complexType>
  * 
- * - * + * + * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { - "raceID", - "raceType", - "creationTimeDate", - "raceStartTime", - "participants", - "compoundMarkSequence", - "course", - "courseLimit" + "raceID", + "raceType", + "creationTimeDate", + "raceStartTime", + "participants", + "compoundMarkSequence", + "course", + "courseLimit" }) @XmlRootElement(name = "Race") public class Race { @XmlElement(name = "RaceID", required = true) - protected String raceID; + @XmlSchemaType(name = "positiveInteger") + protected BigInteger raceID; @XmlElement(name = "RaceType", required = true) protected String raceType; @XmlElement(name = "CreationTimeDate", required = true) @@ -177,35 +183,35 @@ public class Race { /** * Gets the value of the raceID property. - * + * * @return * possible object is - * {@link String } - * + * {@link BigInteger } + * */ - public String getRaceID() { + public BigInteger getRaceID() { return raceID; } /** * Sets the value of the raceID property. - * + * * @param value * allowed object is - * {@link String } - * + * {@link BigInteger } + * */ - public void setRaceID(String value) { + public void setRaceID(BigInteger value) { this.raceID = value; } /** * Gets the value of the raceType property. - * + * * @return * possible object is * {@link String } - * + * */ public String getRaceType() { return raceType; @@ -213,11 +219,11 @@ public class Race { /** * Sets the value of the raceType property. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setRaceType(String value) { this.raceType = value; @@ -225,11 +231,11 @@ public class Race { /** * Gets the value of the creationTimeDate property. - * + * * @return * possible object is * {@link String } - * + * */ public String getCreationTimeDate() { return creationTimeDate; @@ -237,11 +243,11 @@ public class Race { /** * Sets the value of the creationTimeDate property. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setCreationTimeDate(String value) { this.creationTimeDate = value; @@ -249,11 +255,11 @@ public class Race { /** * Gets the value of the raceStartTime property. - * + * * @return * possible object is * {@link Race.RaceStartTime } - * + * */ public Race.RaceStartTime getRaceStartTime() { return raceStartTime; @@ -261,11 +267,11 @@ public class Race { /** * Sets the value of the raceStartTime property. - * + * * @param value * allowed object is * {@link Race.RaceStartTime } - * + * */ public void setRaceStartTime(Race.RaceStartTime value) { this.raceStartTime = value; @@ -273,11 +279,11 @@ public class Race { /** * Gets the value of the participants property. - * + * * @return * possible object is * {@link Race.Participants } - * + * */ public Race.Participants getParticipants() { return participants; @@ -285,11 +291,11 @@ public class Race { /** * Sets the value of the participants property. - * + * * @param value * allowed object is * {@link Race.Participants } - * + * */ public void setParticipants(Race.Participants value) { this.participants = value; @@ -297,11 +303,11 @@ public class Race { /** * Gets the value of the compoundMarkSequence property. - * + * * @return * possible object is * {@link Race.CompoundMarkSequence } - * + * */ public Race.CompoundMarkSequence getCompoundMarkSequence() { return compoundMarkSequence; @@ -309,11 +315,11 @@ public class Race { /** * Sets the value of the compoundMarkSequence property. - * + * * @param value * allowed object is * {@link Race.CompoundMarkSequence } - * + * */ public void setCompoundMarkSequence(Race.CompoundMarkSequence value) { this.compoundMarkSequence = value; @@ -321,11 +327,11 @@ public class Race { /** * Gets the value of the course property. - * + * * @return * possible object is * {@link Race.Course } - * + * */ public Race.Course getCourse() { return course; @@ -333,11 +339,11 @@ public class Race { /** * Sets the value of the course property. - * + * * @param value * allowed object is * {@link Race.Course } - * + * */ public void setCourse(Race.Course value) { this.course = value; @@ -345,11 +351,11 @@ public class Race { /** * Gets the value of the courseLimit property. - * + * * @return * possible object is * {@link Race.CourseLimit } - * + * */ public Race.CourseLimit getCourseLimit() { return courseLimit; @@ -357,11 +363,11 @@ public class Race { /** * Sets the value of the courseLimit property. - * + * * @param value * allowed object is * {@link Race.CourseLimit } - * + * */ public void setCourseLimit(Race.CourseLimit value) { this.courseLimit = value; @@ -370,9 +376,9 @@ public class Race { /** *

Java class for anonymous complex type. - * + * *

The following schema fragment specifies the expected content contained within this class. - * + * *

      * <complexType>
      *   <complexContent>
@@ -382,8 +388,10 @@ public class Race {
      *           <complexType>
      *             <complexContent>
      *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
-     *                 <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                 <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                 <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+     *                 <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+     *                 <attribute name="Rounding" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                 <attribute name="ZoneSize" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
      *               </restriction>
      *             </complexContent>
      *           </complexType>
@@ -393,12 +401,12 @@ public class Race {
      *   </complexContent>
      * </complexType>
      * 
- * - * + * + * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { - "corner" + "corner" }) public static class CompoundMarkSequence { @@ -407,25 +415,25 @@ public class Race { /** * Gets the value of the corner property. - * + * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the corner property. - * + * *

* For example, to add a new item, do as follows: *

          *    getCorner().add(newItem);
          * 
- * - * + * + * *

* Objects of the following type(s) are allowed in the list * {@link Race.CompoundMarkSequence.Corner } - * @return corners in the CompoundMarkSequence. - * + * + * */ public List getCorner() { if (corner == null) { @@ -437,79 +445,136 @@ public class Race { /** *

Java class for anonymous complex type. - * + * *

The following schema fragment specifies the expected content contained within this class. - * + * *

          * <complexType>
          *   <complexContent>
          *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
-         *       <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *       <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *       <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+         *       <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+         *       <attribute name="Rounding" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *       <attribute name="ZoneSize" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
          *     </restriction>
          *   </complexContent>
          * </complexType>
          * 
- * - * + * + * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class Corner { @XmlAttribute(name = "CompoundMarkID", required = true) - protected String compoundMarkID; + @XmlSchemaType(name = "positiveInteger") + protected BigInteger compoundMarkID; @XmlAttribute(name = "SeqID", required = true) - protected String seqID; + @XmlSchemaType(name = "positiveInteger") + protected BigInteger seqID; + @XmlAttribute(name = "Rounding", required = true) + protected String rounding; + @XmlAttribute(name = "ZoneSize", required = true) + @XmlSchemaType(name = "positiveInteger") + protected BigInteger zoneSize; /** * Gets the value of the compoundMarkID property. - * + * * @return * possible object is - * {@link String } - * + * {@link BigInteger } + * */ - public String getCompoundMarkID() { + public BigInteger getCompoundMarkID() { return compoundMarkID; } /** * Sets the value of the compoundMarkID property. - * + * * @param value * allowed object is - * {@link String } - * + * {@link BigInteger } + * */ - public void setCompoundMarkID(String value) { + public void setCompoundMarkID(BigInteger value) { this.compoundMarkID = value; } /** * Gets the value of the seqID property. - * + * * @return * possible object is - * {@link String } - * + * {@link BigInteger } + * */ - public String getSeqID() { + public BigInteger getSeqID() { return seqID; } /** * Sets the value of the seqID property. - * + * * @param value * allowed object is - * {@link String } - * + * {@link BigInteger } + * */ - public void setSeqID(String value) { + public void setSeqID(BigInteger value) { this.seqID = value; } + /** + * Gets the value of the rounding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRounding() { + return rounding; + } + + /** + * Sets the value of the rounding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRounding(String value) { + this.rounding = value; + } + + /** + * Gets the value of the zoneSize property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZoneSize() { + return zoneSize; + } + + /** + * Sets the value of the zoneSize property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZoneSize(BigInteger value) { + this.zoneSize = value; + } + } } @@ -517,9 +582,9 @@ public class Race { /** *

Java class for anonymous complex type. - * + * *

The following schema fragment specifies the expected content contained within this class. - * + * *

      * <complexType>
      *   <complexContent>
@@ -555,12 +620,12 @@ public class Race {
      *   </complexContent>
      * </complexType>
      * 
- * - * + * + * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { - "compoundMark" + "compoundMark" }) public static class Course { @@ -569,25 +634,25 @@ public class Race { /** * Gets the value of the compoundMark property. - * + * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the compoundMark property. - * + * *

* For example, to add a new item, do as follows: *

          *    getCompoundMark().add(newItem);
          * 
- * - * + * + * *

* Objects of the following type(s) are allowed in the list * {@link Race.Course.CompoundMark } - * @return CompoundMarks in a Course - * + * + * */ public List getCompoundMark() { if (compoundMark == null) { @@ -599,9 +664,9 @@ public class Race { /** *

Java class for anonymous complex type. - * + * *

The following schema fragment specifies the expected content contained within this class. - * + * *

          * <complexType>
          *   <complexContent>
@@ -627,12 +692,12 @@ public class Race {
          *   </complexContent>
          * </complexType>
          * 
- * - * + * + * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { - "mark" + "mark" }) public static class CompoundMark { @@ -645,25 +710,25 @@ public class Race { /** * Gets the value of the mark property. - * + * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the mark property. - * + * *

* For example, to add a new item, do as follows: *

              *    getMark().add(newItem);
              * 
- * - * + * + * *

* Objects of the following type(s) are allowed in the list * {@link Race.Course.CompoundMark.Mark } - * @return Marks in a CompoundMark - * + * + * */ public List getMark() { if (mark == null) { @@ -674,11 +739,11 @@ public class Race { /** * Gets the value of the compoundMarkID property. - * + * * @return * possible object is * {@link String } - * + * */ public String getCompoundMarkID() { return compoundMarkID; @@ -686,11 +751,11 @@ public class Race { /** * Sets the value of the compoundMarkID property. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setCompoundMarkID(String value) { this.compoundMarkID = value; @@ -698,11 +763,11 @@ public class Race { /** * Gets the value of the name property. - * + * * @return * possible object is * {@link String } - * + * */ public String getName() { return name; @@ -710,11 +775,11 @@ public class Race { /** * Sets the value of the name property. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setName(String value) { this.name = value; @@ -723,9 +788,9 @@ public class Race { /** *

Java class for anonymous complex type. - * + * *

The following schema fragment specifies the expected content contained within this class. - * + * *

              * <complexType>
              *   <complexContent>
@@ -739,8 +804,8 @@ public class Race {
              *   </complexContent>
              * </complexType>
              * 
- * - * + * + * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") @@ -759,11 +824,11 @@ public class Race { /** * Gets the value of the seqId property. - * + * * @return * possible object is * {@link String } - * + * */ public String getSeqId() { return seqId; @@ -771,11 +836,11 @@ public class Race { /** * Sets the value of the seqId property. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setSeqId(String value) { this.seqId = value; @@ -783,11 +848,11 @@ public class Race { /** * Gets the value of the name property. - * + * * @return * possible object is * {@link String } - * + * */ public String getName() { return name; @@ -795,11 +860,11 @@ public class Race { /** * Sets the value of the name property. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setName(String value) { this.name = value; @@ -807,11 +872,11 @@ public class Race { /** * Gets the value of the targetLat property. - * + * * @return * possible object is * {@link String } - * + * */ public String getTargetLat() { return targetLat; @@ -819,11 +884,11 @@ public class Race { /** * Sets the value of the targetLat property. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setTargetLat(String value) { this.targetLat = value; @@ -831,11 +896,11 @@ public class Race { /** * Gets the value of the targetLng property. - * + * * @return * possible object is * {@link String } - * + * */ public String getTargetLng() { return targetLng; @@ -843,11 +908,11 @@ public class Race { /** * Sets the value of the targetLng property. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setTargetLng(String value) { this.targetLng = value; @@ -855,11 +920,11 @@ public class Race { /** * Gets the value of the sourceID property. - * + * * @return * possible object is * {@link String } - * + * */ public String getSourceID() { return sourceID; @@ -867,11 +932,11 @@ public class Race { /** * Sets the value of the sourceID property. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setSourceID(String value) { this.sourceID = value; @@ -886,9 +951,9 @@ public class Race { /** *

Java class for anonymous complex type. - * + * *

The following schema fragment specifies the expected content contained within this class. - * + * *

      * <complexType>
      *   <complexContent>
@@ -910,12 +975,12 @@ public class Race {
      *   </complexContent>
      * </complexType>
      * 
- * - * + * + * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { - "limit" + "limit" }) public static class CourseLimit { @@ -924,25 +989,25 @@ public class Race { /** * Gets the value of the limit property. - * + * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the limit property. - * + * *

* For example, to add a new item, do as follows: *

          *    getLimit().add(newItem);
          * 
- * - * + * + * *

* Objects of the following type(s) are allowed in the list * {@link Race.CourseLimit.Limit } - * @return Limits in CourseLimits - * + * + * */ public List getLimit() { if (limit == null) { @@ -954,9 +1019,9 @@ public class Race { /** *

Java class for anonymous complex type. - * + * *

The following schema fragment specifies the expected content contained within this class. - * + * *

          * <complexType>
          *   <complexContent>
@@ -968,8 +1033,8 @@ public class Race {
          *   </complexContent>
          * </complexType>
          * 
- * - * + * + * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") @@ -984,11 +1049,11 @@ public class Race { /** * Gets the value of the lat property. - * + * * @return * possible object is * {@link String } - * + * */ public String getLat() { return lat; @@ -996,11 +1061,11 @@ public class Race { /** * Sets the value of the lat property. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setLat(String value) { this.lat = value; @@ -1008,11 +1073,11 @@ public class Race { /** * Gets the value of the lon property. - * + * * @return * possible object is * {@link String } - * + * */ public String getLon() { return lon; @@ -1020,11 +1085,11 @@ public class Race { /** * Sets the value of the lon property. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setLon(String value) { this.lon = value; @@ -1032,11 +1097,11 @@ public class Race { /** * Gets the value of the seqID property. - * + * * @return * possible object is * {@link String } - * + * */ public String getSeqID() { return seqID; @@ -1044,11 +1109,11 @@ public class Race { /** * Sets the value of the seqID property. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setSeqID(String value) { this.seqID = value; @@ -1061,9 +1126,9 @@ public class Race { /** *

Java class for anonymous complex type. - * + * *

The following schema fragment specifies the expected content contained within this class. - * + * *

      * <complexType>
      *   <complexContent>
@@ -1074,6 +1139,7 @@ public class Race {
      *             <complexContent>
      *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      *                 <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                 <attribute name="Entry" type="{http://www.w3.org/2001/XMLSchema}string" />
      *               </restriction>
      *             </complexContent>
      *           </complexType>
@@ -1083,12 +1149,12 @@ public class Race {
      *   </complexContent>
      * </complexType>
      * 
- * - * + * + * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { - "yacht" + "yacht" }) public static class Participants { @@ -1097,25 +1163,25 @@ public class Race { /** * Gets the value of the yacht property. - * + * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the yacht property. - * + * *

* For example, to add a new item, do as follows: *

          *    getYacht().add(newItem);
          * 
- * - * + * + * *

* Objects of the following type(s) are allowed in the list * {@link Race.Participants.Yacht } - * @return yachts in a race. - * + * + * */ public List getYacht() { if (yacht == null) { @@ -1127,20 +1193,21 @@ public class Race { /** *

Java class for anonymous complex type. - * + * *

The following schema fragment specifies the expected content contained within this class. - * + * *

          * <complexType>
          *   <complexContent>
          *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
          *       <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *       <attribute name="Entry" type="{http://www.w3.org/2001/XMLSchema}string" />
          *     </restriction>
          *   </complexContent>
          * </complexType>
          * 
- * - * + * + * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") @@ -1148,14 +1215,16 @@ public class Race { @XmlAttribute(name = "SourceID", required = true) protected String sourceID; + @XmlAttribute(name = "Entry") + protected String entry; /** * Gets the value of the sourceID property. - * + * * @return * possible object is * {@link String } - * + * */ public String getSourceID() { return sourceID; @@ -1163,16 +1232,40 @@ public class Race { /** * Sets the value of the sourceID property. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setSourceID(String value) { this.sourceID = value; } + /** + * Gets the value of the entry property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEntry() { + return entry; + } + + /** + * Sets the value of the entry property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEntry(String value) { + this.entry = value; + } + } } @@ -1180,9 +1273,9 @@ public class Race { /** *

Java class for anonymous complex type. - * + * *

The following schema fragment specifies the expected content contained within this class. - * + * *

      * <complexType>
      *   <complexContent>
@@ -1193,8 +1286,8 @@ public class Race {
      *   </complexContent>
      * </complexType>
      * 
- * - * + * + * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") @@ -1207,11 +1300,11 @@ public class Race { /** * Gets the value of the postpone property. - * + * * @return * possible object is * {@link String } - * + * */ public String getPostpone() { return postpone; @@ -1219,11 +1312,11 @@ public class Race { /** * Sets the value of the postpone property. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setPostpone(String value) { this.postpone = value; @@ -1231,11 +1324,11 @@ public class Race { /** * Gets the value of the time property. - * + * * @return * possible object is * {@link String } - * + * */ public String getTime() { return time; @@ -1243,11 +1336,11 @@ public class Race { /** * Sets the value of the time property. - * + * * @param value * allowed object is * {@link String } - * + * */ public void setTime(String value) { this.time = value; @@ -1255,4 +1348,4 @@ public class Race { } -} +} \ No newline at end of file diff --git a/racevisionGame/src/main/java/mock/xml/RaceFactory.java b/racevisionGame/src/main/java/mock/xml/RaceFactory.java index cdebfcc7..24223f74 100644 --- a/racevisionGame/src/main/java/mock/xml/RaceFactory.java +++ b/racevisionGame/src/main/java/mock/xml/RaceFactory.java @@ -2,7 +2,7 @@ // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See http://java.sun.com/xml/jaxb // Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2017.08.03 at 01:07:33 AM NZST +// Generated on: 2017.08.13 at 10:39:29 PM NZST // @@ -12,33 +12,33 @@ import javax.xml.bind.annotation.XmlRegistry; /** - * This object contains factory methods for each - * Java content interface and Java element interface - * generated in the main.java.mock.xml package. - *

An ObjectFactory allows you to programatically - * construct new instances of the Java representation - * for XML content. The Java representation of XML - * content can consist of schema derived interfaces - * and classes representing the binding of schema - * type definitions, element declarations and model - * groups. Factory methods for each of these are + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the scd package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are * provided in this class. - * + * */ @XmlRegistry public class RaceFactory { /** - * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: main.java.mock.xml - * + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: scd + * */ public RaceFactory() { } /** * Create an instance of {@link Race } - * @return new Race instance + * */ public Race createRace() { return new Race(); @@ -46,7 +46,7 @@ public class RaceFactory { /** * Create an instance of {@link Race.CourseLimit } - * @return new RaceCourseLimit Instance + * */ public Race.CourseLimit createRaceCourseLimit() { return new Race.CourseLimit(); @@ -54,7 +54,7 @@ public class RaceFactory { /** * Create an instance of {@link Race.Course } - * @return new Course Instance + * */ public Race.Course createRaceCourse() { return new Race.Course(); @@ -62,7 +62,7 @@ public class RaceFactory { /** * Create an instance of {@link Race.Course.CompoundMark } - * @return new CompoundMark Instance + * */ public Race.Course.CompoundMark createRaceCourseCompoundMark() { return new Race.Course.CompoundMark(); @@ -70,7 +70,7 @@ public class RaceFactory { /** * Create an instance of {@link Race.CompoundMarkSequence } - * @return new CompoundMarkSequence Instance + * */ public Race.CompoundMarkSequence createRaceCompoundMarkSequence() { return new Race.CompoundMarkSequence(); @@ -78,7 +78,7 @@ public class RaceFactory { /** * Create an instance of {@link Race.Participants } - * @return new Race.Participants Instance + * */ public Race.Participants createRaceParticipants() { return new Race.Participants(); @@ -86,7 +86,7 @@ public class RaceFactory { /** * Create an instance of {@link Race.RaceStartTime } - * @return new RaceStartTime instance + * */ public Race.RaceStartTime createRaceRaceStartTime() { return new Race.RaceStartTime(); @@ -94,7 +94,7 @@ public class RaceFactory { /** * Create an instance of {@link Race.CourseLimit.Limit } - * @return new Limit instance + * */ public Race.CourseLimit.Limit createRaceCourseLimitLimit() { return new Race.CourseLimit.Limit(); @@ -102,7 +102,7 @@ public class RaceFactory { /** * Create an instance of {@link Race.Course.CompoundMark.Mark } - * @return new CompoundMark.Mark instance + * */ public Race.Course.CompoundMark.Mark createRaceCourseCompoundMarkMark() { return new Race.Course.CompoundMark.Mark(); @@ -110,7 +110,7 @@ public class RaceFactory { /** * Create an instance of {@link Race.CompoundMarkSequence.Corner } - * @return new Race.CompoundMarkSequence.Corner instance + * */ public Race.CompoundMarkSequence.Corner createRaceCompoundMarkSequenceCorner() { return new Race.CompoundMarkSequence.Corner(); @@ -118,10 +118,10 @@ public class RaceFactory { /** * Create an instance of {@link Race.Participants.Yacht } - * @return new Race.Participants.Yacht Instance. + * */ public Race.Participants.Yacht createRaceParticipantsYacht() { return new Race.Participants.Yacht(); } -} +} \ No newline at end of file diff --git a/racevisionGame/src/main/java/mock/xml/RaceXMLCreator.java b/racevisionGame/src/main/java/mock/xml/RaceXMLCreator.java index 498bd0bd..155f3644 100644 --- a/racevisionGame/src/main/java/mock/xml/RaceXMLCreator.java +++ b/racevisionGame/src/main/java/mock/xml/RaceXMLCreator.java @@ -10,6 +10,7 @@ import shared.model.CompoundMark; import shared.model.Corner; import shared.model.GPSCoordinate; import shared.model.Mark; +import shared.xml.XMLUtilities; import javax.xml.XMLConstants; import javax.xml.bind.JAXBContext; @@ -157,7 +158,9 @@ public class RaceXMLCreator { public static String alterRaceToWind(String s, double degrees) throws XMLReaderException, InvalidRaceDataException, JAXBException, IOException, SAXException, ParserConfigurationException { RaceXMLReader reader = new RaceXMLReader(s, XMLFileType.ResourcePath); - Race race = readRace(RaceXMLCreator.class.getClassLoader().getResource(s).getFile()); + Race race = (Race) XMLUtilities.xmlToClass(new File(RaceXMLCreator.class.getClassLoader().getResource(s).getFile()), + RaceXMLCreator.class.getClassLoader().getResource("mock/mockXML/schema/raceSchema.xsd"), + Race.class); double raceOriginalBearing = getLineAngle(getLeewardGate(reader).getMark1Position(), getWindwardGate(reader).getMark1Position()); @@ -262,33 +265,4 @@ public class RaceXMLCreator { return Math.atan2(dy, dx)/Math.PI * 180; } - public static Race readRace(String file) throws IOException, SAXException, JAXBException, ParserConfigurationException { - //validateRace(file); - - DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder(); - Document document = parser.parse(new File(file)); - - JAXBContext jc = JAXBContext.newInstance(Race.class); - Unmarshaller unmarshaller = jc.createUnmarshaller(); - - SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); - URL schemaURL = RaceXMLCreator.class.getClassLoader().getResource("mock/mockXML/schema/raceSchema.xsd");// The URL to your XML Schema; - Schema schema = sf.newSchema(schemaURL); - unmarshaller.setSchema(schema); - - return (Race) unmarshaller.unmarshal(new DOMSource(document)); - } - - public static boolean validateRace(String file) throws SAXException, IOException, ParserConfigurationException { - DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder(); - Document document = parser.parse(new File(file)); - - SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); - URL schemaURL = RaceXMLCreator.class.getClassLoader().getResource("mock/mockXML/schema/raceSchema.xsd");// The URL to your XML Schema; - Schema schema = sf.newSchema(schemaURL); - Validator validator = schema.newValidator(); - validator.validate(new DOMSource(document)); - return true; - } - } diff --git a/racevisionGame/src/main/java/shared/model/Race.java b/racevisionGame/src/main/java/shared/model/Race.java index 415e9f77..6f428ad0 100644 --- a/racevisionGame/src/main/java/shared/model/Race.java +++ b/racevisionGame/src/main/java/shared/model/Race.java @@ -23,7 +23,7 @@ public abstract class Race implements Runnable { /** * The source of race related data. */ - protected RaceDataSource raceDataSource; + protected mock.xml.Race raceDataSource; /** * The source of boat related data. @@ -134,7 +134,7 @@ public abstract class Race implements Runnable { * @param regattaDataSource Data source for race related data (course name, location, timezone, etc...). * @param latestMessages The collection of latest messages, which can be written to, or read from. */ - public Race(BoatDataSource boatDataSource, RaceDataSource raceDataSource, RegattaDataSource regattaDataSource, LatestMessages latestMessages) { + public Race(BoatDataSource boatDataSource, mock.xml.Race raceDataSource, RegattaDataSource regattaDataSource, LatestMessages latestMessages) { //Keep a reference to data sources. this.raceDataSource = raceDataSource; diff --git a/racevisionGame/src/main/java/shared/xml/XMLUtilities.java b/racevisionGame/src/main/java/shared/xml/XMLUtilities.java index b865b230..78ed493d 100644 --- a/racevisionGame/src/main/java/shared/xml/XMLUtilities.java +++ b/racevisionGame/src/main/java/shared/xml/XMLUtilities.java @@ -1,9 +1,26 @@ package shared.xml; +import mock.xml.Race; +import mock.xml.RaceXMLCreator; +import org.w3c.dom.Document; +import org.xml.sax.SAXException; + +import javax.xml.XMLConstants; import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; import javax.xml.bind.Marshaller; +import javax.xml.bind.Unmarshaller; +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; +import javax.xml.parsers.ParserConfigurationException; +import javax.xml.transform.dom.DOMSource; +import javax.xml.validation.Schema; +import javax.xml.validation.SchemaFactory; +import javax.xml.validation.Validator; +import java.io.File; +import java.io.IOException; import java.io.StringWriter; +import java.net.URL; /** * Created by fwy13 on 13/08/17. @@ -21,16 +38,49 @@ public class XMLUtilities { return sw.toString(); } - public static String xmlToClass(){ -// JAXBContext jc = JAXBContext.newInstance(YourXMLClass.class); -// Unmarshaller unmarshaller = jc.createUnmarshaller(); -// -// SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); -// URL schemaURL = // The URL to your XML Schema; -// Schema schema = sf.newSchema(schemaURL); -// unmarshaller.setSchema(schema); -// -// YourXMLClass yourXMLClass = (YourXMLClass) unmarshaller.unmarshal(xml); + public static Object xmlToClass(File file, URL schemaURL, Class c) throws ParserConfigurationException, IOException, SAXException, JAXBException { + DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder(); + Document document = parser.parse(file); + + return xmlToClass(document, schemaURL, c); } + public static Object xmlToClass(String xml, URL schemaURL, Class c) throws ParserConfigurationException, IOException, SAXException, JAXBException { + DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder(); + Document document = parser.parse(xml); + + return xmlToClass(document, schemaURL, c); + } + + public static Object xmlToClass(Document document, URL schemaURL, Class c) throws ParserConfigurationException, IOException, SAXException, JAXBException { + JAXBContext jc = JAXBContext.newInstance(c); + Unmarshaller unmarshaller = jc.createUnmarshaller(); + + SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); + Schema schema = sf.newSchema(schemaURL); + unmarshaller.setSchema(schema); + + return unmarshaller.unmarshal(new DOMSource(document)); + } + + public static boolean validateXML(String file, URL schemaURL){ + try { + DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder(); + Document document = parser.parse(new File(file)); + + SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); + Schema schema = sf.newSchema(schemaURL); + Validator validator = schema.newValidator(); + validator.validate(new DOMSource(document)); + } catch (ParserConfigurationException e) { + return false; + } catch (IOException e) { + return false; + } catch (SAXException e) { + return false; + } + return true; + } + + } diff --git a/racevisionGame/src/main/resources/mock/mockXML/raceSchemaTest.xml b/racevisionGame/src/main/resources/mock/mockXML/raceSchemaTest.xml index 344279ff..168e3c31 100644 --- a/racevisionGame/src/main/resources/mock/mockXML/raceSchemaTest.xml +++ b/racevisionGame/src/main/resources/mock/mockXML/raceSchemaTest.xml @@ -8,12 +8,12 @@ - - - - - - + + + + + + diff --git a/racevisionGame/src/main/resources/mock/mockXML/schema/binding.xml b/racevisionGame/src/main/resources/mock/mockXML/schema/binding.xml new file mode 100644 index 00000000..b1d2a55e --- /dev/null +++ b/racevisionGame/src/main/resources/mock/mockXML/schema/binding.xml @@ -0,0 +1,6 @@ + + + diff --git a/racevisionGame/src/main/resources/mock/mockXML/schema/generated/ObjectFactory.java b/racevisionGame/src/main/resources/mock/mockXML/schema/generated/ObjectFactory.java new file mode 100644 index 00000000..3a391bcd --- /dev/null +++ b/racevisionGame/src/main/resources/mock/mockXML/schema/generated/ObjectFactory.java @@ -0,0 +1,127 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2017.08.13 at 11:00:04 PM NZST +// + + +package generated; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the generated package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: generated + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link Race } + * + */ + public Race createRace() { + return new Race(); + } + + /** + * Create an instance of {@link Race.CourseLimit } + * + */ + public Race.CourseLimit createRaceCourseLimit() { + return new Race.CourseLimit(); + } + + /** + * Create an instance of {@link Race.Course } + * + */ + public Race.Course createRaceCourse() { + return new Race.Course(); + } + + /** + * Create an instance of {@link Race.Course.CompoundMark } + * + */ + public Race.Course.CompoundMark createRaceCourseCompoundMark() { + return new Race.Course.CompoundMark(); + } + + /** + * Create an instance of {@link Race.CompoundMarkSequence } + * + */ + public Race.CompoundMarkSequence createRaceCompoundMarkSequence() { + return new Race.CompoundMarkSequence(); + } + + /** + * Create an instance of {@link Race.Participants } + * + */ + public Race.Participants createRaceParticipants() { + return new Race.Participants(); + } + + /** + * Create an instance of {@link Race.RaceStartTime } + * + */ + public Race.RaceStartTime createRaceRaceStartTime() { + return new Race.RaceStartTime(); + } + + /** + * Create an instance of {@link Race.CourseLimit.Limit } + * + */ + public Race.CourseLimit.Limit createRaceCourseLimitLimit() { + return new Race.CourseLimit.Limit(); + } + + /** + * Create an instance of {@link Race.Course.CompoundMark.Mark } + * + */ + public Race.Course.CompoundMark.Mark createRaceCourseCompoundMarkMark() { + return new Race.Course.CompoundMark.Mark(); + } + + /** + * Create an instance of {@link Race.CompoundMarkSequence.Corner } + * + */ + public Race.CompoundMarkSequence.Corner createRaceCompoundMarkSequenceCorner() { + return new Race.CompoundMarkSequence.Corner(); + } + + /** + * Create an instance of {@link Race.Participants.Yacht } + * + */ + public Race.Participants.Yacht createRaceParticipantsYacht() { + return new Race.Participants.Yacht(); + } + +} diff --git a/racevisionGame/src/main/resources/mock/mockXML/schema/generated/Race.java b/racevisionGame/src/main/resources/mock/mockXML/schema/generated/Race.java new file mode 100644 index 00000000..07598160 --- /dev/null +++ b/racevisionGame/src/main/resources/mock/mockXML/schema/generated/Race.java @@ -0,0 +1,1351 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2017.08.13 at 11:00:04 PM NZST +// + + +package generated; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="RaceID" type="{http://www.w3.org/2001/XMLSchema}positiveInteger"/>
+ *         <element name="RaceType" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="CreationTimeDate" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="RaceStartTime">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Postpone" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="Time" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="Participants">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="Yacht" maxOccurs="unbounded">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="Entry" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="CompoundMarkSequence">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="Corner" maxOccurs="unbounded">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+ *                           <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+ *                           <attribute name="Rounding" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="ZoneSize" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="Course">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="CompoundMark" maxOccurs="unbounded">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="Mark" maxOccurs="unbounded">
+ *                               <complexType>
+ *                                 <complexContent>
+ *                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                                     <attribute name="SeqId" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                                     <attribute name="Name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                                     <attribute name="TargetLat" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                                     <attribute name="TargetLng" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                                     <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                                   </restriction>
+ *                                 </complexContent>
+ *                               </complexType>
+ *                             </element>
+ *                           </sequence>
+ *                           <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="Name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="CourseLimit">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="Limit" maxOccurs="unbounded">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <attribute name="Lat" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="Lon" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "raceID", + "raceType", + "creationTimeDate", + "raceStartTime", + "participants", + "compoundMarkSequence", + "course", + "courseLimit" +}) +@XmlRootElement(name = "Race") +public class Race { + + @XmlElement(name = "RaceID", required = true) + @XmlSchemaType(name = "positiveInteger") + protected BigInteger raceID; + @XmlElement(name = "RaceType", required = true) + protected String raceType; + @XmlElement(name = "CreationTimeDate", required = true) + protected String creationTimeDate; + @XmlElement(name = "RaceStartTime", required = true) + protected Race.RaceStartTime raceStartTime; + @XmlElement(name = "Participants", required = true) + protected Race.Participants participants; + @XmlElement(name = "CompoundMarkSequence", required = true) + protected Race.CompoundMarkSequence compoundMarkSequence; + @XmlElement(name = "Course", required = true) + protected Race.Course course; + @XmlElement(name = "CourseLimit", required = true) + protected Race.CourseLimit courseLimit; + + /** + * Gets the value of the raceID property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getRaceID() { + return raceID; + } + + /** + * Sets the value of the raceID property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setRaceID(BigInteger value) { + this.raceID = value; + } + + /** + * Gets the value of the raceType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRaceType() { + return raceType; + } + + /** + * Sets the value of the raceType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRaceType(String value) { + this.raceType = value; + } + + /** + * Gets the value of the creationTimeDate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCreationTimeDate() { + return creationTimeDate; + } + + /** + * Sets the value of the creationTimeDate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCreationTimeDate(String value) { + this.creationTimeDate = value; + } + + /** + * Gets the value of the raceStartTime property. + * + * @return + * possible object is + * {@link Race.RaceStartTime } + * + */ + public Race.RaceStartTime getRaceStartTime() { + return raceStartTime; + } + + /** + * Sets the value of the raceStartTime property. + * + * @param value + * allowed object is + * {@link Race.RaceStartTime } + * + */ + public void setRaceStartTime(Race.RaceStartTime value) { + this.raceStartTime = value; + } + + /** + * Gets the value of the participants property. + * + * @return + * possible object is + * {@link Race.Participants } + * + */ + public Race.Participants getParticipants() { + return participants; + } + + /** + * Sets the value of the participants property. + * + * @param value + * allowed object is + * {@link Race.Participants } + * + */ + public void setParticipants(Race.Participants value) { + this.participants = value; + } + + /** + * Gets the value of the compoundMarkSequence property. + * + * @return + * possible object is + * {@link Race.CompoundMarkSequence } + * + */ + public Race.CompoundMarkSequence getCompoundMarkSequence() { + return compoundMarkSequence; + } + + /** + * Sets the value of the compoundMarkSequence property. + * + * @param value + * allowed object is + * {@link Race.CompoundMarkSequence } + * + */ + public void setCompoundMarkSequence(Race.CompoundMarkSequence value) { + this.compoundMarkSequence = value; + } + + /** + * Gets the value of the course property. + * + * @return + * possible object is + * {@link Race.Course } + * + */ + public Race.Course getCourse() { + return course; + } + + /** + * Sets the value of the course property. + * + * @param value + * allowed object is + * {@link Race.Course } + * + */ + public void setCourse(Race.Course value) { + this.course = value; + } + + /** + * Gets the value of the courseLimit property. + * + * @return + * possible object is + * {@link Race.CourseLimit } + * + */ + public Race.CourseLimit getCourseLimit() { + return courseLimit; + } + + /** + * Sets the value of the courseLimit property. + * + * @param value + * allowed object is + * {@link Race.CourseLimit } + * + */ + public void setCourseLimit(Race.CourseLimit value) { + this.courseLimit = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="Corner" maxOccurs="unbounded">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+     *                 <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+     *                 <attribute name="Rounding" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                 <attribute name="ZoneSize" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "corner" + }) + public static class CompoundMarkSequence { + + @XmlElement(name = "Corner", required = true) + protected List corner; + + /** + * Gets the value of the corner property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the corner property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getCorner().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Race.CompoundMarkSequence.Corner } + * + * + */ + public List getCorner() { + if (corner == null) { + corner = new ArrayList(); + } + return this.corner; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+         *       <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+         *       <attribute name="Rounding" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *       <attribute name="ZoneSize" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Corner { + + @XmlAttribute(name = "CompoundMarkID", required = true) + @XmlSchemaType(name = "positiveInteger") + protected BigInteger compoundMarkID; + @XmlAttribute(name = "SeqID", required = true) + @XmlSchemaType(name = "positiveInteger") + protected BigInteger seqID; + @XmlAttribute(name = "Rounding", required = true) + protected String rounding; + @XmlAttribute(name = "ZoneSize", required = true) + @XmlSchemaType(name = "positiveInteger") + protected BigInteger zoneSize; + + /** + * Gets the value of the compoundMarkID property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getCompoundMarkID() { + return compoundMarkID; + } + + /** + * Sets the value of the compoundMarkID property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setCompoundMarkID(BigInteger value) { + this.compoundMarkID = value; + } + + /** + * Gets the value of the seqID property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getSeqID() { + return seqID; + } + + /** + * Sets the value of the seqID property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setSeqID(BigInteger value) { + this.seqID = value; + } + + /** + * Gets the value of the rounding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRounding() { + return rounding; + } + + /** + * Sets the value of the rounding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRounding(String value) { + this.rounding = value; + } + + /** + * Gets the value of the zoneSize property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZoneSize() { + return zoneSize; + } + + /** + * Sets the value of the zoneSize property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZoneSize(BigInteger value) { + this.zoneSize = value; + } + + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="CompoundMark" maxOccurs="unbounded">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="Mark" maxOccurs="unbounded">
+     *                     <complexType>
+     *                       <complexContent>
+     *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                           <attribute name="SeqId" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                           <attribute name="Name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                           <attribute name="TargetLat" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                           <attribute name="TargetLng" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                           <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                         </restriction>
+     *                       </complexContent>
+     *                     </complexType>
+     *                   </element>
+     *                 </sequence>
+     *                 <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                 <attribute name="Name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "compoundMark" + }) + public static class Course { + + @XmlElement(name = "CompoundMark", required = true) + protected List compoundMark; + + /** + * Gets the value of the compoundMark property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the compoundMark property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getCompoundMark().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Race.Course.CompoundMark } + * + * + */ + public List getCompoundMark() { + if (compoundMark == null) { + compoundMark = new ArrayList(); + } + return this.compoundMark; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <sequence>
+         *         <element name="Mark" maxOccurs="unbounded">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <attribute name="SeqId" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *                 <attribute name="Name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *                 <attribute name="TargetLat" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *                 <attribute name="TargetLng" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *                 <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *       </sequence>
+         *       <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *       <attribute name="Name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "mark" + }) + public static class CompoundMark { + + @XmlElement(name = "Mark", required = true) + protected List mark; + @XmlAttribute(name = "CompoundMarkID", required = true) + protected String compoundMarkID; + @XmlAttribute(name = "Name", required = true) + protected String name; + + /** + * Gets the value of the mark property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the mark property. + * + *

+ * For example, to add a new item, do as follows: + *

+             *    getMark().add(newItem);
+             * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Race.Course.CompoundMark.Mark } + * + * + */ + public List getMark() { + if (mark == null) { + mark = new ArrayList(); + } + return this.mark; + } + + /** + * Gets the value of the compoundMarkID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCompoundMarkID() { + return compoundMarkID; + } + + /** + * Sets the value of the compoundMarkID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCompoundMarkID(String value) { + this.compoundMarkID = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+             * <complexType>
+             *   <complexContent>
+             *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+             *       <attribute name="SeqId" type="{http://www.w3.org/2001/XMLSchema}string" />
+             *       <attribute name="Name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+             *       <attribute name="TargetLat" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+             *       <attribute name="TargetLng" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+             *       <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Mark { + + @XmlAttribute(name = "SeqId") + protected String seqId; + @XmlAttribute(name = "Name", required = true) + protected String name; + @XmlAttribute(name = "TargetLat", required = true) + protected String targetLat; + @XmlAttribute(name = "TargetLng", required = true) + protected String targetLng; + @XmlAttribute(name = "SourceID", required = true) + protected String sourceID; + + /** + * Gets the value of the seqId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSeqId() { + return seqId; + } + + /** + * Sets the value of the seqId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSeqId(String value) { + this.seqId = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the targetLat property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTargetLat() { + return targetLat; + } + + /** + * Sets the value of the targetLat property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTargetLat(String value) { + this.targetLat = value; + } + + /** + * Gets the value of the targetLng property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTargetLng() { + return targetLng; + } + + /** + * Sets the value of the targetLng property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTargetLng(String value) { + this.targetLng = value; + } + + /** + * Gets the value of the sourceID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSourceID() { + return sourceID; + } + + /** + * Sets the value of the sourceID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSourceID(String value) { + this.sourceID = value; + } + + } + + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="Limit" maxOccurs="unbounded">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <attribute name="Lat" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                 <attribute name="Lon" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                 <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "limit" + }) + public static class CourseLimit { + + @XmlElement(name = "Limit", required = true) + protected List limit; + + /** + * Gets the value of the limit property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the limit property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getLimit().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Race.CourseLimit.Limit } + * + * + */ + public List getLimit() { + if (limit == null) { + limit = new ArrayList(); + } + return this.limit; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <attribute name="Lat" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *       <attribute name="Lon" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *       <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Limit { + + @XmlAttribute(name = "Lat", required = true) + protected String lat; + @XmlAttribute(name = "Lon", required = true) + protected String lon; + @XmlAttribute(name = "SeqID", required = true) + protected String seqID; + + /** + * Gets the value of the lat property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLat() { + return lat; + } + + /** + * Sets the value of the lat property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLat(String value) { + this.lat = value; + } + + /** + * Gets the value of the lon property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLon() { + return lon; + } + + /** + * Sets the value of the lon property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLon(String value) { + this.lon = value; + } + + /** + * Gets the value of the seqID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSeqID() { + return seqID; + } + + /** + * Sets the value of the seqID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSeqID(String value) { + this.seqID = value; + } + + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="Yacht" maxOccurs="unbounded">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                 <attribute name="Entry" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "yacht" + }) + public static class Participants { + + @XmlElement(name = "Yacht", required = true) + protected List yacht; + + /** + * Gets the value of the yacht property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the yacht property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getYacht().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Race.Participants.Yacht } + * + * + */ + public List getYacht() { + if (yacht == null) { + yacht = new ArrayList(); + } + return this.yacht; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *       <attribute name="Entry" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Yacht { + + @XmlAttribute(name = "SourceID", required = true) + protected String sourceID; + @XmlAttribute(name = "Entry") + protected String entry; + + /** + * Gets the value of the sourceID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSourceID() { + return sourceID; + } + + /** + * Sets the value of the sourceID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSourceID(String value) { + this.sourceID = value; + } + + /** + * Gets the value of the entry property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEntry() { + return entry; + } + + /** + * Sets the value of the entry property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEntry(String value) { + this.entry = value; + } + + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Postpone" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="Time" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class RaceStartTime { + + @XmlAttribute(name = "Postpone", required = true) + protected String postpone; + @XmlAttribute(name = "Time", required = true) + protected String time; + + /** + * Gets the value of the postpone property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPostpone() { + return postpone; + } + + /** + * Sets the value of the postpone property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPostpone(String value) { + this.postpone = value; + } + + /** + * Gets the value of the time property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTime() { + return time; + } + + /** + * Sets the value of the time property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTime(String value) { + this.time = value; + } + + } + +} diff --git a/racevisionGame/src/main/resources/mock/mockXML/schema/scd/ObjectFactory.java b/racevisionGame/src/main/resources/mock/mockXML/schema/scd/ObjectFactory.java new file mode 100644 index 00000000..2a57580d --- /dev/null +++ b/racevisionGame/src/main/resources/mock/mockXML/schema/scd/ObjectFactory.java @@ -0,0 +1,127 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2017.08.13 at 10:39:29 PM NZST +// + + +package scd; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the scd package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: scd + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link Race } + * + */ + public Race createRace() { + return new Race(); + } + + /** + * Create an instance of {@link Race.CourseLimit } + * + */ + public Race.CourseLimit createRaceCourseLimit() { + return new Race.CourseLimit(); + } + + /** + * Create an instance of {@link Race.Course } + * + */ + public Race.Course createRaceCourse() { + return new Race.Course(); + } + + /** + * Create an instance of {@link Race.Course.CompoundMark } + * + */ + public Race.Course.CompoundMark createRaceCourseCompoundMark() { + return new Race.Course.CompoundMark(); + } + + /** + * Create an instance of {@link Race.CompoundMarkSequence } + * + */ + public Race.CompoundMarkSequence createRaceCompoundMarkSequence() { + return new Race.CompoundMarkSequence(); + } + + /** + * Create an instance of {@link Race.Participants } + * + */ + public Race.Participants createRaceParticipants() { + return new Race.Participants(); + } + + /** + * Create an instance of {@link Race.RaceStartTime } + * + */ + public Race.RaceStartTime createRaceRaceStartTime() { + return new Race.RaceStartTime(); + } + + /** + * Create an instance of {@link Race.CourseLimit.Limit } + * + */ + public Race.CourseLimit.Limit createRaceCourseLimitLimit() { + return new Race.CourseLimit.Limit(); + } + + /** + * Create an instance of {@link Race.Course.CompoundMark.Mark } + * + */ + public Race.Course.CompoundMark.Mark createRaceCourseCompoundMarkMark() { + return new Race.Course.CompoundMark.Mark(); + } + + /** + * Create an instance of {@link Race.CompoundMarkSequence.Corner } + * + */ + public Race.CompoundMarkSequence.Corner createRaceCompoundMarkSequenceCorner() { + return new Race.CompoundMarkSequence.Corner(); + } + + /** + * Create an instance of {@link Race.Participants.Yacht } + * + */ + public Race.Participants.Yacht createRaceParticipantsYacht() { + return new Race.Participants.Yacht(); + } + +} diff --git a/racevisionGame/src/main/resources/mock/mockXML/schema/scd/Race.java b/racevisionGame/src/main/resources/mock/mockXML/schema/scd/Race.java new file mode 100644 index 00000000..77b991a7 --- /dev/null +++ b/racevisionGame/src/main/resources/mock/mockXML/schema/scd/Race.java @@ -0,0 +1,1351 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2017.08.13 at 10:39:29 PM NZST +// + + +package scd; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="RaceID" type="{http://www.w3.org/2001/XMLSchema}positiveInteger"/>
+ *         <element name="RaceType" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="CreationTimeDate" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="RaceStartTime">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Postpone" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="Time" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="Participants">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="Yacht" maxOccurs="unbounded">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="Entry" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="CompoundMarkSequence">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="Corner" maxOccurs="unbounded">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+ *                           <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+ *                           <attribute name="Rounding" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="ZoneSize" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="Course">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="CompoundMark" maxOccurs="unbounded">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="Mark" maxOccurs="unbounded">
+ *                               <complexType>
+ *                                 <complexContent>
+ *                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                                     <attribute name="SeqId" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                                     <attribute name="Name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                                     <attribute name="TargetLat" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                                     <attribute name="TargetLng" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                                     <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                                   </restriction>
+ *                                 </complexContent>
+ *                               </complexType>
+ *                             </element>
+ *                           </sequence>
+ *                           <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="Name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="CourseLimit">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="Limit" maxOccurs="unbounded">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <attribute name="Lat" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="Lon" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "raceID", + "raceType", + "creationTimeDate", + "raceStartTime", + "participants", + "compoundMarkSequence", + "course", + "courseLimit" +}) +@XmlRootElement(name = "Race") +public class Race { + + @XmlElement(name = "RaceID", required = true) + @XmlSchemaType(name = "positiveInteger") + protected BigInteger raceID; + @XmlElement(name = "RaceType", required = true) + protected String raceType; + @XmlElement(name = "CreationTimeDate", required = true) + protected String creationTimeDate; + @XmlElement(name = "RaceStartTime", required = true) + protected Race.RaceStartTime raceStartTime; + @XmlElement(name = "Participants", required = true) + protected Race.Participants participants; + @XmlElement(name = "CompoundMarkSequence", required = true) + protected Race.CompoundMarkSequence compoundMarkSequence; + @XmlElement(name = "Course", required = true) + protected Race.Course course; + @XmlElement(name = "CourseLimit", required = true) + protected Race.CourseLimit courseLimit; + + /** + * Gets the value of the raceID property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getRaceID() { + return raceID; + } + + /** + * Sets the value of the raceID property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setRaceID(BigInteger value) { + this.raceID = value; + } + + /** + * Gets the value of the raceType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRaceType() { + return raceType; + } + + /** + * Sets the value of the raceType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRaceType(String value) { + this.raceType = value; + } + + /** + * Gets the value of the creationTimeDate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCreationTimeDate() { + return creationTimeDate; + } + + /** + * Sets the value of the creationTimeDate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCreationTimeDate(String value) { + this.creationTimeDate = value; + } + + /** + * Gets the value of the raceStartTime property. + * + * @return + * possible object is + * {@link Race.RaceStartTime } + * + */ + public Race.RaceStartTime getRaceStartTime() { + return raceStartTime; + } + + /** + * Sets the value of the raceStartTime property. + * + * @param value + * allowed object is + * {@link Race.RaceStartTime } + * + */ + public void setRaceStartTime(Race.RaceStartTime value) { + this.raceStartTime = value; + } + + /** + * Gets the value of the participants property. + * + * @return + * possible object is + * {@link Race.Participants } + * + */ + public Race.Participants getParticipants() { + return participants; + } + + /** + * Sets the value of the participants property. + * + * @param value + * allowed object is + * {@link Race.Participants } + * + */ + public void setParticipants(Race.Participants value) { + this.participants = value; + } + + /** + * Gets the value of the compoundMarkSequence property. + * + * @return + * possible object is + * {@link Race.CompoundMarkSequence } + * + */ + public Race.CompoundMarkSequence getCompoundMarkSequence() { + return compoundMarkSequence; + } + + /** + * Sets the value of the compoundMarkSequence property. + * + * @param value + * allowed object is + * {@link Race.CompoundMarkSequence } + * + */ + public void setCompoundMarkSequence(Race.CompoundMarkSequence value) { + this.compoundMarkSequence = value; + } + + /** + * Gets the value of the course property. + * + * @return + * possible object is + * {@link Race.Course } + * + */ + public Race.Course getCourse() { + return course; + } + + /** + * Sets the value of the course property. + * + * @param value + * allowed object is + * {@link Race.Course } + * + */ + public void setCourse(Race.Course value) { + this.course = value; + } + + /** + * Gets the value of the courseLimit property. + * + * @return + * possible object is + * {@link Race.CourseLimit } + * + */ + public Race.CourseLimit getCourseLimit() { + return courseLimit; + } + + /** + * Sets the value of the courseLimit property. + * + * @param value + * allowed object is + * {@link Race.CourseLimit } + * + */ + public void setCourseLimit(Race.CourseLimit value) { + this.courseLimit = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="Corner" maxOccurs="unbounded">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+     *                 <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+     *                 <attribute name="Rounding" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                 <attribute name="ZoneSize" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "corner" + }) + public static class CompoundMarkSequence { + + @XmlElement(name = "Corner", required = true) + protected List corner; + + /** + * Gets the value of the corner property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the corner property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getCorner().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Race.CompoundMarkSequence.Corner } + * + * + */ + public List getCorner() { + if (corner == null) { + corner = new ArrayList(); + } + return this.corner; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+         *       <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+         *       <attribute name="Rounding" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *       <attribute name="ZoneSize" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Corner { + + @XmlAttribute(name = "CompoundMarkID", required = true) + @XmlSchemaType(name = "positiveInteger") + protected BigInteger compoundMarkID; + @XmlAttribute(name = "SeqID", required = true) + @XmlSchemaType(name = "positiveInteger") + protected BigInteger seqID; + @XmlAttribute(name = "Rounding", required = true) + protected String rounding; + @XmlAttribute(name = "ZoneSize", required = true) + @XmlSchemaType(name = "positiveInteger") + protected BigInteger zoneSize; + + /** + * Gets the value of the compoundMarkID property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getCompoundMarkID() { + return compoundMarkID; + } + + /** + * Sets the value of the compoundMarkID property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setCompoundMarkID(BigInteger value) { + this.compoundMarkID = value; + } + + /** + * Gets the value of the seqID property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getSeqID() { + return seqID; + } + + /** + * Sets the value of the seqID property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setSeqID(BigInteger value) { + this.seqID = value; + } + + /** + * Gets the value of the rounding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRounding() { + return rounding; + } + + /** + * Sets the value of the rounding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRounding(String value) { + this.rounding = value; + } + + /** + * Gets the value of the zoneSize property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZoneSize() { + return zoneSize; + } + + /** + * Sets the value of the zoneSize property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZoneSize(BigInteger value) { + this.zoneSize = value; + } + + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="CompoundMark" maxOccurs="unbounded">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="Mark" maxOccurs="unbounded">
+     *                     <complexType>
+     *                       <complexContent>
+     *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                           <attribute name="SeqId" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                           <attribute name="Name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                           <attribute name="TargetLat" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                           <attribute name="TargetLng" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                           <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                         </restriction>
+     *                       </complexContent>
+     *                     </complexType>
+     *                   </element>
+     *                 </sequence>
+     *                 <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                 <attribute name="Name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "compoundMark" + }) + public static class Course { + + @XmlElement(name = "CompoundMark", required = true) + protected List compoundMark; + + /** + * Gets the value of the compoundMark property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the compoundMark property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getCompoundMark().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Race.Course.CompoundMark } + * + * + */ + public List getCompoundMark() { + if (compoundMark == null) { + compoundMark = new ArrayList(); + } + return this.compoundMark; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <sequence>
+         *         <element name="Mark" maxOccurs="unbounded">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <attribute name="SeqId" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *                 <attribute name="Name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *                 <attribute name="TargetLat" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *                 <attribute name="TargetLng" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *                 <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *       </sequence>
+         *       <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *       <attribute name="Name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "mark" + }) + public static class CompoundMark { + + @XmlElement(name = "Mark", required = true) + protected List mark; + @XmlAttribute(name = "CompoundMarkID", required = true) + protected String compoundMarkID; + @XmlAttribute(name = "Name", required = true) + protected String name; + + /** + * Gets the value of the mark property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the mark property. + * + *

+ * For example, to add a new item, do as follows: + *

+             *    getMark().add(newItem);
+             * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Race.Course.CompoundMark.Mark } + * + * + */ + public List getMark() { + if (mark == null) { + mark = new ArrayList(); + } + return this.mark; + } + + /** + * Gets the value of the compoundMarkID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCompoundMarkID() { + return compoundMarkID; + } + + /** + * Sets the value of the compoundMarkID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCompoundMarkID(String value) { + this.compoundMarkID = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+             * <complexType>
+             *   <complexContent>
+             *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+             *       <attribute name="SeqId" type="{http://www.w3.org/2001/XMLSchema}string" />
+             *       <attribute name="Name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+             *       <attribute name="TargetLat" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+             *       <attribute name="TargetLng" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+             *       <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Mark { + + @XmlAttribute(name = "SeqId") + protected String seqId; + @XmlAttribute(name = "Name", required = true) + protected String name; + @XmlAttribute(name = "TargetLat", required = true) + protected String targetLat; + @XmlAttribute(name = "TargetLng", required = true) + protected String targetLng; + @XmlAttribute(name = "SourceID", required = true) + protected String sourceID; + + /** + * Gets the value of the seqId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSeqId() { + return seqId; + } + + /** + * Sets the value of the seqId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSeqId(String value) { + this.seqId = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the targetLat property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTargetLat() { + return targetLat; + } + + /** + * Sets the value of the targetLat property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTargetLat(String value) { + this.targetLat = value; + } + + /** + * Gets the value of the targetLng property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTargetLng() { + return targetLng; + } + + /** + * Sets the value of the targetLng property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTargetLng(String value) { + this.targetLng = value; + } + + /** + * Gets the value of the sourceID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSourceID() { + return sourceID; + } + + /** + * Sets the value of the sourceID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSourceID(String value) { + this.sourceID = value; + } + + } + + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="Limit" maxOccurs="unbounded">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <attribute name="Lat" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                 <attribute name="Lon" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                 <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "limit" + }) + public static class CourseLimit { + + @XmlElement(name = "Limit", required = true) + protected List limit; + + /** + * Gets the value of the limit property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the limit property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getLimit().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Race.CourseLimit.Limit } + * + * + */ + public List getLimit() { + if (limit == null) { + limit = new ArrayList(); + } + return this.limit; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <attribute name="Lat" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *       <attribute name="Lon" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *       <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Limit { + + @XmlAttribute(name = "Lat", required = true) + protected String lat; + @XmlAttribute(name = "Lon", required = true) + protected String lon; + @XmlAttribute(name = "SeqID", required = true) + protected String seqID; + + /** + * Gets the value of the lat property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLat() { + return lat; + } + + /** + * Sets the value of the lat property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLat(String value) { + this.lat = value; + } + + /** + * Gets the value of the lon property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLon() { + return lon; + } + + /** + * Sets the value of the lon property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLon(String value) { + this.lon = value; + } + + /** + * Gets the value of the seqID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSeqID() { + return seqID; + } + + /** + * Sets the value of the seqID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSeqID(String value) { + this.seqID = value; + } + + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="Yacht" maxOccurs="unbounded">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                 <attribute name="Entry" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "yacht" + }) + public static class Participants { + + @XmlElement(name = "Yacht", required = true) + protected List yacht; + + /** + * Gets the value of the yacht property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the yacht property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getYacht().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Race.Participants.Yacht } + * + * + */ + public List getYacht() { + if (yacht == null) { + yacht = new ArrayList(); + } + return this.yacht; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *       <attribute name="Entry" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Yacht { + + @XmlAttribute(name = "SourceID", required = true) + protected String sourceID; + @XmlAttribute(name = "Entry") + protected String entry; + + /** + * Gets the value of the sourceID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSourceID() { + return sourceID; + } + + /** + * Sets the value of the sourceID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSourceID(String value) { + this.sourceID = value; + } + + /** + * Gets the value of the entry property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEntry() { + return entry; + } + + /** + * Sets the value of the entry property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEntry(String value) { + this.entry = value; + } + + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="Postpone" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="Time" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class RaceStartTime { + + @XmlAttribute(name = "Postpone", required = true) + protected String postpone; + @XmlAttribute(name = "Time", required = true) + protected String time; + + /** + * Gets the value of the postpone property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPostpone() { + return postpone; + } + + /** + * Sets the value of the postpone property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPostpone(String value) { + this.postpone = value; + } + + /** + * Gets the value of the time property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTime() { + return time; + } + + /** + * Sets the value of the time property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTime(String value) { + this.time = value; + } + + } + +} diff --git a/racevisionGame/src/main/resources/mock/mockXML/schema/schema/CompoundMark.java b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/CompoundMark.java new file mode 100644 index 00000000..965d79b6 --- /dev/null +++ b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/CompoundMark.java @@ -0,0 +1,143 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2017.08.13 at 11:01:23 PM NZST +// + + +package schema; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Mark" maxOccurs="unbounded">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="SeqId" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="Name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="TargetLat" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="TargetLng" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="Name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "mark" +}) +public class CompoundMark { + + @XmlElement(name = "Mark", required = true) + protected List mark; + @XmlAttribute(name = "CompoundMarkID", required = true) + protected String compoundMarkID; + @XmlAttribute(name = "Name", required = true) + protected String name; + + /** + * Gets the value of the mark property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the mark property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMark().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Mark } + * + * + */ + public List getMark() { + if (mark == null) { + mark = new ArrayList(); + } + return this.mark; + } + + /** + * Gets the value of the compoundMarkID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCompoundMarkID() { + return compoundMarkID; + } + + /** + * Sets the value of the compoundMarkID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCompoundMarkID(String value) { + this.compoundMarkID = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + +} diff --git a/racevisionGame/src/main/resources/mock/mockXML/schema/schema/CompoundMarkSequence.java b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/CompoundMarkSequence.java new file mode 100644 index 00000000..6a4edc52 --- /dev/null +++ b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/CompoundMarkSequence.java @@ -0,0 +1,87 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2017.08.13 at 11:01:23 PM NZST +// + + +package schema; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Corner" maxOccurs="unbounded">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+ *                 <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+ *                 <attribute name="Rounding" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ZoneSize" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "corner" +}) +public class CompoundMarkSequence { + + @XmlElement(name = "Corner", required = true) + protected List corner; + + /** + * Gets the value of the corner property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the corner property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCorner().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Corner } + * + * + */ + public List getCorner() { + if (corner == null) { + corner = new ArrayList(); + } + return this.corner; + } + +} diff --git a/racevisionGame/src/main/resources/mock/mockXML/schema/schema/Corner.java b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/Corner.java new file mode 100644 index 00000000..467e9ae6 --- /dev/null +++ b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/Corner.java @@ -0,0 +1,151 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2017.08.13 at 11:01:23 PM NZST +// + + +package schema; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+ *       <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+ *       <attribute name="Rounding" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="ZoneSize" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +public class Corner { + + @XmlAttribute(name = "CompoundMarkID", required = true) + @XmlSchemaType(name = "positiveInteger") + protected BigInteger compoundMarkID; + @XmlAttribute(name = "SeqID", required = true) + @XmlSchemaType(name = "positiveInteger") + protected BigInteger seqID; + @XmlAttribute(name = "Rounding", required = true) + protected String rounding; + @XmlAttribute(name = "ZoneSize", required = true) + @XmlSchemaType(name = "positiveInteger") + protected BigInteger zoneSize; + + /** + * Gets the value of the compoundMarkID property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getCompoundMarkID() { + return compoundMarkID; + } + + /** + * Sets the value of the compoundMarkID property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setCompoundMarkID(BigInteger value) { + this.compoundMarkID = value; + } + + /** + * Gets the value of the seqID property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getSeqID() { + return seqID; + } + + /** + * Sets the value of the seqID property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setSeqID(BigInteger value) { + this.seqID = value; + } + + /** + * Gets the value of the rounding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRounding() { + return rounding; + } + + /** + * Sets the value of the rounding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRounding(String value) { + this.rounding = value; + } + + /** + * Gets the value of the zoneSize property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZoneSize() { + return zoneSize; + } + + /** + * Sets the value of the zoneSize property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZoneSize(BigInteger value) { + this.zoneSize = value; + } + +} diff --git a/racevisionGame/src/main/resources/mock/mockXML/schema/schema/Course.java b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/Course.java new file mode 100644 index 00000000..5c135655 --- /dev/null +++ b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/Course.java @@ -0,0 +1,100 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2017.08.13 at 11:01:23 PM NZST +// + + +package schema; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CompoundMark" maxOccurs="unbounded">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="Mark" maxOccurs="unbounded">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <attribute name="SeqId" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="Name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="TargetLat" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="TargetLng" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *                 <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="Name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "compoundMark" +}) +public class Course { + + @XmlElement(name = "CompoundMark", required = true) + protected List compoundMark; + + /** + * Gets the value of the compoundMark property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the compoundMark property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCompoundMark().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CompoundMark } + * + * + */ + public List getCompoundMark() { + if (compoundMark == null) { + compoundMark = new ArrayList(); + } + return this.compoundMark; + } + +} diff --git a/racevisionGame/src/main/resources/mock/mockXML/schema/schema/CourseLimit.java b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/CourseLimit.java new file mode 100644 index 00000000..2b9c39c8 --- /dev/null +++ b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/CourseLimit.java @@ -0,0 +1,86 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2017.08.13 at 11:01:23 PM NZST +// + + +package schema; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Limit" maxOccurs="unbounded">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Lat" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="Lon" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "limit" +}) +public class CourseLimit { + + @XmlElement(name = "Limit", required = true) + protected List limit; + + /** + * Gets the value of the limit property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the limit property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getLimit().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Limit } + * + * + */ + public List getLimit() { + if (limit == null) { + limit = new ArrayList(); + } + return this.limit; + } + +} diff --git a/racevisionGame/src/main/resources/mock/mockXML/schema/schema/Limit.java b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/Limit.java new file mode 100644 index 00000000..8abda089 --- /dev/null +++ b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/Limit.java @@ -0,0 +1,119 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2017.08.13 at 11:01:23 PM NZST +// + + +package schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="Lat" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="Lon" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +public class Limit { + + @XmlAttribute(name = "Lat", required = true) + protected String lat; + @XmlAttribute(name = "Lon", required = true) + protected String lon; + @XmlAttribute(name = "SeqID", required = true) + protected String seqID; + + /** + * Gets the value of the lat property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLat() { + return lat; + } + + /** + * Sets the value of the lat property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLat(String value) { + this.lat = value; + } + + /** + * Gets the value of the lon property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLon() { + return lon; + } + + /** + * Sets the value of the lon property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLon(String value) { + this.lon = value; + } + + /** + * Gets the value of the seqID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSeqID() { + return seqID; + } + + /** + * Sets the value of the seqID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSeqID(String value) { + this.seqID = value; + } + +} diff --git a/racevisionGame/src/main/resources/mock/mockXML/schema/schema/Mark.java b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/Mark.java new file mode 100644 index 00000000..ef4d4e1e --- /dev/null +++ b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/Mark.java @@ -0,0 +1,173 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2017.08.13 at 11:01:23 PM NZST +// + + +package schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="SeqId" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="Name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="TargetLat" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="TargetLng" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +public class Mark { + + @XmlAttribute(name = "SeqId") + protected String seqId; + @XmlAttribute(name = "Name", required = true) + protected String name; + @XmlAttribute(name = "TargetLat", required = true) + protected String targetLat; + @XmlAttribute(name = "TargetLng", required = true) + protected String targetLng; + @XmlAttribute(name = "SourceID", required = true) + protected String sourceID; + + /** + * Gets the value of the seqId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSeqId() { + return seqId; + } + + /** + * Sets the value of the seqId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSeqId(String value) { + this.seqId = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the targetLat property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTargetLat() { + return targetLat; + } + + /** + * Sets the value of the targetLat property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTargetLat(String value) { + this.targetLat = value; + } + + /** + * Gets the value of the targetLng property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTargetLng() { + return targetLng; + } + + /** + * Sets the value of the targetLng property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTargetLng(String value) { + this.targetLng = value; + } + + /** + * Gets the value of the sourceID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSourceID() { + return sourceID; + } + + /** + * Sets the value of the sourceID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSourceID(String value) { + this.sourceID = value; + } + +} diff --git a/racevisionGame/src/main/resources/mock/mockXML/schema/schema/ObjectFactory.java b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/ObjectFactory.java new file mode 100644 index 00000000..eb4b55e9 --- /dev/null +++ b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/ObjectFactory.java @@ -0,0 +1,127 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2017.08.13 at 11:01:23 PM NZST +// + + +package schema; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the schema package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: schema + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link Race } + * + */ + public Race createRace() { + return new Race(); + } + + /** + * Create an instance of {@link RaceStartTime } + * + */ + public RaceStartTime createRaceStartTime() { + return new RaceStartTime(); + } + + /** + * Create an instance of {@link Participants } + * + */ + public Participants createParticipants() { + return new Participants(); + } + + /** + * Create an instance of {@link CompoundMarkSequence } + * + */ + public CompoundMarkSequence createCompoundMarkSequence() { + return new CompoundMarkSequence(); + } + + /** + * Create an instance of {@link Course } + * + */ + public Course createCourse() { + return new Course(); + } + + /** + * Create an instance of {@link CourseLimit } + * + */ + public CourseLimit createCourseLimit() { + return new CourseLimit(); + } + + /** + * Create an instance of {@link Limit } + * + */ + public Limit createLimit() { + return new Limit(); + } + + /** + * Create an instance of {@link CompoundMark } + * + */ + public CompoundMark createCompoundMark() { + return new CompoundMark(); + } + + /** + * Create an instance of {@link Mark } + * + */ + public Mark createMark() { + return new Mark(); + } + + /** + * Create an instance of {@link Corner } + * + */ + public Corner createCorner() { + return new Corner(); + } + + /** + * Create an instance of {@link Yacht } + * + */ + public Yacht createYacht() { + return new Yacht(); + } + +} diff --git a/racevisionGame/src/main/resources/mock/mockXML/schema/schema/Participants.java b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/Participants.java new file mode 100644 index 00000000..b2dcb7d6 --- /dev/null +++ b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/Participants.java @@ -0,0 +1,85 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2017.08.13 at 11:01:23 PM NZST +// + + +package schema; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Yacht" maxOccurs="unbounded">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="Entry" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "yacht" +}) +public class Participants { + + @XmlElement(name = "Yacht", required = true) + protected List yacht; + + /** + * Gets the value of the yacht property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the yacht property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getYacht().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Yacht } + * + * + */ + public List getYacht() { + if (yacht == null) { + yacht = new ArrayList(); + } + return this.yacht; + } + +} diff --git a/racevisionGame/src/main/resources/mock/mockXML/schema/schema/Race.java b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/Race.java new file mode 100644 index 00000000..1ae28e9d --- /dev/null +++ b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/Race.java @@ -0,0 +1,373 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2017.08.13 at 11:01:23 PM NZST +// + + +package schema; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="RaceID" type="{http://www.w3.org/2001/XMLSchema}positiveInteger"/>
+ *         <element name="RaceType" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="CreationTimeDate" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="RaceStartTime">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Postpone" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="Time" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="Participants">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="Yacht" maxOccurs="unbounded">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="Entry" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="CompoundMarkSequence">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="Corner" maxOccurs="unbounded">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+ *                           <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+ *                           <attribute name="Rounding" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="ZoneSize" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="Course">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="CompoundMark" maxOccurs="unbounded">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="Mark" maxOccurs="unbounded">
+ *                               <complexType>
+ *                                 <complexContent>
+ *                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                                     <attribute name="SeqId" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                                     <attribute name="Name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                                     <attribute name="TargetLat" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                                     <attribute name="TargetLng" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                                     <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                                   </restriction>
+ *                                 </complexContent>
+ *                               </complexType>
+ *                             </element>
+ *                           </sequence>
+ *                           <attribute name="CompoundMarkID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="Name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="CourseLimit">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="Limit" maxOccurs="unbounded">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <attribute name="Lat" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="Lon" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="SeqID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "raceID", + "raceType", + "creationTimeDate", + "raceStartTime", + "participants", + "compoundMarkSequence", + "course", + "courseLimit" +}) +@XmlRootElement(name = "Race") +public class Race { + + @XmlElement(name = "RaceID", required = true) + @XmlSchemaType(name = "positiveInteger") + protected BigInteger raceID; + @XmlElement(name = "RaceType", required = true) + protected String raceType; + @XmlElement(name = "CreationTimeDate", required = true) + protected String creationTimeDate; + @XmlElement(name = "RaceStartTime", required = true) + protected RaceStartTime raceStartTime; + @XmlElement(name = "Participants", required = true) + protected Participants participants; + @XmlElement(name = "CompoundMarkSequence", required = true) + protected CompoundMarkSequence compoundMarkSequence; + @XmlElement(name = "Course", required = true) + protected Course course; + @XmlElement(name = "CourseLimit", required = true) + protected CourseLimit courseLimit; + + /** + * Gets the value of the raceID property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getRaceID() { + return raceID; + } + + /** + * Sets the value of the raceID property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setRaceID(BigInteger value) { + this.raceID = value; + } + + /** + * Gets the value of the raceType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRaceType() { + return raceType; + } + + /** + * Sets the value of the raceType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRaceType(String value) { + this.raceType = value; + } + + /** + * Gets the value of the creationTimeDate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCreationTimeDate() { + return creationTimeDate; + } + + /** + * Sets the value of the creationTimeDate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCreationTimeDate(String value) { + this.creationTimeDate = value; + } + + /** + * Gets the value of the raceStartTime property. + * + * @return + * possible object is + * {@link RaceStartTime } + * + */ + public RaceStartTime getRaceStartTime() { + return raceStartTime; + } + + /** + * Sets the value of the raceStartTime property. + * + * @param value + * allowed object is + * {@link RaceStartTime } + * + */ + public void setRaceStartTime(RaceStartTime value) { + this.raceStartTime = value; + } + + /** + * Gets the value of the participants property. + * + * @return + * possible object is + * {@link Participants } + * + */ + public Participants getParticipants() { + return participants; + } + + /** + * Sets the value of the participants property. + * + * @param value + * allowed object is + * {@link Participants } + * + */ + public void setParticipants(Participants value) { + this.participants = value; + } + + /** + * Gets the value of the compoundMarkSequence property. + * + * @return + * possible object is + * {@link CompoundMarkSequence } + * + */ + public CompoundMarkSequence getCompoundMarkSequence() { + return compoundMarkSequence; + } + + /** + * Sets the value of the compoundMarkSequence property. + * + * @param value + * allowed object is + * {@link CompoundMarkSequence } + * + */ + public void setCompoundMarkSequence(CompoundMarkSequence value) { + this.compoundMarkSequence = value; + } + + /** + * Gets the value of the course property. + * + * @return + * possible object is + * {@link Course } + * + */ + public Course getCourse() { + return course; + } + + /** + * Sets the value of the course property. + * + * @param value + * allowed object is + * {@link Course } + * + */ + public void setCourse(Course value) { + this.course = value; + } + + /** + * Gets the value of the courseLimit property. + * + * @return + * possible object is + * {@link CourseLimit } + * + */ + public CourseLimit getCourseLimit() { + return courseLimit; + } + + /** + * Sets the value of the courseLimit property. + * + * @param value + * allowed object is + * {@link CourseLimit } + * + */ + public void setCourseLimit(CourseLimit value) { + this.courseLimit = value; + } + +} diff --git a/racevisionGame/src/main/resources/mock/mockXML/schema/schema/RaceStartTime.java b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/RaceStartTime.java new file mode 100644 index 00000000..e01f3b64 --- /dev/null +++ b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/RaceStartTime.java @@ -0,0 +1,92 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2017.08.13 at 11:01:23 PM NZST +// + + +package schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="Postpone" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="Time" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +public class RaceStartTime { + + @XmlAttribute(name = "Postpone", required = true) + protected String postpone; + @XmlAttribute(name = "Time", required = true) + protected String time; + + /** + * Gets the value of the postpone property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPostpone() { + return postpone; + } + + /** + * Sets the value of the postpone property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPostpone(String value) { + this.postpone = value; + } + + /** + * Gets the value of the time property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTime() { + return time; + } + + /** + * Sets the value of the time property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTime(String value) { + this.time = value; + } + +} diff --git a/racevisionGame/src/main/resources/mock/mockXML/schema/schema/Yacht.java b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/Yacht.java new file mode 100644 index 00000000..7f8ad761 --- /dev/null +++ b/racevisionGame/src/main/resources/mock/mockXML/schema/schema/Yacht.java @@ -0,0 +1,92 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2017.08.13 at 11:01:23 PM NZST +// + + +package schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="SourceID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="Entry" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +public class Yacht { + + @XmlAttribute(name = "SourceID", required = true) + protected String sourceID; + @XmlAttribute(name = "Entry") + protected String entry; + + /** + * Gets the value of the sourceID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSourceID() { + return sourceID; + } + + /** + * Sets the value of the sourceID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSourceID(String value) { + this.sourceID = value; + } + + /** + * Gets the value of the entry property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEntry() { + return entry; + } + + /** + * Sets the value of the entry property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEntry(String value) { + this.entry = value; + } + +}