diff --git a/pom.xml b/pom.xml index dd65423..94120f4 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.mcmiddleearth plugin-dynamic-books - 2.0 + 2.1.0 jar Dynamic Books for MCME @@ -29,19 +29,13 @@ ${java.version} - org.apache.maven.plugins - maven-jar-plugin - 2.3.1 + maven-shade-plugin + 3.2.1 ${project.basedir}/../minecraft-server/plugins - - - org.apache.maven.plugins - maven-shade-plugin - 3.1.0 package @@ -50,14 +44,52 @@ false + ${project.artifactId} + + + com.sun.xml.bind:* + jakarta.xml.bind:* + com.sun.activation:jakarta.activation + + + + + + + + + com.sun.xml + dynamicbooks.com.sun.xml + + + com.sun.istack + dynamicbooks.com.sun.istack + + + com.sun.activation + dynamicbooks.com.sun.activation + + + jakarta.xml.bind + dynamicbooks.jakarta.xml.bind + + + jakarta.activation + dynamicbooks.jakarta.activation + + + org.glassfish.jaxb + dynamicbooks.org.glassfish.jaxb + + - org.codehaus.mojo - jaxb2-maven-plugin - 2.5.0 + com.evolvedbinary.maven.mojohaus + jaxb-maven-plugin + 3.0.0 xjc @@ -69,8 +101,8 @@ com.mcmiddleearth.plugins.dynamicbooks.jaxb - false - ${project.basedir}/src/main/java + true + ${project.build.directory}/generated-sources @@ -80,6 +112,7 @@ true plugin.yml + jaxb.properties config.yml @@ -127,22 +160,19 @@ 1.18.10 compile - + - org.codehaus.mojo - jaxb2-maven-plugin - 2.5.0 + jakarta.xml.bind + jakarta.xml.bind-api + 3.0.1 + com.sun.xml.bind jaxb-impl - 2.1.2 - - - javax.xml.bind - jaxb-api - 2.1 + 3.0.2 + runtime diff --git a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/DynamicBooksPlugin.java b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/DynamicBooksPlugin.java index 24b631a..ae8ea5b 100644 --- a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/DynamicBooksPlugin.java +++ b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/DynamicBooksPlugin.java @@ -19,6 +19,8 @@ import java.util.List; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; +import java.util.logging.Level; +import java.util.logging.Logger; import java.util.stream.Collectors; public final class DynamicBooksPlugin extends JavaPlugin { @@ -62,6 +64,7 @@ public boolean onCommand(CommandSender sender, Command command, String label, St commandDispatcher.execute(commandDispatcher.parse(label, (Player) sender)); } } catch (CommandSyntaxException e) { + Logger.getLogger(DynamicBooksPlugin.class.getName()).log(Level.SEVERE, "Hullo!", e); e.printStackTrace(); } } diff --git a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/command/BookCommand.java b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/command/BookCommand.java index 7b462c0..c2d13a3 100644 --- a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/command/BookCommand.java +++ b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/command/BookCommand.java @@ -8,6 +8,8 @@ import com.mojang.brigadier.builder.RequiredArgumentBuilder; import org.bukkit.entity.Player; +import java.util.logging.Logger; + public class BookCommand extends CommandDispatcher { private final BookLibrary bookLibrary; diff --git a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/command/CommandBookArgument.java b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/command/CommandBookArgument.java index fbc1bbc..c021d0e 100644 --- a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/command/CommandBookArgument.java +++ b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/command/CommandBookArgument.java @@ -37,7 +37,7 @@ public String parse(StringReader reader) throws CommandSyntaxException { if (options.contains(o)) { return o; } - throw new CommandSyntaxException(new SimpleCommandExceptionType(new LiteralMessage("Failed parsing during action evaluation")), new LiteralMessage("Failed parsing during action evaluation on action:" + o)); + throw new CommandSyntaxException(new SimpleCommandExceptionType(new LiteralMessage("Failed parsing during book evaluation")), new LiteralMessage("Failed parsing during action evaluation on action:" + o)); } @Override diff --git a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/ObjectFactory.java b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/ObjectFactory.java deleted file mode 100644 index 3d33393..0000000 --- a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/ObjectFactory.java +++ /dev/null @@ -1,142 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 -// See https://javaee.github.io/jaxb-v2/ -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2020.03.31 at 07:55:34 PM CEST -// - - -package com.mcmiddleearth.plugins.dynamicbooks.jaxb; - -import javax.xml.bind.JAXBElement; -import javax.xml.bind.annotation.XmlElementDecl; -import javax.xml.bind.annotation.XmlRegistry; -import javax.xml.namespace.QName; - - -/** - * This object contains factory methods for each - * Java content interface and Java element interface - * generated in the com.mcmiddleearth.plugins.dynamicbooks.jaxb 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 { - - private final static QName _XmlBookXmlPageXmlLineTpl_QNAME = new QName("", "tpl"); - private final static QName _XmlBookXmlPageXmlLineObj_QNAME = new QName("", "obj"); - - /** - * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.mcmiddleearth.plugins.dynamicbooks.jaxb - * - */ - public ObjectFactory() { - } - - /** - * Create an instance of {@link XmlBook } - * - */ - public XmlBook createXmlBook() { - return new XmlBook(); - } - - /** - * Create an instance of {@link XmlTemplate } - * - */ - public XmlTemplate createXmlTemplate() { - return new XmlTemplate(); - } - - /** - * Create an instance of {@link XmlBook.XmlPage } - * - */ - public XmlBook.XmlPage createXmlBookXmlPage() { - return new XmlBook.XmlPage(); - } - - /** - * Create an instance of {@link XmlBook.XmlPage.XmlLine } - * - */ - public XmlBook.XmlPage.XmlLine createXmlBookXmlPageXmlLine() { - return new XmlBook.XmlPage.XmlLine(); - } - - /** - * Create an instance of {@link XmlBook.XmlPermissions } - * - */ - public XmlBook.XmlPermissions createXmlBookXmlPermissions() { - return new XmlBook.XmlPermissions(); - } - - /** - * Create an instance of {@link XmlBook.XmlTemplates } - * - */ - public XmlBook.XmlTemplates createXmlBookXmlTemplates() { - return new XmlBook.XmlTemplates(); - } - - /** - * Create an instance of {@link XmlTemplate.XmlOptions } - * - */ - public XmlTemplate.XmlOptions createXmlTemplateXmlOptions() { - return new XmlTemplate.XmlOptions(); - } - - /** - * Create an instance of {@link XmlBook.XmlPage.XmlLine.XmlTpl } - * - */ - public XmlBook.XmlPage.XmlLine.XmlTpl createXmlBookXmlPageXmlLineXmlTpl() { - return new XmlBook.XmlPage.XmlLine.XmlTpl(); - } - - /** - * Create an instance of {@link XmlBook.XmlPage.XmlLine.XmlObj } - * - */ - public XmlBook.XmlPage.XmlLine.XmlObj createXmlBookXmlPageXmlLineXmlObj() { - return new XmlBook.XmlPage.XmlLine.XmlObj(); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link XmlBook.XmlPage.XmlLine.XmlTpl }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link XmlBook.XmlPage.XmlLine.XmlTpl }{@code >} - */ - @XmlElementDecl(namespace = "", name = "tpl", scope = XmlBook.XmlPage.XmlLine.class) - public JAXBElement createXmlBookXmlPageXmlLineTpl(XmlBook.XmlPage.XmlLine.XmlTpl value) { - return new JAXBElement(_XmlBookXmlPageXmlLineTpl_QNAME, XmlBook.XmlPage.XmlLine.XmlTpl.class, XmlBook.XmlPage.XmlLine.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link XmlBook.XmlPage.XmlLine.XmlObj }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link XmlBook.XmlPage.XmlLine.XmlObj }{@code >} - */ - @XmlElementDecl(namespace = "", name = "obj", scope = XmlBook.XmlPage.XmlLine.class) - public JAXBElement createXmlBookXmlPageXmlLineObj(XmlBook.XmlPage.XmlLine.XmlObj value) { - return new JAXBElement(_XmlBookXmlPageXmlLineObj_QNAME, XmlBook.XmlPage.XmlLine.XmlObj.class, XmlBook.XmlPage.XmlLine.class, value); - } - -} diff --git a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlBook.java b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlBook.java deleted file mode 100644 index 1e4291e..0000000 --- a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlBook.java +++ /dev/null @@ -1,1464 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 -// See https://javaee.github.io/jaxb-v2/ -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2020.03.31 at 07:55:34 PM CEST -// - - -package com.mcmiddleearth.plugins.dynamicbooks.jaxb; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.JAXBElement; -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.XmlElementRef; -import javax.xml.bind.annotation.XmlElementRefs; -import javax.xml.bind.annotation.XmlMixed; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.XmlValue; - - -/** - *

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="permissions" minOccurs="0">
- *           <complexType>
- *             <complexContent>
- *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *                 <sequence>
- *                   <element name="give" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- *                   <element name="open" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- *                   <element name="giveremote" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- *                   <element name="openremote" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- *                 </sequence>
- *               </restriction>
- *             </complexContent>
- *           </complexType>
- *         </element>
- *         <element name="templates" minOccurs="0">
- *           <complexType>
- *             <complexContent>
- *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *                 <sequence>
- *                   <element name="template" type="{}template" maxOccurs="unbounded"/>
- *                 </sequence>
- *               </restriction>
- *             </complexContent>
- *           </complexType>
- *         </element>
- *         <element name="page" maxOccurs="100">
- *           <complexType>
- *             <complexContent>
- *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *                 <sequence>
- *                   <element name="line" maxOccurs="14">
- *                     <complexType>
- *                       <complexContent>
- *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *                           <choice maxOccurs="unbounded">
- *                             <element name="tpl" maxOccurs="unbounded">
- *                               <complexType>
- *                                 <simpleContent>
- *                                   <extension base="<http://www.w3.org/2001/XMLSchema>string">
- *                                     <attribute name="ref" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                     <attribute name="arg1" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                     <attribute name="arg2" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                     <attribute name="arg3" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                     <attribute name="arg4" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                     <attribute name="arg5" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                     <attribute name="styles" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                     <attribute name="color" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                     <attribute name="auto-type" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                     <attribute name="page" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                     <attribute name="url" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                     <attribute name="hover-text" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                     <attribute name="execute" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                     <attribute name="open-book" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                     <attribute name="give-book" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                   </extension>
- *                                 </simpleContent>
- *                               </complexType>
- *                             </element>
- *                             <element name="obj" maxOccurs="unbounded">
- *                               <complexType>
- *                                 <simpleContent>
- *                                   <extension base="<http://www.w3.org/2001/XMLSchema>string">
- *                                     <attribute name="styles" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                     <attribute name="color" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                     <attribute name="auto-type" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                     <attribute name="page" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                     <attribute name="url" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                     <attribute name="hover-text" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                     <attribute name="execute" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                     <attribute name="open-book" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                     <attribute name="give-book" type="{http://www.w3.org/2001/XMLSchema}string" />
- *                                   </extension>
- *                                 </simpleContent>
- *                               </complexType>
- *                             </element>
- *                           </choice>
- *                         </restriction>
- *                       </complexContent>
- *                     </complexType>
- *                   </element>
- *                 </sequence>
- *                 <attribute name="ref" type="{http://www.w3.org/2001/XMLSchema}string" />
- *               </restriction>
- *             </complexContent>
- *           </complexType>
- *         </element>
- *       </sequence>
- *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="author" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "permissions", - "templates", - "page" -}) -@XmlRootElement(name = "book") -public class XmlBook { - - protected XmlBook.XmlPermissions permissions; - protected XmlBook.XmlTemplates templates; - @XmlElement(required = true) - protected List page; - @XmlAttribute(name = "id", required = true) - protected String id; - @XmlAttribute(name = "author", required = true) - protected String author; - - /** - * Gets the value of the permissions property. - * - * @return - * possible object is - * {@link XmlBook.XmlPermissions } - * - */ - public XmlBook.XmlPermissions getPermissions() { - return permissions; - } - - /** - * Sets the value of the permissions property. - * - * @param value - * allowed object is - * {@link XmlBook.XmlPermissions } - * - */ - public void setPermissions(XmlBook.XmlPermissions value) { - this.permissions = value; - } - - /** - * Gets the value of the templates property. - * - * @return - * possible object is - * {@link XmlBook.XmlTemplates } - * - */ - public XmlBook.XmlTemplates getTemplates() { - return templates; - } - - /** - * Sets the value of the templates property. - * - * @param value - * allowed object is - * {@link XmlBook.XmlTemplates } - * - */ - public void setTemplates(XmlBook.XmlTemplates value) { - this.templates = value; - } - - /** - * Gets the value of the page 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 page property. - * - *

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

-     *    getPage().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link XmlBook.XmlPage } - * - * - */ - public List getPage() { - if (page == null) { - page = new ArrayList(); - } - return this.page; - } - - /** - * Gets the value of the id property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } - - /** - * Gets the value of the author property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAuthor() { - return author; - } - - /** - * Sets the value of the author property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAuthor(String value) { - this.author = 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="line" maxOccurs="14">
-     *           <complexType>
-     *             <complexContent>
-     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
-     *                 <choice maxOccurs="unbounded">
-     *                   <element name="tpl" maxOccurs="unbounded">
-     *                     <complexType>
-     *                       <simpleContent>
-     *                         <extension base="<http://www.w3.org/2001/XMLSchema>string">
-     *                           <attribute name="ref" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                           <attribute name="arg1" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                           <attribute name="arg2" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                           <attribute name="arg3" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                           <attribute name="arg4" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                           <attribute name="arg5" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                           <attribute name="styles" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                           <attribute name="color" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                           <attribute name="auto-type" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                           <attribute name="page" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                           <attribute name="url" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                           <attribute name="hover-text" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                           <attribute name="execute" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                           <attribute name="open-book" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                           <attribute name="give-book" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                         </extension>
-     *                       </simpleContent>
-     *                     </complexType>
-     *                   </element>
-     *                   <element name="obj" maxOccurs="unbounded">
-     *                     <complexType>
-     *                       <simpleContent>
-     *                         <extension base="<http://www.w3.org/2001/XMLSchema>string">
-     *                           <attribute name="styles" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                           <attribute name="color" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                           <attribute name="auto-type" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                           <attribute name="page" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                           <attribute name="url" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                           <attribute name="hover-text" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                           <attribute name="execute" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                           <attribute name="open-book" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                           <attribute name="give-book" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *                         </extension>
-     *                       </simpleContent>
-     *                     </complexType>
-     *                   </element>
-     *                 </choice>
-     *               </restriction>
-     *             </complexContent>
-     *           </complexType>
-     *         </element>
-     *       </sequence>
-     *       <attribute name="ref" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *     </restriction>
-     *   </complexContent>
-     * </complexType>
-     * 
- * - * - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "", propOrder = { - "line" - }) - public static class XmlPage { - - @XmlElement(required = true) - protected List line; - @XmlAttribute(name = "ref") - protected String ref; - - /** - * Gets the value of the line 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 line property. - * - *

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

-         *    getLine().add(newItem);
-         * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link XmlBook.XmlPage.XmlLine } - * - * - */ - public List getLine() { - if (line == null) { - line = new ArrayList(); - } - return this.line; - } - - /** - * Gets the value of the ref property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRef() { - return ref; - } - - /** - * Sets the value of the ref property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRef(String value) { - this.ref = 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">
-         *       <choice maxOccurs="unbounded">
-         *         <element name="tpl" maxOccurs="unbounded">
-         *           <complexType>
-         *             <simpleContent>
-         *               <extension base="<http://www.w3.org/2001/XMLSchema>string">
-         *                 <attribute name="ref" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *                 <attribute name="arg1" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *                 <attribute name="arg2" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *                 <attribute name="arg3" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *                 <attribute name="arg4" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *                 <attribute name="arg5" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *                 <attribute name="styles" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *                 <attribute name="color" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *                 <attribute name="auto-type" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *                 <attribute name="page" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *                 <attribute name="url" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *                 <attribute name="hover-text" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *                 <attribute name="execute" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *                 <attribute name="open-book" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *                 <attribute name="give-book" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *               </extension>
-         *             </simpleContent>
-         *           </complexType>
-         *         </element>
-         *         <element name="obj" maxOccurs="unbounded">
-         *           <complexType>
-         *             <simpleContent>
-         *               <extension base="<http://www.w3.org/2001/XMLSchema>string">
-         *                 <attribute name="styles" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *                 <attribute name="color" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *                 <attribute name="auto-type" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *                 <attribute name="page" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *                 <attribute name="url" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *                 <attribute name="hover-text" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *                 <attribute name="execute" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *                 <attribute name="open-book" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *                 <attribute name="give-book" type="{http://www.w3.org/2001/XMLSchema}string" />
-         *               </extension>
-         *             </simpleContent>
-         *           </complexType>
-         *         </element>
-         *       </choice>
-         *     </restriction>
-         *   </complexContent>
-         * </complexType>
-         * 
- * - * - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "", propOrder = { - "content" - }) - public static class XmlLine { - - @XmlElementRefs({ - @XmlElementRef(name = "tpl", type = JAXBElement.class, required = false), - @XmlElementRef(name = "obj", type = JAXBElement.class, required = false) - }) - @XmlMixed - protected List content; - - /** - * Gets the value of the content 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 content property. - * - *

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

-             *    getContent().add(newItem);
-             * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link JAXBElement }{@code <}{@link XmlBook.XmlPage.XmlLine.XmlTpl }{@code >} - * {@link JAXBElement }{@code <}{@link XmlBook.XmlPage.XmlLine.XmlObj }{@code >} - * {@link String } - * - * - */ - public List getContent() { - if (content == null) { - content = new ArrayList(); - } - return this.content; - } - - - /** - *

Java class for anonymous complex type. - * - *

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

-             * <complexType>
-             *   <simpleContent>
-             *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
-             *       <attribute name="styles" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *       <attribute name="color" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *       <attribute name="auto-type" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *       <attribute name="page" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *       <attribute name="url" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *       <attribute name="hover-text" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *       <attribute name="execute" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *       <attribute name="open-book" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *       <attribute name="give-book" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *     </extension>
-             *   </simpleContent>
-             * </complexType>
-             * 
- * - * - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "", propOrder = { - "value" - }) - public static class XmlObj { - - @XmlValue - protected String value; - @XmlAttribute(name = "styles") - protected String styles; - @XmlAttribute(name = "color") - protected String color; - @XmlAttribute(name = "auto-type") - protected String autoType; - @XmlAttribute(name = "page") - protected String page; - @XmlAttribute(name = "url") - protected String url; - @XmlAttribute(name = "hover-text") - protected String hoverText; - @XmlAttribute(name = "execute") - protected String execute; - @XmlAttribute(name = "open-book") - protected String openBook; - @XmlAttribute(name = "give-book") - protected String giveBook; - - /** - * 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 styles property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getStyles() { - return styles; - } - - /** - * Sets the value of the styles property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setStyles(String value) { - this.styles = value; - } - - /** - * Gets the value of the color property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getColor() { - return color; - } - - /** - * Sets the value of the color property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setColor(String value) { - this.color = value; - } - - /** - * Gets the value of the autoType property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAutoType() { - return autoType; - } - - /** - * Sets the value of the autoType property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAutoType(String value) { - this.autoType = value; - } - - /** - * Gets the value of the page property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getPage() { - return page; - } - - /** - * Sets the value of the page property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setPage(String value) { - this.page = value; - } - - /** - * Gets the value of the url property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUrl() { - return url; - } - - /** - * Sets the value of the url property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUrl(String value) { - this.url = value; - } - - /** - * Gets the value of the hoverText property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getHoverText() { - return hoverText; - } - - /** - * Sets the value of the hoverText property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setHoverText(String value) { - this.hoverText = value; - } - - /** - * Gets the value of the execute property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getExecute() { - return execute; - } - - /** - * Sets the value of the execute property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setExecute(String value) { - this.execute = value; - } - - /** - * Gets the value of the openBook property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOpenBook() { - return openBook; - } - - /** - * Sets the value of the openBook property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOpenBook(String value) { - this.openBook = value; - } - - /** - * Gets the value of the giveBook property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGiveBook() { - return giveBook; - } - - /** - * Sets the value of the giveBook property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGiveBook(String value) { - this.giveBook = value; - } - - } - - - /** - *

Java class for anonymous complex type. - * - *

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

-             * <complexType>
-             *   <simpleContent>
-             *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
-             *       <attribute name="ref" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *       <attribute name="arg1" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *       <attribute name="arg2" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *       <attribute name="arg3" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *       <attribute name="arg4" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *       <attribute name="arg5" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *       <attribute name="styles" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *       <attribute name="color" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *       <attribute name="auto-type" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *       <attribute name="page" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *       <attribute name="url" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *       <attribute name="hover-text" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *       <attribute name="execute" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *       <attribute name="open-book" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *       <attribute name="give-book" type="{http://www.w3.org/2001/XMLSchema}string" />
-             *     </extension>
-             *   </simpleContent>
-             * </complexType>
-             * 
- * - * - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "", propOrder = { - "value" - }) - public static class XmlTpl { - - @XmlValue - protected String value; - @XmlAttribute(name = "ref", required = true) - protected String ref; - @XmlAttribute(name = "arg1") - protected String arg1; - @XmlAttribute(name = "arg2") - protected String arg2; - @XmlAttribute(name = "arg3") - protected String arg3; - @XmlAttribute(name = "arg4") - protected String arg4; - @XmlAttribute(name = "arg5") - protected String arg5; - @XmlAttribute(name = "styles") - protected String styles; - @XmlAttribute(name = "color") - protected String color; - @XmlAttribute(name = "auto-type") - protected String autoType; - @XmlAttribute(name = "page") - protected String page; - @XmlAttribute(name = "url") - protected String url; - @XmlAttribute(name = "hover-text") - protected String hoverText; - @XmlAttribute(name = "execute") - protected String execute; - @XmlAttribute(name = "open-book") - protected String openBook; - @XmlAttribute(name = "give-book") - protected String giveBook; - - /** - * 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 ref property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRef() { - return ref; - } - - /** - * Sets the value of the ref property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRef(String value) { - this.ref = value; - } - - /** - * Gets the value of the arg1 property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getArg1() { - return arg1; - } - - /** - * Sets the value of the arg1 property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setArg1(String value) { - this.arg1 = value; - } - - /** - * Gets the value of the arg2 property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getArg2() { - return arg2; - } - - /** - * Sets the value of the arg2 property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setArg2(String value) { - this.arg2 = value; - } - - /** - * Gets the value of the arg3 property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getArg3() { - return arg3; - } - - /** - * Sets the value of the arg3 property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setArg3(String value) { - this.arg3 = value; - } - - /** - * Gets the value of the arg4 property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getArg4() { - return arg4; - } - - /** - * Sets the value of the arg4 property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setArg4(String value) { - this.arg4 = value; - } - - /** - * Gets the value of the arg5 property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getArg5() { - return arg5; - } - - /** - * Sets the value of the arg5 property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setArg5(String value) { - this.arg5 = value; - } - - /** - * Gets the value of the styles property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getStyles() { - return styles; - } - - /** - * Sets the value of the styles property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setStyles(String value) { - this.styles = value; - } - - /** - * Gets the value of the color property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getColor() { - return color; - } - - /** - * Sets the value of the color property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setColor(String value) { - this.color = value; - } - - /** - * Gets the value of the autoType property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAutoType() { - return autoType; - } - - /** - * Sets the value of the autoType property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAutoType(String value) { - this.autoType = value; - } - - /** - * Gets the value of the page property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getPage() { - return page; - } - - /** - * Sets the value of the page property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setPage(String value) { - this.page = value; - } - - /** - * Gets the value of the url property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUrl() { - return url; - } - - /** - * Sets the value of the url property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUrl(String value) { - this.url = value; - } - - /** - * Gets the value of the hoverText property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getHoverText() { - return hoverText; - } - - /** - * Sets the value of the hoverText property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setHoverText(String value) { - this.hoverText = value; - } - - /** - * Gets the value of the execute property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getExecute() { - return execute; - } - - /** - * Sets the value of the execute property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setExecute(String value) { - this.execute = value; - } - - /** - * Gets the value of the openBook property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOpenBook() { - return openBook; - } - - /** - * Sets the value of the openBook property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOpenBook(String value) { - this.openBook = value; - } - - /** - * Gets the value of the giveBook property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGiveBook() { - return giveBook; - } - - /** - * Sets the value of the giveBook property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGiveBook(String value) { - this.giveBook = 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="give" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
-     *         <element name="open" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
-     *         <element name="giveremote" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
-     *         <element name="openremote" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
-     *       </sequence>
-     *     </restriction>
-     *   </complexContent>
-     * </complexType>
-     * 
- * - * - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "", propOrder = { - "give", - "open", - "giveremote", - "openremote" - }) - public static class XmlPermissions { - - protected String give; - protected String open; - protected String giveremote; - protected String openremote; - - /** - * Gets the value of the give property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGive() { - return give; - } - - /** - * Sets the value of the give property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGive(String value) { - this.give = value; - } - - /** - * Gets the value of the open property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOpen() { - return open; - } - - /** - * Sets the value of the open property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOpen(String value) { - this.open = value; - } - - /** - * Gets the value of the giveremote property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGiveremote() { - return giveremote; - } - - /** - * Sets the value of the giveremote property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGiveremote(String value) { - this.giveremote = value; - } - - /** - * Gets the value of the openremote property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOpenremote() { - return openremote; - } - - /** - * Sets the value of the openremote property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOpenremote(String value) { - this.openremote = 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="template" type="{}template" maxOccurs="unbounded"/>
-     *       </sequence>
-     *     </restriction>
-     *   </complexContent>
-     * </complexType>
-     * 
- * - * - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "", propOrder = { - "template" - }) - public static class XmlTemplates { - - @XmlElement(required = true) - protected List template; - - /** - * Gets the value of the template 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 template property. - * - *

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

-         *    getTemplate().add(newItem);
-         * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link XmlTemplate } - * - * - */ - public List getTemplate() { - if (template == null) { - template = new ArrayList(); - } - return this.template; - } - - } - -} diff --git a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlTemplate.java b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlTemplate.java deleted file mode 100644 index 8551ed0..0000000 --- a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlTemplate.java +++ /dev/null @@ -1,394 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 -// See https://javaee.github.io/jaxb-v2/ -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2020.03.31 at 07:55:34 PM CEST -// - - -package com.mcmiddleearth.plugins.dynamicbooks.jaxb; - -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 template complex type. - * - *

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

