From 55be45531bf68c2b8c2ec2b02cce40f70fcc47ac Mon Sep 17 00:00:00 2001 From: EriolEandur Date: Fri, 3 Dec 2021 17:00:01 +0100 Subject: [PATCH 1/5] switched to JAXB v3.0.2 --- pom.xml | 76 +++++++- .../dynamicbooks/jaxb/ObjectFactory.java | 8 +- .../plugins/dynamicbooks/jaxb/XmlBook.java | 176 +++++++++--------- .../dynamicbooks/jaxb/XmlTemplate.java | 60 +++--- 4 files changed, 194 insertions(+), 126 deletions(-) diff --git a/pom.xml b/pom.xml index dd65423..7b53d7f 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.mcmiddleearth plugin-dynamic-books - 2.0 + 2.0.1 jar Dynamic Books for MCME @@ -50,6 +50,22 @@ false + ${project.artifactId} + + + com.sun.xml.bind:* + + + + + + + + com.sun.xml.bind + + javax.xml.bind + + @@ -80,6 +96,7 @@ true plugin.yml + jaxb.properties config.yml @@ -132,17 +149,68 @@ org.codehaus.mojo jaxb2-maven-plugin 2.5.0 + + + com.sun.xml.bind + jaxb-impl + + + com.sun.xml.bind + jaxb-osgi + + + com.sun.xml.bind + jaxb-extra-osgi + + + com.sun.xml.bind + jaxb-xjc + + + com.sun.xml.bind + jaxb-core + + + com.sun.xml.bind + jaxb-jxc + + + + + + jakarta.xml.bind + jakarta.xml.bind-api + 3.0.1 + com.sun.xml.bind jaxb-impl - 2.1.2 + 3.0.2 + runtime - + diff --git a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/ObjectFactory.java b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/ObjectFactory.java index 3d33393..af60cc6 100644 --- a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/ObjectFactory.java +++ b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/ObjectFactory.java @@ -1,8 +1,8 @@ // -// 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 +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 generiert +// Siehe https://javaee.github.io/jaxb-v2/ +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2021.12.03 um 04:54:34 PM CET // diff --git a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlBook.java b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlBook.java index 1e4291e..49049dd 100644 --- a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlBook.java +++ b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlBook.java @@ -1,8 +1,8 @@ // -// 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 +// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 generiert +// Siehe https://javaee.github.io/jaxb-v2/ +// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. +// Generiert: 2021.12.03 um 04:54:34 PM CET // @@ -25,9 +25,9 @@ /** - *

Java class for anonymous complex type. + *

Java-Klasse für anonymous complex type. * - *

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

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. * *

  * <complexType>
