Made all the model classes extend off the schema xml classes for race, and made xml builder, validator and reader utility class.
#story[1092]main
parent
70d5447e88
commit
b5e414f97a
@ -0,0 +1,3 @@
|
||||
<component name="CopyrightManager">
|
||||
<settings default="" />
|
||||
</component>
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,127 +0,0 @@
|
||||
//
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// 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 mock.xml;
|
||||
|
||||
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.
|
||||
* <p>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: scd
|
||||
*
|
||||
*/
|
||||
public RaceFactory() {
|
||||
}
|
||||
|
||||
/**
|
||||
* 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();
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,23 +1,25 @@
|
||||
package shared.model;
|
||||
|
||||
import shared.xml.Race.XMLCorner;
|
||||
|
||||
/**
|
||||
* Created by Gondr on 3/08/2017.
|
||||
*/
|
||||
public class Corner {
|
||||
public class Corner extends XMLCorner{
|
||||
|
||||
private int id;
|
||||
private int seqID;
|
||||
|
||||
public Corner(int id, int seqID){
|
||||
public Corner(int id, int seqID, String rounding, int zoneSize){
|
||||
super();
|
||||
setCompoundMarkID(id);
|
||||
setSeqID(seqID);
|
||||
setRounding(rounding);
|
||||
setZoneSize(zoneSize);
|
||||
|
||||
this.id = id;
|
||||
this.seqID = seqID;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public int getSeqID() {
|
||||
return seqID;
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,127 @@
|
||||
//
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// Any modifications to this file will be lost upon recompilation of the source schema.
|
||||
// Generated on: 2017.08.14 at 02:41:51 AM NZST
|
||||
//
|
||||
|
||||
|
||||
package shared.xml.Race;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRegistry;
|
||||
|
||||
|
||||
/**
|
||||
* This object contains factory methods for each
|
||||
* Java content interface and Java element interface
|
||||
* generated in the shared.xml.Race package.
|
||||
* <p>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 XMLRaceFactory {
|
||||
|
||||
|
||||
/**
|
||||
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: shared.xml.Race
|
||||
*
|
||||
*/
|
||||
public XMLRaceFactory() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XMLRace }
|
||||
*
|
||||
*/
|
||||
public XMLRace createRace() {
|
||||
return new XMLRace();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XMLRaceStartTime }
|
||||
*
|
||||
*/
|
||||
public XMLRaceStartTime createXMLRaceStartTime() {
|
||||
return new XMLRaceStartTime();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XMLParticipants }
|
||||
*
|
||||
*/
|
||||
public XMLParticipants createXMLParticipants() {
|
||||
return new XMLParticipants();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XMLCompoundMarkSequence }
|
||||
*
|
||||
*/
|
||||
public XMLCompoundMarkSequence createXMLCompoundMarkSequence() {
|
||||
return new XMLCompoundMarkSequence();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XMLCourse }
|
||||
*
|
||||
*/
|
||||
public XMLCourse createXMLCourse() {
|
||||
return new XMLCourse();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XMLCourseLimit }
|
||||
*
|
||||
*/
|
||||
public XMLCourseLimit createXMLCourseLimit() {
|
||||
return new XMLCourseLimit();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XMLLimit }
|
||||
*
|
||||
*/
|
||||
public XMLLimit createXMLLimit() {
|
||||
return new XMLLimit();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XMLCompoundMark }
|
||||
*
|
||||
*/
|
||||
public XMLCompoundMark createXMLCompoundMark() {
|
||||
return new XMLCompoundMark();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XMLMark }
|
||||
*
|
||||
*/
|
||||
public XMLMark createXMLMark() {
|
||||
return new XMLMark();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XMLCorner }
|
||||
*
|
||||
*/
|
||||
public XMLCorner createXMLCorner() {
|
||||
return new XMLCorner();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link XMLYacht }
|
||||
*
|
||||
*/
|
||||
public XMLYacht createXMLYacht() {
|
||||
return new XMLYacht();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
<jxb:bindings version="1.0"
|
||||
xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
|
||||
jxb:extensionBindingPrefixes="xjc">
|
||||
|
||||
<jxb:bindings schemaLocation="raceSchema.xsd" node="/xs:schema">
|
||||
<jxb:schemaBindings>
|
||||
<jxb:nameXmlTransform>
|
||||
<jxb:typeName prefix="XML"/>
|
||||
<jxb:anonymousTypeName prefix="XML"/>
|
||||
</jxb:nameXmlTransform>
|
||||
</jxb:schemaBindings>
|
||||
<jxb:globalBindings localScoping="toplevel"/>
|
||||
</jxb:bindings>
|
||||
|
||||
</jxb:bindings>
|
||||
@ -1,127 +0,0 @@
|
||||
//
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// 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.
|
||||
* <p>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();
|
||||
}
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,127 +0,0 @@
|
||||
//
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// 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.
|
||||
* <p>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();
|
||||
}
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,127 +0,0 @@
|
||||
//
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// 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.
|
||||
* <p>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();
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in new issue