- * <complexType name="template">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="options">
- *           <complexType>
- *             <complexContent>
- *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *                 <sequence>
- *                   <element name="auto-type" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *                   <element name="color" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *                   <element name="execute" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *                   <element name="give-book" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *                   <element name="hover-text" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *                   <element name="open-book" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *                   <element name="page" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *                   <element name="styles" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *                   <element name="url" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *                 </sequence>
- *               </restriction>
- *             </complexContent>
- *           </complexType>
- *         </element>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "template", propOrder = { - "name", - "options" -}) -public class XmlTemplate { - - @XmlElement(required = true) - protected String name; - @XmlElement(required = true) - protected XmlTemplate.XmlOptions options; - - /** - * 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 options property. - * - * @return - * possible object is - * {@link XmlTemplate.XmlOptions } - * - */ - public XmlTemplate.XmlOptions getOptions() { - return options; - } - - /** - * Sets the value of the options property. - * - * @param value - * allowed object is - * {@link XmlTemplate.XmlOptions } - * - */ - public void setOptions(XmlTemplate.XmlOptions value) { - this.options = 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="auto-type" type="{http://www.w3.org/2001/XMLSchema}string"/>
-     *         <element name="color" type="{http://www.w3.org/2001/XMLSchema}string"/>
-     *         <element name="execute" type="{http://www.w3.org/2001/XMLSchema}string"/>
-     *         <element name="give-book" type="{http://www.w3.org/2001/XMLSchema}string"/>
-     *         <element name="hover-text" type="{http://www.w3.org/2001/XMLSchema}string"/>
-     *         <element name="open-book" type="{http://www.w3.org/2001/XMLSchema}string"/>
-     *         <element name="page" type="{http://www.w3.org/2001/XMLSchema}string"/>
-     *         <element name="styles" type="{http://www.w3.org/2001/XMLSchema}string"/>
-     *         <element name="url" type="{http://www.w3.org/2001/XMLSchema}string"/>
-     *       </sequence>
-     *     </restriction>
-     *   </complexContent>
-     * </complexType>
-     * 
- * - * - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "", propOrder = { - "autoType", - "color", - "execute", - "giveBook", - "hoverText", - "openBook", - "page", - "styles", - "url" - }) - public static class XmlOptions { - - @XmlElement(name = "auto-type", required = true) - protected String autoType; - @XmlElement(required = true) - protected String color; - @XmlElement(required = true) - protected String execute; - @XmlElement(name = "give-book", required = true) - protected String giveBook; - @XmlElement(name = "hover-text", required = true) - protected String hoverText; - @XmlElement(name = "open-book", required = true) - protected String openBook; - @XmlElement(required = true) - protected String page; - @XmlElement(required = true) - protected String styles; - @XmlElement(required = true) - protected String url; - - /** - * Gets the value of the autoType property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAutoType() { - return autoType; - } - - /** - * Sets the value of the autoType property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAutoType(String value) { - this.autoType = value; - } - - /** - * Gets the value of the color property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getColor() { - return color; - } - - /** - * Sets the value of the color property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setColor(String value) { - this.color = value; - } - - /** - * Gets the value of the execute property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getExecute() { - return execute; - } - - /** - * Sets the value of the execute property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setExecute(String value) { - this.execute = value; - } - - /** - * Gets the value of the giveBook property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGiveBook() { - return giveBook; - } - - /** - * Sets the value of the giveBook property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGiveBook(String value) { - this.giveBook = value; - } - - /** - * Gets the value of the hoverText property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getHoverText() { - return hoverText; - } - - /** - * Sets the value of the hoverText property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setHoverText(String value) { - this.hoverText = value; - } - - /** - * Gets the value of the openBook property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOpenBook() { - return openBook; - } - - /** - * Sets the value of the openBook property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOpenBook(String value) { - this.openBook = value; - } - - /** - * Gets the value of the page property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getPage() { - return page; - } - - /** - * Sets the value of the page property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setPage(String value) { - this.page = value; - } - - /** - * Gets the value of the styles property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getStyles() { - return styles; - } - - /** - * Sets the value of the styles property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setStyles(String value) { - this.styles = value; - } - - /** - * Gets the value of the url property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUrl() { - return url; - } - - /** - * Sets the value of the url property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUrl(String value) { - this.url = value; - } - - } - -} diff --git a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/library/OfflineBookLibrary.java b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/library/OfflineBookLibrary.java index 9910ce3..9b427f1 100644 --- a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/library/OfflineBookLibrary.java +++ b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/library/OfflineBookLibrary.java @@ -1,10 +1,10 @@ package com.mcmiddleearth.plugins.dynamicbooks.library; import com.mcmiddleearth.plugins.dynamicbooks.jaxb.XmlBook; +import jakarta.xml.bind.JAXBContext; +import jakarta.xml.bind.JAXBException; +import jakarta.xml.bind.Unmarshaller; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Unmarshaller; import java.io.*; import java.time.ZonedDateTime; import java.util.*; diff --git a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/library/XmlBookLibrary.java b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/library/XmlBookLibrary.java index f6cd608..2290183 100644 --- a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/library/XmlBookLibrary.java +++ b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/library/XmlBookLibrary.java @@ -5,13 +5,13 @@ import com.mcmiddleearth.plugins.dynamicbooks.books.BookBuilder; import com.mcmiddleearth.plugins.dynamicbooks.jaxb.XmlBook; import com.mcmiddleearth.plugins.dynamicbooks.jaxb.XmlTemplate; +import jakarta.xml.bind.JAXBElement; import net.md_5.bungee.api.chat.BaseComponent; import net.md_5.bungee.api.chat.ClickEvent; import net.md_5.bungee.api.chat.ComponentBuilder; import net.md_5.bungee.api.chat.HoverEvent; import org.bukkit.ChatColor; -import javax.xml.bind.JAXBElement; import java.io.Serializable; import java.time.ZonedDateTime; import java.util.*; diff --git a/src/main/xjb/book.xjb b/src/main/xjb/book.xjb index fe4e955..8f600f3 100644 --- a/src/main/xjb/book.xjb +++ b/src/main/xjb/book.xjb @@ -1,5 +1,5 @@ -