@@ -149,7 +149,7 @@ public class XmlBook {
     protected String author;
 
     /**
-     * Gets the value of the permissions property.
+     * Ruft den Wert der permissions-Eigenschaft ab.
      * 
      * @return
      *     possible object is
@@ -161,7 +161,7 @@ public XmlBook.XmlPermissions getPermissions() {
     }
 
     /**
-     * Sets the value of the permissions property.
+     * Legt den Wert der permissions-Eigenschaft fest.
      * 
      * @param value
      *     allowed object is
@@ -173,7 +173,7 @@ public void setPermissions(XmlBook.XmlPermissions value) {
     }
 
     /**
-     * Gets the value of the templates property.
+     * Ruft den Wert der templates-Eigenschaft ab.
      * 
      * @return
      *     possible object is
@@ -185,7 +185,7 @@ public XmlBook.XmlTemplates getTemplates() {
     }
 
     /**
-     * Sets the value of the templates property.
+     * Legt den Wert der templates-Eigenschaft fest.
      * 
      * @param value
      *     allowed object is
@@ -226,7 +226,7 @@ public List getPage() {
     }
 
     /**
-     * Gets the value of the id property.
+     * Ruft den Wert der id-Eigenschaft ab.
      * 
      * @return
      *     possible object is
@@ -238,7 +238,7 @@ public String getId() {
     }
 
     /**
-     * Sets the value of the id property.
+     * Legt den Wert der id-Eigenschaft fest.
      * 
      * @param value
      *     allowed object is
@@ -250,7 +250,7 @@ public void setId(String value) {
     }
 
     /**
-     * Gets the value of the author property.
+     * Ruft den Wert der author-Eigenschaft ab.
      * 
      * @return
      *     possible object is
@@ -262,7 +262,7 @@ public String getAuthor() {
     }
 
     /**
-     * Sets the value of the author property.
+     * Legt den Wert der author-Eigenschaft fest.
      * 
      * @param value
      *     allowed object is
@@ -275,9 +275,9 @@ public void setAuthor(String value) {
 
 
     /**
-     * 

Java class for anonymous complex type. + *

Java-Klasse für anonymous complex type. * - *

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

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. * *

      * <complexType>
@@ -384,7 +384,7 @@ public List getLine() {
         }
 
         /**
-         * Gets the value of the ref property.
+         * Ruft den Wert der ref-Eigenschaft ab.
          * 
          * @return
          *     possible object is
@@ -396,7 +396,7 @@ public String getRef() {
         }
 
         /**
-         * Sets the value of the ref property.
+         * Legt den Wert der ref-Eigenschaft fest.
          * 
          * @param value
          *     allowed object is
@@ -409,9 +409,9 @@ public void setRef(String value) {
 
 
         /**
-         * 

Java class for anonymous complex type. + *

Java-Klasse für anonymous complex type. * - *

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

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. * *

          * <complexType>
@@ -512,9 +512,9 @@ public List getContent() {
 
 
             /**
-             * 

Java class for anonymous complex type. + *

Java-Klasse für anonymous complex type. * - *

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

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. * *

              * <complexType>
@@ -564,7 +564,7 @@ public static class XmlObj {
                 protected String giveBook;
 
                 /**
-                 * Gets the value of the value property.
+                 * Ruft den Wert der value-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -576,7 +576,7 @@ public String getValue() {
                 }
 
                 /**
-                 * Sets the value of the value property.
+                 * Legt den Wert der value-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -588,7 +588,7 @@ public void setValue(String value) {
                 }
 
                 /**
-                 * Gets the value of the styles property.
+                 * Ruft den Wert der styles-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -600,7 +600,7 @@ public String getStyles() {
                 }
 
                 /**
-                 * Sets the value of the styles property.
+                 * Legt den Wert der styles-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -612,7 +612,7 @@ public void setStyles(String value) {
                 }
 
                 /**
-                 * Gets the value of the color property.
+                 * Ruft den Wert der color-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -624,7 +624,7 @@ public String getColor() {
                 }
 
                 /**
-                 * Sets the value of the color property.
+                 * Legt den Wert der color-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -636,7 +636,7 @@ public void setColor(String value) {
                 }
 
                 /**
-                 * Gets the value of the autoType property.
+                 * Ruft den Wert der autoType-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -648,7 +648,7 @@ public String getAutoType() {
                 }
 
                 /**
-                 * Sets the value of the autoType property.
+                 * Legt den Wert der autoType-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -660,7 +660,7 @@ public void setAutoType(String value) {
                 }
 
                 /**
-                 * Gets the value of the page property.
+                 * Ruft den Wert der page-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -672,7 +672,7 @@ public String getPage() {
                 }
 
                 /**
-                 * Sets the value of the page property.
+                 * Legt den Wert der page-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -684,7 +684,7 @@ public void setPage(String value) {
                 }
 
                 /**
-                 * Gets the value of the url property.
+                 * Ruft den Wert der url-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -696,7 +696,7 @@ public String getUrl() {
                 }
 
                 /**
-                 * Sets the value of the url property.
+                 * Legt den Wert der url-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -708,7 +708,7 @@ public void setUrl(String value) {
                 }
 
                 /**
-                 * Gets the value of the hoverText property.
+                 * Ruft den Wert der hoverText-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -720,7 +720,7 @@ public String getHoverText() {
                 }
 
                 /**
-                 * Sets the value of the hoverText property.
+                 * Legt den Wert der hoverText-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -732,7 +732,7 @@ public void setHoverText(String value) {
                 }
 
                 /**
-                 * Gets the value of the execute property.
+                 * Ruft den Wert der execute-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -744,7 +744,7 @@ public String getExecute() {
                 }
 
                 /**
-                 * Sets the value of the execute property.
+                 * Legt den Wert der execute-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -756,7 +756,7 @@ public void setExecute(String value) {
                 }
 
                 /**
-                 * Gets the value of the openBook property.
+                 * Ruft den Wert der openBook-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -768,7 +768,7 @@ public String getOpenBook() {
                 }
 
                 /**
-                 * Sets the value of the openBook property.
+                 * Legt den Wert der openBook-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -780,7 +780,7 @@ public void setOpenBook(String value) {
                 }
 
                 /**
-                 * Gets the value of the giveBook property.
+                 * Ruft den Wert der giveBook-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -792,7 +792,7 @@ public String getGiveBook() {
                 }
 
                 /**
-                 * Sets the value of the giveBook property.
+                 * Legt den Wert der giveBook-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -807,9 +807,9 @@ public void setGiveBook(String value) {
 
 
             /**
-             * 

Java class for anonymous complex type. + *

Java-Klasse für anonymous complex type. * - *

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

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. * *

              * <complexType>
@@ -877,7 +877,7 @@ public static class XmlTpl {
                 protected String giveBook;
 
                 /**
-                 * Gets the value of the value property.
+                 * Ruft den Wert der value-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -889,7 +889,7 @@ public String getValue() {
                 }
 
                 /**
-                 * Sets the value of the value property.
+                 * Legt den Wert der value-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -901,7 +901,7 @@ public void setValue(String value) {
                 }
 
                 /**
-                 * Gets the value of the ref property.
+                 * Ruft den Wert der ref-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -913,7 +913,7 @@ public String getRef() {
                 }
 
                 /**
-                 * Sets the value of the ref property.
+                 * Legt den Wert der ref-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -925,7 +925,7 @@ public void setRef(String value) {
                 }
 
                 /**
-                 * Gets the value of the arg1 property.
+                 * Ruft den Wert der arg1-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -937,7 +937,7 @@ public String getArg1() {
                 }
 
                 /**
-                 * Sets the value of the arg1 property.
+                 * Legt den Wert der arg1-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -949,7 +949,7 @@ public void setArg1(String value) {
                 }
 
                 /**
-                 * Gets the value of the arg2 property.
+                 * Ruft den Wert der arg2-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -961,7 +961,7 @@ public String getArg2() {
                 }
 
                 /**
-                 * Sets the value of the arg2 property.
+                 * Legt den Wert der arg2-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -973,7 +973,7 @@ public void setArg2(String value) {
                 }
 
                 /**
-                 * Gets the value of the arg3 property.
+                 * Ruft den Wert der arg3-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -985,7 +985,7 @@ public String getArg3() {
                 }
 
                 /**
-                 * Sets the value of the arg3 property.
+                 * Legt den Wert der arg3-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -997,7 +997,7 @@ public void setArg3(String value) {
                 }
 
                 /**
-                 * Gets the value of the arg4 property.
+                 * Ruft den Wert der arg4-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -1009,7 +1009,7 @@ public String getArg4() {
                 }
 
                 /**
-                 * Sets the value of the arg4 property.
+                 * Legt den Wert der arg4-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -1021,7 +1021,7 @@ public void setArg4(String value) {
                 }
 
                 /**
-                 * Gets the value of the arg5 property.
+                 * Ruft den Wert der arg5-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -1033,7 +1033,7 @@ public String getArg5() {
                 }
 
                 /**
-                 * Sets the value of the arg5 property.
+                 * Legt den Wert der arg5-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -1045,7 +1045,7 @@ public void setArg5(String value) {
                 }
 
                 /**
-                 * Gets the value of the styles property.
+                 * Ruft den Wert der styles-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -1057,7 +1057,7 @@ public String getStyles() {
                 }
 
                 /**
-                 * Sets the value of the styles property.
+                 * Legt den Wert der styles-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -1069,7 +1069,7 @@ public void setStyles(String value) {
                 }
 
                 /**
-                 * Gets the value of the color property.
+                 * Ruft den Wert der color-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -1081,7 +1081,7 @@ public String getColor() {
                 }
 
                 /**
-                 * Sets the value of the color property.
+                 * Legt den Wert der color-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -1093,7 +1093,7 @@ public void setColor(String value) {
                 }
 
                 /**
-                 * Gets the value of the autoType property.
+                 * Ruft den Wert der autoType-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -1105,7 +1105,7 @@ public String getAutoType() {
                 }
 
                 /**
-                 * Sets the value of the autoType property.
+                 * Legt den Wert der autoType-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -1117,7 +1117,7 @@ public void setAutoType(String value) {
                 }
 
                 /**
-                 * Gets the value of the page property.
+                 * Ruft den Wert der page-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -1129,7 +1129,7 @@ public String getPage() {
                 }
 
                 /**
-                 * Sets the value of the page property.
+                 * Legt den Wert der page-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -1141,7 +1141,7 @@ public void setPage(String value) {
                 }
 
                 /**
-                 * Gets the value of the url property.
+                 * Ruft den Wert der url-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -1153,7 +1153,7 @@ public String getUrl() {
                 }
 
                 /**
-                 * Sets the value of the url property.
+                 * Legt den Wert der url-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -1165,7 +1165,7 @@ public void setUrl(String value) {
                 }
 
                 /**
-                 * Gets the value of the hoverText property.
+                 * Ruft den Wert der hoverText-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -1177,7 +1177,7 @@ public String getHoverText() {
                 }
 
                 /**
-                 * Sets the value of the hoverText property.
+                 * Legt den Wert der hoverText-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -1189,7 +1189,7 @@ public void setHoverText(String value) {
                 }
 
                 /**
-                 * Gets the value of the execute property.
+                 * Ruft den Wert der execute-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -1201,7 +1201,7 @@ public String getExecute() {
                 }
 
                 /**
-                 * Sets the value of the execute property.
+                 * Legt den Wert der execute-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -1213,7 +1213,7 @@ public void setExecute(String value) {
                 }
 
                 /**
-                 * Gets the value of the openBook property.
+                 * Ruft den Wert der openBook-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -1225,7 +1225,7 @@ public String getOpenBook() {
                 }
 
                 /**
-                 * Sets the value of the openBook property.
+                 * Legt den Wert der openBook-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -1237,7 +1237,7 @@ public void setOpenBook(String value) {
                 }
 
                 /**
-                 * Gets the value of the giveBook property.
+                 * Ruft den Wert der giveBook-Eigenschaft ab.
                  * 
                  * @return
                  *     possible object is
@@ -1249,7 +1249,7 @@ public String getGiveBook() {
                 }
 
                 /**
-                 * Sets the value of the giveBook property.
+                 * Legt den Wert der giveBook-Eigenschaft fest.
                  * 
                  * @param value
                  *     allowed object is
@@ -1268,9 +1268,9 @@ public void setGiveBook(String value) {
 
 
     /**
-     * 

Java class for anonymous complex type. + *

Java-Klasse für anonymous complex type. * - *

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

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. * *

      * <complexType>
@@ -1304,7 +1304,7 @@ public static class XmlPermissions {
         protected String openremote;
 
         /**
-         * Gets the value of the give property.
+         * Ruft den Wert der give-Eigenschaft ab.
          * 
          * @return
          *     possible object is
@@ -1316,7 +1316,7 @@ public String getGive() {
         }
 
         /**
-         * Sets the value of the give property.
+         * Legt den Wert der give-Eigenschaft fest.
          * 
          * @param value
          *     allowed object is
@@ -1328,7 +1328,7 @@ public void setGive(String value) {
         }
 
         /**
-         * Gets the value of the open property.
+         * Ruft den Wert der open-Eigenschaft ab.
          * 
          * @return
          *     possible object is
@@ -1340,7 +1340,7 @@ public String getOpen() {
         }
 
         /**
-         * Sets the value of the open property.
+         * Legt den Wert der open-Eigenschaft fest.
          * 
          * @param value
          *     allowed object is
@@ -1352,7 +1352,7 @@ public void setOpen(String value) {
         }
 
         /**
-         * Gets the value of the giveremote property.
+         * Ruft den Wert der giveremote-Eigenschaft ab.
          * 
          * @return
          *     possible object is
@@ -1364,7 +1364,7 @@ public String getGiveremote() {
         }
 
         /**
-         * Sets the value of the giveremote property.
+         * Legt den Wert der giveremote-Eigenschaft fest.
          * 
          * @param value
          *     allowed object is
@@ -1376,7 +1376,7 @@ public void setGiveremote(String value) {
         }
 
         /**
-         * Gets the value of the openremote property.
+         * Ruft den Wert der openremote-Eigenschaft ab.
          * 
          * @return
          *     possible object is
@@ -1388,7 +1388,7 @@ public String getOpenremote() {
         }
 
         /**
-         * Sets the value of the openremote property.
+         * Legt den Wert der openremote-Eigenschaft fest.
          * 
          * @param value
          *     allowed object is
@@ -1403,9 +1403,9 @@ public void setOpenremote(String value) {
 
 
     /**
-     * 

Java class for anonymous complex type. + *

Java-Klasse für anonymous complex type. * - *

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

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. * *

      * <complexType>
diff --git a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlTemplate.java b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlTemplate.java
index 8551ed0..bf89e10 100644
--- a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlTemplate.java
+++ b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlTemplate.java
@@ -1,8 +1,8 @@
 //
-// 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 
+// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 generiert 
+// Siehe https://javaee.github.io/jaxb-v2/ 
+// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. 
+// Generiert: 2021.12.03 um 04:54:34 PM CET 
 //
 
 
@@ -15,9 +15,9 @@
 
 
 /**
- * 

Java class for template complex type. + *

Java-Klasse für template complex type. * - *

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

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. * *

  * <complexType name="template">
@@ -65,7 +65,7 @@ public class XmlTemplate {
     protected XmlTemplate.XmlOptions options;
 
     /**
-     * Gets the value of the name property.
+     * Ruft den Wert der name-Eigenschaft ab.
      * 
      * @return
      *     possible object is
@@ -77,7 +77,7 @@ public String getName() {
     }
 
     /**
-     * Sets the value of the name property.
+     * Legt den Wert der name-Eigenschaft fest.
      * 
      * @param value
      *     allowed object is
@@ -89,7 +89,7 @@ public void setName(String value) {
     }
 
     /**
-     * Gets the value of the options property.
+     * Ruft den Wert der options-Eigenschaft ab.
      * 
      * @return
      *     possible object is
@@ -101,7 +101,7 @@ public XmlTemplate.XmlOptions getOptions() {
     }
 
     /**
-     * Sets the value of the options property.
+     * Legt den Wert der options-Eigenschaft fest.
      * 
      * @param value
      *     allowed object is
@@ -114,9 +114,9 @@ public void setOptions(XmlTemplate.XmlOptions value) {
 
 
     /**
-     * 

Java class for anonymous complex type. + *

Java-Klasse für anonymous complex type. * - *

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

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. * *

      * <complexType>
@@ -174,7 +174,7 @@ public static class XmlOptions {
         protected String url;
 
         /**
-         * Gets the value of the autoType property.
+         * Ruft den Wert der autoType-Eigenschaft ab.
          * 
          * @return
          *     possible object is
@@ -186,7 +186,7 @@ public String getAutoType() {
         }
 
         /**
-         * Sets the value of the autoType property.
+         * Legt den Wert der autoType-Eigenschaft fest.
          * 
          * @param value
          *     allowed object is
@@ -198,7 +198,7 @@ public void setAutoType(String value) {
         }
 
         /**
-         * Gets the value of the color property.
+         * Ruft den Wert der color-Eigenschaft ab.
          * 
          * @return
          *     possible object is
@@ -210,7 +210,7 @@ public String getColor() {
         }
 
         /**
-         * Sets the value of the color property.
+         * Legt den Wert der color-Eigenschaft fest.
          * 
          * @param value
          *     allowed object is
@@ -222,7 +222,7 @@ public void setColor(String value) {
         }
 
         /**
-         * Gets the value of the execute property.
+         * Ruft den Wert der execute-Eigenschaft ab.
          * 
          * @return
          *     possible object is
@@ -234,7 +234,7 @@ public String getExecute() {
         }
 
         /**
-         * Sets the value of the execute property.
+         * Legt den Wert der execute-Eigenschaft fest.
          * 
          * @param value
          *     allowed object is
@@ -246,7 +246,7 @@ public void setExecute(String value) {
         }
 
         /**
-         * Gets the value of the giveBook property.
+         * Ruft den Wert der giveBook-Eigenschaft ab.
          * 
          * @return
          *     possible object is
@@ -258,7 +258,7 @@ public String getGiveBook() {
         }
 
         /**
-         * Sets the value of the giveBook property.
+         * Legt den Wert der giveBook-Eigenschaft fest.
          * 
          * @param value
          *     allowed object is
@@ -270,7 +270,7 @@ public void setGiveBook(String value) {
         }
 
         /**
-         * Gets the value of the hoverText property.
+         * Ruft den Wert der hoverText-Eigenschaft ab.
          * 
          * @return
          *     possible object is
@@ -282,7 +282,7 @@ public String getHoverText() {
         }
 
         /**
-         * Sets the value of the hoverText property.
+         * Legt den Wert der hoverText-Eigenschaft fest.
          * 
          * @param value
          *     allowed object is
@@ -294,7 +294,7 @@ public void setHoverText(String value) {
         }
 
         /**
-         * Gets the value of the openBook property.
+         * Ruft den Wert der openBook-Eigenschaft ab.
          * 
          * @return
          *     possible object is
@@ -306,7 +306,7 @@ public String getOpenBook() {
         }
 
         /**
-         * Sets the value of the openBook property.
+         * Legt den Wert der openBook-Eigenschaft fest.
          * 
          * @param value
          *     allowed object is
@@ -318,7 +318,7 @@ public void setOpenBook(String value) {
         }
 
         /**
-         * Gets the value of the page property.
+         * Ruft den Wert der page-Eigenschaft ab.
          * 
          * @return
          *     possible object is
@@ -330,7 +330,7 @@ public String getPage() {
         }
 
         /**
-         * Sets the value of the page property.
+         * Legt den Wert der page-Eigenschaft fest.
          * 
          * @param value
          *     allowed object is
@@ -342,7 +342,7 @@ public void setPage(String value) {
         }
 
         /**
-         * Gets the value of the styles property.
+         * Ruft den Wert der styles-Eigenschaft ab.
          * 
          * @return
          *     possible object is
@@ -354,7 +354,7 @@ public String getStyles() {
         }
 
         /**
-         * Sets the value of the styles property.
+         * Legt den Wert der styles-Eigenschaft fest.
          * 
          * @param value
          *     allowed object is
@@ -366,7 +366,7 @@ public void setStyles(String value) {
         }
 
         /**
-         * Gets the value of the url property.
+         * Ruft den Wert der url-Eigenschaft ab.
          * 
          * @return
          *     possible object is
@@ -378,7 +378,7 @@ public String getUrl() {
         }
 
         /**
-         * Sets the value of the url property.
+         * Legt den Wert der url-Eigenschaft fest.
          * 
          * @param value
          *     allowed object is

From 94cc68ca19b79197af9c47b80d29fc2a54cb0e62 Mon Sep 17 00:00:00 2001
From: EriolEandur 
Date: Sat, 4 Dec 2021 08:37:06 +0100
Subject: [PATCH 2/5] experimenting with dependencies

---
 pom.xml                                       | 20 ++++++++++++++-----
 .../dynamicbooks/DynamicBooksPlugin.java      |  3 +++
 .../dynamicbooks/command/BookCommand.java     |  5 +++++
 .../command/CommandBookArgument.java          |  2 +-
 .../command/CommandStringArgument.java        |  2 ++
 .../dynamicbooks/jaxb/ObjectFactory.java      |  2 +-
 .../plugins/dynamicbooks/jaxb/XmlBook.java    |  2 +-
 .../dynamicbooks/jaxb/XmlTemplate.java        |  2 +-
 8 files changed, 29 insertions(+), 9 deletions(-)

diff --git a/pom.xml b/pom.xml
index 7b53d7f..bdbed34 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,16 +54,26 @@
                             
                                 
                                    com.sun.xml.bind:*
-                                  
-                                   
+                                   javax.xml.bind:*
+                                   jakarta.xml.bind:*
                                    
                                 
                             
                             
-                                 
+                                
                                     com.sun.xml.bind
-                                     
-                                     javax.xml.bind
+                                    
+                                    com.sun.xml.internal.bind
+                                
+                                
+                                    jakarta.xml.bind
+                                    
+                                    jakarta.xml.internal.bind
+                                
+                                
+                                    javax.xml.bind
+                                    
+                                    jakarta.xml.internal.bind
                                 
                             
                         
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..7945ec4 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;
@@ -35,6 +37,7 @@ public BookCommand(DynamicBooksPlugin bookPlugin, BookLibrary bookLibrary, BookM
                                                                         )
                                                         )
                                                         .executes(c -> {
+Logger.getGlobal().info("Excecte!°");
                                                             doCommand(c.getArgument("action", String.class), c.getArgument("book", String.class), c.getSource(), c.getSource());
                                                             return 1;
                                                         })
@@ -46,11 +49,13 @@ public BookCommand(DynamicBooksPlugin bookPlugin, BookLibrary bookLibrary, BookM
     private void doCommand(String action, String book, Player source, Player target) {
         switch (action.toLowerCase()) {
             case "give":
+Logger.getGlobal().info("Give!°");
                 if (source != target) {
                     bookManager.giveRemoteBook(source, target, book);
                 } else {
                     bookManager.giveBook(source, book);
                 }
+Logger.getGlobal().info("Doene!°");
                 break;
             case "open":
                 if (source != target) {
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/command/CommandStringArgument.java b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/command/CommandStringArgument.java
index 83b60a0..92987fa 100644
--- a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/command/CommandStringArgument.java
+++ b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/command/CommandStringArgument.java
@@ -27,6 +27,8 @@ public CommandStringArgument(String... examples) {
     @Override
     public String parse(StringReader reader) throws CommandSyntaxException {
         String o = reader.readString();
+Logger.getGlobal().info("Parse: "+o);
+options.forEach(option->Logger.getGlobal().info("O: "+option));
         if (options.contains(o)) {
             return o;
         }
diff --git a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/ObjectFactory.java b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/ObjectFactory.java
index af60cc6..cc472e4 100644
--- a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/ObjectFactory.java
+++ b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/ObjectFactory.java
@@ -2,7 +2,7 @@
 // Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 generiert 
 // Siehe https://javaee.github.io/jaxb-v2/ 
 // Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. 
-// Generiert: 2021.12.03 um 04:54:34 PM CET 
+// Generiert: 2021.12.04 um 01:37:14 AM CET 
 //
 
 
diff --git a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlBook.java b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlBook.java
index 49049dd..d32b237 100644
--- a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlBook.java
+++ b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlBook.java
@@ -2,7 +2,7 @@
 // Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 generiert 
 // Siehe https://javaee.github.io/jaxb-v2/ 
 // Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. 
-// Generiert: 2021.12.03 um 04:54:34 PM CET 
+// Generiert: 2021.12.04 um 01:37:14 AM CET 
 //
 
 
diff --git a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlTemplate.java b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlTemplate.java
index bf89e10..b421e64 100644
--- a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlTemplate.java
+++ b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlTemplate.java
@@ -2,7 +2,7 @@
 // Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 generiert 
 // Siehe https://javaee.github.io/jaxb-v2/ 
 // Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. 
-// Generiert: 2021.12.03 um 04:54:34 PM CET 
+// Generiert: 2021.12.04 um 01:37:14 AM CET 
 //
 
 

From 3669dec457701cd22882e34198a003c8415648b3 Mon Sep 17 00:00:00 2001
From: Ivan1pl 
Date: Sat, 4 Dec 2021 14:46:01 +0100
Subject: [PATCH 3/5] Update JAXB to 3.0.*

---
 pom.xml                                       |  110 +-
 .../dynamicbooks/jaxb/ObjectFactory.java      |  142 --
 .../plugins/dynamicbooks/jaxb/XmlBook.java    | 1464 -----------------
 .../dynamicbooks/jaxb/XmlTemplate.java        |  394 -----
 .../library/OfflineBookLibrary.java           |    6 +-
 .../dynamicbooks/library/XmlBookLibrary.java  |    2 +-
 src/main/xjb/book.xjb                         |    4 +-
 7 files changed, 37 insertions(+), 2085 deletions(-)
 delete mode 100644 src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/ObjectFactory.java
 delete mode 100644 src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlBook.java
 delete mode 100644 src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlTemplate.java

diff --git a/pom.xml b/pom.xml
index bdbed34..d045bb1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -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
@@ -53,27 +47,39 @@
                             ${project.artifactId}
                             
                                 
-                                   com.sun.xml.bind:*
-                                   javax.xml.bind:*
-                                   jakarta.xml.bind:*
-                                   
+                                    com.sun.xml.bind:*
+                                    jakarta.xml.bind:*
+                                    com.sun.activation:jakarta.activation
                                 
                             
+                            
+                                
+                                
+                            
                             
                                 
-                                    com.sun.xml.bind
-                                    
-                                    com.sun.xml.internal.bind
+                                    com.sun.xml
+                                    dynamicbooks.com.sun.xml
+                                
+                                
+                                    com.sun.istack
+                                    dynamicbooks.com.sun.istack
+                                
+                                
+                                    com.sun.activation
+                                    dynamicbooks.com.sun.activation
                                 
                                 
                                     jakarta.xml.bind
-                                    
-                                    jakarta.xml.internal.bind
+                                    dynamicbooks.jakarta.xml.bind
+                                
+                                
+                                    jakarta.activation
+                                    dynamicbooks.jakarta.activation
                                 
                                 
-                                    javax.xml.bind
-                                    
-                                    jakarta.xml.internal.bind
+                                    org.glassfish.jaxb
+                                    dynamicbooks.org.glassfish.jaxb
                                 
                             
                         
@@ -81,9 +87,9 @@
                 
             
             
-                org.codehaus.mojo
-                jaxb2-maven-plugin
-                2.5.0
+                com.evolvedbinary.maven.mojohaus
+                jaxb-maven-plugin
+                3.0.0
                 
                     
                         xjc
@@ -95,8 +101,8 @@
                 
                     
                     com.mcmiddleearth.plugins.dynamicbooks.jaxb
-                    false
-                    ${project.basedir}/src/main/java
+                    true
+                    ${project.build.directory}/generated-sources
                 
             
         
@@ -154,38 +160,6 @@
             1.18.10
             compile
         
-        
-        
-            org.codehaus.mojo
-            jaxb2-maven-plugin
-            2.5.0
-            
-                
-                    com.sun.xml.bind
-                    jaxb-impl
-                
-                
-                    com.sun.xml.bind
-                    jaxb-osgi
-                
-                
-                    com.sun.xml.bind
-                    jaxb-extra-osgi
-                
-                
-                    com.sun.xml.bind
-                    jaxb-xjc
-                
-                
-                    com.sun.xml.bind
-                    jaxb-core
-                
-                
-                    com.sun.xml.bind
-                    jaxb-jxc
-                
-            
-        
         
         
             jakarta.xml.bind
@@ -200,27 +174,5 @@
             3.0.2
             runtime
         
-        
     
 
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 cc472e4..0000000
--- a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/ObjectFactory.java
+++ /dev/null
@@ -1,142 +0,0 @@
-//
-// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 generiert 
-// Siehe https://javaee.github.io/jaxb-v2/ 
-// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. 
-// Generiert: 2021.12.04 um 01:37:14 AM CET 
-//
-
-
-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 d32b237..0000000 --- a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlBook.java +++ /dev/null @@ -1,1464 +0,0 @@ -// -// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 generiert -// Siehe https://javaee.github.io/jaxb-v2/ -// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. -// Generiert: 2021.12.04 um 01:37:14 AM CET -// - - -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-Klasse für anonymous complex type. - * - *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. - * - *

- * <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; - - /** - * Ruft den Wert der permissions-Eigenschaft ab. - * - * @return - * possible object is - * {@link XmlBook.XmlPermissions } - * - */ - public XmlBook.XmlPermissions getPermissions() { - return permissions; - } - - /** - * Legt den Wert der permissions-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link XmlBook.XmlPermissions } - * - */ - public void setPermissions(XmlBook.XmlPermissions value) { - this.permissions = value; - } - - /** - * Ruft den Wert der templates-Eigenschaft ab. - * - * @return - * possible object is - * {@link XmlBook.XmlTemplates } - * - */ - public XmlBook.XmlTemplates getTemplates() { - return templates; - } - - /** - * Legt den Wert der templates-Eigenschaft fest. - * - * @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; - } - - /** - * Ruft den Wert der id-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } - - /** - * Legt den Wert der id-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } - - /** - * Ruft den Wert der author-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAuthor() { - return author; - } - - /** - * Legt den Wert der author-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAuthor(String value) { - this.author = value; - } - - - /** - *

Java-Klasse für anonymous complex type. - * - *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. - * - *

-     * <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; - } - - /** - * Ruft den Wert der ref-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRef() { - return ref; - } - - /** - * Legt den Wert der ref-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRef(String value) { - this.ref = value; - } - - - /** - *

Java-Klasse für anonymous complex type. - * - *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. - * - *

-         * <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-Klasse für anonymous complex type. - * - *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. - * - *

-             * <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; - - /** - * Ruft den Wert der value-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getValue() { - return value; - } - - /** - * Legt den Wert der value-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setValue(String value) { - this.value = value; - } - - /** - * Ruft den Wert der styles-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getStyles() { - return styles; - } - - /** - * Legt den Wert der styles-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setStyles(String value) { - this.styles = value; - } - - /** - * Ruft den Wert der color-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getColor() { - return color; - } - - /** - * Legt den Wert der color-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setColor(String value) { - this.color = value; - } - - /** - * Ruft den Wert der autoType-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAutoType() { - return autoType; - } - - /** - * Legt den Wert der autoType-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAutoType(String value) { - this.autoType = value; - } - - /** - * Ruft den Wert der page-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getPage() { - return page; - } - - /** - * Legt den Wert der page-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setPage(String value) { - this.page = value; - } - - /** - * Ruft den Wert der url-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUrl() { - return url; - } - - /** - * Legt den Wert der url-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUrl(String value) { - this.url = value; - } - - /** - * Ruft den Wert der hoverText-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getHoverText() { - return hoverText; - } - - /** - * Legt den Wert der hoverText-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setHoverText(String value) { - this.hoverText = value; - } - - /** - * Ruft den Wert der execute-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getExecute() { - return execute; - } - - /** - * Legt den Wert der execute-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setExecute(String value) { - this.execute = value; - } - - /** - * Ruft den Wert der openBook-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOpenBook() { - return openBook; - } - - /** - * Legt den Wert der openBook-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOpenBook(String value) { - this.openBook = value; - } - - /** - * Ruft den Wert der giveBook-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGiveBook() { - return giveBook; - } - - /** - * Legt den Wert der giveBook-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGiveBook(String value) { - this.giveBook = value; - } - - } - - - /** - *

Java-Klasse für anonymous complex type. - * - *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. - * - *

-             * <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; - - /** - * Ruft den Wert der value-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getValue() { - return value; - } - - /** - * Legt den Wert der value-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setValue(String value) { - this.value = value; - } - - /** - * Ruft den Wert der ref-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRef() { - return ref; - } - - /** - * Legt den Wert der ref-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRef(String value) { - this.ref = value; - } - - /** - * Ruft den Wert der arg1-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getArg1() { - return arg1; - } - - /** - * Legt den Wert der arg1-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setArg1(String value) { - this.arg1 = value; - } - - /** - * Ruft den Wert der arg2-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getArg2() { - return arg2; - } - - /** - * Legt den Wert der arg2-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setArg2(String value) { - this.arg2 = value; - } - - /** - * Ruft den Wert der arg3-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getArg3() { - return arg3; - } - - /** - * Legt den Wert der arg3-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setArg3(String value) { - this.arg3 = value; - } - - /** - * Ruft den Wert der arg4-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getArg4() { - return arg4; - } - - /** - * Legt den Wert der arg4-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setArg4(String value) { - this.arg4 = value; - } - - /** - * Ruft den Wert der arg5-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getArg5() { - return arg5; - } - - /** - * Legt den Wert der arg5-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setArg5(String value) { - this.arg5 = value; - } - - /** - * Ruft den Wert der styles-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getStyles() { - return styles; - } - - /** - * Legt den Wert der styles-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setStyles(String value) { - this.styles = value; - } - - /** - * Ruft den Wert der color-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getColor() { - return color; - } - - /** - * Legt den Wert der color-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setColor(String value) { - this.color = value; - } - - /** - * Ruft den Wert der autoType-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAutoType() { - return autoType; - } - - /** - * Legt den Wert der autoType-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAutoType(String value) { - this.autoType = value; - } - - /** - * Ruft den Wert der page-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getPage() { - return page; - } - - /** - * Legt den Wert der page-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setPage(String value) { - this.page = value; - } - - /** - * Ruft den Wert der url-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUrl() { - return url; - } - - /** - * Legt den Wert der url-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUrl(String value) { - this.url = value; - } - - /** - * Ruft den Wert der hoverText-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getHoverText() { - return hoverText; - } - - /** - * Legt den Wert der hoverText-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setHoverText(String value) { - this.hoverText = value; - } - - /** - * Ruft den Wert der execute-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getExecute() { - return execute; - } - - /** - * Legt den Wert der execute-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setExecute(String value) { - this.execute = value; - } - - /** - * Ruft den Wert der openBook-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOpenBook() { - return openBook; - } - - /** - * Legt den Wert der openBook-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOpenBook(String value) { - this.openBook = value; - } - - /** - * Ruft den Wert der giveBook-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGiveBook() { - return giveBook; - } - - /** - * Legt den Wert der giveBook-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGiveBook(String value) { - this.giveBook = value; - } - - } - - } - - } - - - /** - *

Java-Klasse für anonymous complex type. - * - *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. - * - *

-     * <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; - - /** - * Ruft den Wert der give-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGive() { - return give; - } - - /** - * Legt den Wert der give-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGive(String value) { - this.give = value; - } - - /** - * Ruft den Wert der open-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOpen() { - return open; - } - - /** - * Legt den Wert der open-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOpen(String value) { - this.open = value; - } - - /** - * Ruft den Wert der giveremote-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGiveremote() { - return giveremote; - } - - /** - * Legt den Wert der giveremote-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGiveremote(String value) { - this.giveremote = value; - } - - /** - * Ruft den Wert der openremote-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOpenremote() { - return openremote; - } - - /** - * Legt den Wert der openremote-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOpenremote(String value) { - this.openremote = value; - } - - } - - - /** - *

Java-Klasse für anonymous complex type. - * - *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. - * - *

-     * <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 b421e64..0000000 --- a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/jaxb/XmlTemplate.java +++ /dev/null @@ -1,394 +0,0 @@ -// -// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 generiert -// Siehe https://javaee.github.io/jaxb-v2/ -// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. -// Generiert: 2021.12.04 um 01:37:14 AM CET -// - - -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-Klasse für template complex type. - * - *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. - * - *

- * <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; - - /** - * Ruft den Wert der name-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Legt den Wert der name-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Ruft den Wert der options-Eigenschaft ab. - * - * @return - * possible object is - * {@link XmlTemplate.XmlOptions } - * - */ - public XmlTemplate.XmlOptions getOptions() { - return options; - } - - /** - * Legt den Wert der options-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link XmlTemplate.XmlOptions } - * - */ - public void setOptions(XmlTemplate.XmlOptions value) { - this.options = value; - } - - - /** - *

Java-Klasse für anonymous complex type. - * - *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. - * - *

-     * <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; - - /** - * Ruft den Wert der autoType-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAutoType() { - return autoType; - } - - /** - * Legt den Wert der autoType-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAutoType(String value) { - this.autoType = value; - } - - /** - * Ruft den Wert der color-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getColor() { - return color; - } - - /** - * Legt den Wert der color-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setColor(String value) { - this.color = value; - } - - /** - * Ruft den Wert der execute-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getExecute() { - return execute; - } - - /** - * Legt den Wert der execute-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setExecute(String value) { - this.execute = value; - } - - /** - * Ruft den Wert der giveBook-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGiveBook() { - return giveBook; - } - - /** - * Legt den Wert der giveBook-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGiveBook(String value) { - this.giveBook = value; - } - - /** - * Ruft den Wert der hoverText-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getHoverText() { - return hoverText; - } - - /** - * Legt den Wert der hoverText-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setHoverText(String value) { - this.hoverText = value; - } - - /** - * Ruft den Wert der openBook-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOpenBook() { - return openBook; - } - - /** - * Legt den Wert der openBook-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOpenBook(String value) { - this.openBook = value; - } - - /** - * Ruft den Wert der page-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getPage() { - return page; - } - - /** - * Legt den Wert der page-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setPage(String value) { - this.page = value; - } - - /** - * Ruft den Wert der styles-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getStyles() { - return styles; - } - - /** - * Legt den Wert der styles-Eigenschaft fest. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setStyles(String value) { - this.styles = value; - } - - /** - * Ruft den Wert der url-Eigenschaft ab. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUrl() { - return url; - } - - /** - * Legt den Wert der url-Eigenschaft fest. - * - * @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 @@ - From 460b84880e37a19299ce22418d6cb82df585ddfd Mon Sep 17 00:00:00 2001 From: EriolEandur Date: Sun, 5 Dec 2021 14:02:25 +0100 Subject: [PATCH 4/5] changed version to 2.1.0 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index d045bb1..94120f4 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.mcmiddleearth plugin-dynamic-books - 2.0.1 + 2.1.0 jar Dynamic Books for MCME From ee4ec5260b7b7ddfa94c20ce5d6762bd496c34e4 Mon Sep 17 00:00:00 2001 From: EriolEandur Date: Sun, 5 Dec 2021 14:03:14 +0100 Subject: [PATCH 5/5] cleanup --- .../plugins/dynamicbooks/command/BookCommand.java | 3 --- .../plugins/dynamicbooks/command/CommandStringArgument.java | 2 -- 2 files changed, 5 deletions(-) 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 7945ec4..c2d13a3 100644 --- a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/command/BookCommand.java +++ b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/command/BookCommand.java @@ -37,7 +37,6 @@ public BookCommand(DynamicBooksPlugin bookPlugin, BookLibrary bookLibrary, BookM ) ) .executes(c -> { -Logger.getGlobal().info("Excecte!°"); doCommand(c.getArgument("action", String.class), c.getArgument("book", String.class), c.getSource(), c.getSource()); return 1; }) @@ -49,13 +48,11 @@ public BookCommand(DynamicBooksPlugin bookPlugin, BookLibrary bookLibrary, BookM private void doCommand(String action, String book, Player source, Player target) { switch (action.toLowerCase()) { case "give": -Logger.getGlobal().info("Give!°"); if (source != target) { bookManager.giveRemoteBook(source, target, book); } else { bookManager.giveBook(source, book); } -Logger.getGlobal().info("Doene!°"); break; case "open": if (source != target) { diff --git a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/command/CommandStringArgument.java b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/command/CommandStringArgument.java index 92987fa..83b60a0 100644 --- a/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/command/CommandStringArgument.java +++ b/src/main/java/com/mcmiddleearth/plugins/dynamicbooks/command/CommandStringArgument.java @@ -27,8 +27,6 @@ public CommandStringArgument(String... examples) { @Override public String parse(StringReader reader) throws CommandSyntaxException { String o = reader.readString(); -Logger.getGlobal().info("Parse: "+o); -options.forEach(option->Logger.getGlobal().info("O: "+option)); if (options.contains(o)) { return o; }