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="total-players" use="required"> + * <simpleType> + * <restriction base="{http://www.w3.org/2001/XMLSchema}byte"> + * <minInclusive value="2"/> + * <maxInclusive value="6"/> + * </restriction> + * </simpleType> + * </attribute> + * <attribute name="game-title" use="required"> + * <simpleType> + * <list itemType="{http://www.w3.org/2001/XMLSchema}string" /> + * </simpleType> + * </attribute> + * </restriction> + * </complexContent> + * </complexType> + *+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "DynamicPlayers") +public class DynamicPlayers { + + @XmlAttribute(name = "total-players", required = true) + protected byte totalPlayers; + @XmlAttribute(name = "game-title", required = true) + protected List
+ * 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 gameTitle property.
+ *
+ *
+ * For example, to add a new item, do as follows: + *
+ * getGameTitle().add(newItem); + *+ * + * + *
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List Java class for anonymous complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ * Java class for anonymous complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ * Java class for anonymous complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ *
+ * 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
+ * For example, to add a new item, do as follows:
+ *
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List Java class for anonymous complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ *
+ * 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
+ * For example, to add a new item, do as follows:
+ *
+ * Objects of the following type(s) are allowed in the list
+ * {@link Letter }
+ *
+ *
+ */
+ public List 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 {
+
+ private final static QName _Type_QNAME = new QName("", "Type");
+ private final static QName _Score_QNAME = new QName("", "Score");
+ private final static QName _BoardSize_QNAME = new QName("", "BoardSize");
+ private final static QName _Frequency_QNAME = new QName("", "Frequency");
+ private final static QName _Sign_QNAME = new QName("", "Sign");
+ private final static QName _Name_QNAME = new QName("", "Name");
+ private final static QName _DictionaryFileName_QNAME = new QName("", "DictionaryFileName");
+
+
+
+ //engine.jaxb.schema.generated.ObjectFactory objectFactory = new engine.jaxb.schema.generated.ObjectFactory();
+ // JAXBContext jaxbContext tring());
+ /**
+ *
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: engine.xml
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link Player }
+ *
+ */
+ public Player createPlayer() {
+ return new Player();
+ }
+
+ /**
+ * Create an instance of {@link Letters }
+ *
+ */
+ public Letters createLetters() {
+ return new Letters();
+ }
+
+ /**
+ * Create an instance of {@link Letter }
+ *
+ */
+ public Letter createLetter() {
+ return new Letter();
+ }
+
+ /**
+ * Create an instance of {@link GameType }
+ *
+ */
+ public GameType createGameType() {
+ return new GameType();
+ }
+
+ /**
+ * Create an instance of {@link Structure }
+ *
+ */
+ public Structure createStructure() {
+ return new Structure();
+ }
+
+ /**
+ * Create an instance of {@link GameDescriptor }
+ *
+ */
+ public GameDescriptor createGameDescriptor() {
+ return new GameDescriptor();
+ }
+
+ /**
+ * Create an instance of {@link Players }
+ *
+ */
+ public Players createPlayers() {
+ return new Players();
+ }
+
+ /**
+ * Create an instance of {@link DynamicPlayers }
+ *
+ */
+ public DynamicPlayers createDynamicPlayers() {
+ return new DynamicPlayers();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "", name = "Type")
+ public JAXBElement Java class for anonymous complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ *
+ * 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
+ * For example, to add a new item, do as follows:
+ *
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ *
+ *
+ */
+ public List Java class for anonymous complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ *
+ * 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
+ * For example, to add a new item, do as follows:
+ *
+ * Objects of the following type(s) are allowed in the list
+ * {@link Player }
+ *
+ *
+ */
+ public List Java class for ST_GameType.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ * 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 ref="{}GameType"/>
+ * <element ref="{}Structure"/>
+ * <element ref="{}Players" minOccurs="0"/>
+ * <element ref="{}DynamicPlayers" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "gameType",
+ "structure",
+ "players",
+ "dynamicPlayers"
+})
+@XmlRootElement(name = "GameDescriptor")
+public class GameDescriptor {
+
+ @XmlElement(name = "GameType", required = true)
+ protected GameType gameType;
+ @XmlElement(name = "Structure", required = true)
+ protected Structure structure;
+ @XmlElement(name = "Players")
+ protected Players players;
+ @XmlElement(name = "DynamicPlayers")
+ protected DynamicPlayers dynamicPlayers;
+
+ /**
+ * Gets the value of the gameType property.
+ *
+ * @return
+ * possible object is
+ * {@link GameType }
+ *
+ */
+ public GameType getGameType() {
+ return gameType;
+ }
+
+ /**
+ * Sets the value of the gameType property.
+ *
+ * @param value
+ * allowed object is
+ * {@link GameType }
+ *
+ */
+ public void setGameType(GameType value) {
+ this.gameType = value;
+ }
+
+ /**
+ * Gets the value of the structure property.
+ *
+ * @return
+ * possible object is
+ * {@link Structure }
+ *
+ */
+ public Structure getStructure() {
+ return structure;
+ }
+
+ /**
+ * Sets the value of the structure property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Structure }
+ *
+ */
+ public void setStructure(Structure value) {
+ this.structure = value;
+ }
+
+ /**
+ * Gets the value of the players property.
+ *
+ * @return
+ * possible object is
+ * {@link Players }
+ *
+ */
+ public Players getPlayers() {
+ return players;
+ }
+
+ /**
+ * Sets the value of the players property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Players }
+ *
+ */
+ public void setPlayers(Players value) {
+ this.players = value;
+ }
+
+ /**
+ * Gets the value of the dynamicPlayers property.
+ *
+ * @return
+ * possible object is
+ * {@link DynamicPlayers }
+ *
+ */
+ public DynamicPlayers getDynamicPlayers() {
+ return dynamicPlayers;
+ }
+
+ /**
+ * Sets the value of the dynamicPlayers property.
+ *
+ * @param value
+ * allowed object is
+ * {@link DynamicPlayers }
+ *
+ */
+ public void setDynamicPlayers(DynamicPlayers value) {
+ this.dynamicPlayers = value;
+ }
+
+}
diff --git a/GameEngine/src/engine/jaxb/schema/generated/GameType.java b/GameEngine/src/engine/jaxb/schema/generated/GameType.java
new file mode 100644
index 0000000..533858e
--- /dev/null
+++ b/GameEngine/src/engine/jaxb/schema/generated/GameType.java
@@ -0,0 +1,123 @@
+
+package engine.jaxb.schema.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlValue;
+
+
+/**
+ *
+ * <complexType>
+ * <simpleContent>
+ * <extension base="<http://www.w3.org/2001/XMLSchema>string">
+ * <attribute name="winner-according-to" use="required">
+ * <simpleType>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ * <enumeration value="WordCount"/>
+ * <enumeration value="WordScore"/>
+ * </restriction>
+ * </simpleType>
+ * </attribute>
+ * <attribute name="gold-fish-mode" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ * </extension>
+ * </simpleContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "value"
+})
+@XmlRootElement(name = "GameType")
+public class GameType {
+
+ @XmlValue
+ protected String value;
+ @XmlAttribute(name = "winner-according-to", required = true)
+ protected String winnerAccordingTo;
+ @XmlAttribute(name = "gold-fish-mode")
+ protected Boolean goldFishMode;
+
+ /**
+ * Gets the value of the value property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ * Sets the value of the value property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Gets the value of the winnerAccordingTo property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getWinnerAccordingTo() {
+ return winnerAccordingTo;
+ }
+
+ /**
+ * Sets the value of the winnerAccordingTo property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setWinnerAccordingTo(String value) {
+ this.winnerAccordingTo = value;
+ }
+
+ /**
+ * Gets the value of the goldFishMode property.
+ *
+ * @return
+ * possible object is
+ * {@link Boolean }
+ *
+ */
+ public Boolean isGoldFishMode() {
+ return goldFishMode;
+ }
+
+ /**
+ * Sets the value of the goldFishMode property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Boolean }
+ *
+ */
+ public void setGoldFishMode(Boolean value) {
+ this.goldFishMode = value;
+ }
+
+}
diff --git a/GameEngine/src/engine/jaxb/schema/generated/Letter.java b/GameEngine/src/engine/jaxb/schema/generated/Letter.java
new file mode 100644
index 0000000..518a460
--- /dev/null
+++ b/GameEngine/src/engine/jaxb/schema/generated/Letter.java
@@ -0,0 +1,111 @@
+
+package engine.jaxb.schema.generated;
+
+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.XmlList;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <all>
+ * <element ref="{}Sign"/>
+ * <element ref="{}Score"/>
+ * <element ref="{}Frequency"/>
+ * </all>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+
+})
+@XmlRootElement(name = "Letter")
+public class Letter {
+
+ @XmlList
+ @XmlElement(name = "Sign", required = true)
+ protected Listset
method for the sign property.
+ *
+ *
+ * getSign().add(newItem);
+ *
+ *
+ *
+ *
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element ref="{}Letter" maxOccurs="unbounded"/>
+ * </sequence>
+ * <attribute name="target-deck-size" use="required" type="{http://www.w3.org/2001/XMLSchema}short" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "letter"
+})
+@XmlRootElement(name = "Letters")
+public class Letters {
+
+ @XmlElement(name = "Letter", required = true)
+ protected Listset
method for the letter property.
+ *
+ *
+ * getLetter().add(newItem);
+ *
+ *
+ *
+ * > createSign(List
>(_Sign_QNAME, ((Class) List.class), null, ((List
> createName(List
>(_Name_QNAME, ((Class) List.class), null, ((List
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <all>
+ * <element ref="{}Name"/>
+ * <element ref="{}Type"/>
+ * </all>
+ * <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}short" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+
+})
+@XmlRootElement(name = "Player")
+public class Player {
+
+ @XmlList
+ @XmlElement(name = "Name", required = true)
+ protected Listset
method for the name property.
+ *
+ *
+ * getName().add(newItem);
+ *
+ *
+ *
+ *
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element ref="{}Player" maxOccurs="6" minOccurs="2"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "player"
+})
+@XmlRootElement(name = "Players")
+public class Players {
+
+ @XmlElement(name = "Player", required = true)
+ protected Listset
method for the player property.
+ *
+ *
+ * getPlayer().add(newItem);
+ *
+ *
+ *
+ *
+ * <simpleType name="ST_GameType">
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ * <enumeration value="Basic"/>
+ * </restriction>
+ * </simpleType>
+ *
+ *
+ */
+@XmlType(name = "ST_GameType")
+@XmlEnum
+public enum STGameType {
+
+ @XmlEnumValue("Basic")
+ BASIC("Basic");
+ private final String value;
+
+ STGameType(String v) {
+ value = v;
+ }
+
+ public String value() {
+ return value;
+ }
+
+ public static STGameType fromValue(String v) {
+ for (STGameType c: STGameType.values()) {
+ if (c.value.equals(v)) {
+ return c;
+ }
+ }
+ throw new IllegalArgumentException(v);
+ }
+
+}
diff --git a/GameEngine/src/engine/jaxb/schema/generated/Structure.java b/GameEngine/src/engine/jaxb/schema/generated/Structure.java
new file mode 100644
index 0000000..ee10ade
--- /dev/null
+++ b/GameEngine/src/engine/jaxb/schema/generated/Structure.java
@@ -0,0 +1,155 @@
+
+package engine.jaxb.schema.generated;
+
+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.XmlType;
+
+
+/**
+ *
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <all>
+ * <element ref="{}DictionaryFileName"/>
+ * <element ref="{}Letters"/>
+ * <element ref="{}BoardSize"/>
+ * <element name="RetriesNumber" type="{http://www.w3.org/2001/XMLSchema}byte"/>
+ * <element name="CubeFacets">
+ * <simpleType>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}byte">
+ * <minInclusive value="6"/>
+ * <maxInclusive value="12"/>
+ * </restriction>
+ * </simpleType>
+ * </element>
+ * </all>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+
+})
+@XmlRootElement(name = "Structure")
+public class Structure {
+
+ @XmlElement(name = "DictionaryFileName", required = true)
+ protected String dictionaryFileName;
+ @XmlElement(name = "Letters", required = true)
+ protected Letters letters;
+ @XmlElement(name = "BoardSize")
+ protected byte boardSize;
+ @XmlElement(name = "RetriesNumber")
+ protected byte retriesNumber;
+ @XmlElement(name = "CubeFacets")
+ protected byte cubeFacets;
+
+ /**
+ * Gets the value of the dictionaryFileName property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDictionaryFileName() {
+ return dictionaryFileName;
+ }
+
+ /**
+ * Sets the value of the dictionaryFileName property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDictionaryFileName(String value) {
+ this.dictionaryFileName = value;
+ }
+
+ /**
+ * Gets the value of the letters property.
+ *
+ * @return
+ * possible object is
+ * {@link Letters }
+ *
+ */
+ public Letters getLetters() {
+ return letters;
+ }
+
+ /**
+ * Sets the value of the letters property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Letters }
+ *
+ */
+ public void setLetters(Letters value) {
+ this.letters = value;
+ }
+
+ /**
+ * Gets the value of the boardSize property.
+ *
+ */
+ public byte getBoardSize() {
+ return boardSize;
+ }
+
+ /**
+ * Sets the value of the boardSize property.
+ *
+ */
+ public void setBoardSize(byte value) {
+ this.boardSize = value;
+ }
+
+ /**
+ * Gets the value of the retriesNumber property.
+ *
+ */
+ public byte getRetriesNumber() {
+ return retriesNumber;
+ }
+
+ /**
+ * Sets the value of the retriesNumber property.
+ *
+ */
+ public void setRetriesNumber(byte value) {
+ this.retriesNumber = value;
+ }
+
+ /**
+ * Gets the value of the cubeFacets property.
+ *
+ */
+ public byte getCubeFacets() {
+ return cubeFacets;
+ }
+
+ /**
+ * Sets the value of the cubeFacets property.
+ *
+ */
+ public void setCubeFacets(byte value) {
+ this.cubeFacets = value;
+ }
+
+}
diff --git a/GameEngine/src/resources/Wordiada.xsd b/GameEngine/src/resources/Wordiada.xsd
new file mode 100644
index 0000000..79f91ef
--- /dev/null
+++ b/GameEngine/src/resources/Wordiada.xsd
@@ -0,0 +1,127 @@
+
+
+
+