From ab52fb5b3dc9a0aa2f41e3fb9173247db1023aec Mon Sep 17 00:00:00 2001 From: Maxi Date: Sun, 27 Oct 2019 22:10:47 +0100 Subject: [PATCH 1/3] * Replacing the message_schema.xsd and the user_schema.xsd with sync_schema.xsd. * Added UserStatus * Changed bindings.xml to support the UserStatus Enum properly. --- src/main/java/envoy/schema/UserStatus.java | 22 ++++ .../{message_schema.xsd => sync_schema.xsd} | 116 ++++++++++-------- src/main/resources/user_schema.xsd | 23 ---- src/main/xjb/bindings.xml | 7 +- 4 files changed, 96 insertions(+), 72 deletions(-) create mode 100644 src/main/java/envoy/schema/UserStatus.java rename src/main/resources/{message_schema.xsd => sync_schema.xsd} (51%) delete mode 100644 src/main/resources/user_schema.xsd diff --git a/src/main/java/envoy/schema/UserStatus.java b/src/main/java/envoy/schema/UserStatus.java new file mode 100644 index 0000000..c4a5607 --- /dev/null +++ b/src/main/java/envoy/schema/UserStatus.java @@ -0,0 +1,22 @@ +package envoy.schema; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + +/** + * Project: envoy-common
+ * File: UserStatus.java
+ * Created: 27 Nov 2019
+ * + * @author Maximilian Käfer + */ +@XmlType(name = "") +@XmlEnum +public enum UserStatus { + + ONLINE, DONOTDISTURB, AFK, OFFLINE; + + public String value() { return name(); } + + public static UserStatus fromValue(String v) { return valueOf(v); } +} diff --git a/src/main/resources/message_schema.xsd b/src/main/resources/sync_schema.xsd similarity index 51% rename from src/main/resources/message_schema.xsd rename to src/main/resources/sync_schema.xsd index 0b27158..58d1ce7 100644 --- a/src/main/resources/message_schema.xsd +++ b/src/main/resources/sync_schema.xsd @@ -1,48 +1,68 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/user_schema.xsd b/src/main/resources/user_schema.xsd deleted file mode 100644 index 93c18f9..0000000 --- a/src/main/resources/user_schema.xsd +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/xjb/bindings.xml b/src/main/xjb/bindings.xml index 66ef12c..a690920 100644 --- a/src/main/xjb/bindings.xml +++ b/src/main/xjb/bindings.xml @@ -6,10 +6,15 @@ fixedAttributeAsConstantProperty="true"> - + + + + + \ No newline at end of file From fef0cbd76175829cae4d4081d8dc2afcd8e75c92 Mon Sep 17 00:00:00 2001 From: kske Date: Mon, 28 Oct 2019 06:18:16 +0100 Subject: [PATCH 2/3] Fixed name of list properties --- .classpath | 1 + src/main/java/envoy/schema/UserStatus.java | 2 +- src/main/resources/sync_schema.xsd | 50 +++++++++++----------- src/main/xjb/bindings.xml | 17 +++++++- 4 files changed, 43 insertions(+), 27 deletions(-) diff --git a/.classpath b/.classpath index a9a94b3..4482efd 100644 --- a/.classpath +++ b/.classpath @@ -32,6 +32,7 @@ + diff --git a/src/main/java/envoy/schema/UserStatus.java b/src/main/java/envoy/schema/UserStatus.java index c4a5607..2ab571d 100644 --- a/src/main/java/envoy/schema/UserStatus.java +++ b/src/main/java/envoy/schema/UserStatus.java @@ -14,7 +14,7 @@ import javax.xml.bind.annotation.XmlType; @XmlEnum public enum UserStatus { - ONLINE, DONOTDISTURB, AFK, OFFLINE; + Online, DoNotDisturb, AFK, Offline; public String value() { return name(); } diff --git a/src/main/resources/sync_schema.xsd b/src/main/resources/sync_schema.xsd index 58d1ce7..7b20b87 100644 --- a/src/main/resources/sync_schema.xsd +++ b/src/main/resources/sync_schema.xsd @@ -4,17 +4,19 @@ xmlns="https://github.com/informatik-ag-ngl" elementFormDefault="qualified"> - - - - - - - - + + + + + + + + - + @@ -22,14 +24,14 @@ - + - - - - + + + + @@ -48,20 +50,20 @@ - + - - - - - - - - - + + + + + + + + + diff --git a/src/main/xjb/bindings.xml b/src/main/xjb/bindings.xml index a690920..4dc2c23 100644 --- a/src/main/xjb/bindings.xml +++ b/src/main/xjb/bindings.xml @@ -1,3 +1,5 @@ + + - + + + + + + + + + + - + + \ No newline at end of file From 1225da6d35aa99d602d9dcd2d64c10acdd0a1c87 Mon Sep 17 00:00:00 2001 From: Maxi Date: Fri, 1 Nov 2019 12:17:00 +0100 Subject: [PATCH 3/3] Adjusted Java Doc Created --- .classpath | 6 ------ src/main/java/envoy/schema/UserStatus.java | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.classpath b/.classpath index 4482efd..d2c0172 100644 --- a/.classpath +++ b/.classpath @@ -13,12 +13,6 @@ - - - - - - diff --git a/src/main/java/envoy/schema/UserStatus.java b/src/main/java/envoy/schema/UserStatus.java index 2ab571d..f87d576 100644 --- a/src/main/java/envoy/schema/UserStatus.java +++ b/src/main/java/envoy/schema/UserStatus.java @@ -6,7 +6,7 @@ import javax.xml.bind.annotation.XmlType; /** * Project: envoy-common
* File: UserStatus.java
- * Created: 27 Nov 2019
+ * Created: 27 Oct 2019
* * @author Maximilian Käfer */