From 46e10fb1a0099e5bd5188e347be9cbec6e681431 Mon Sep 17 00:00:00 2001 From: kske Date: Fri, 11 Oct 2019 15:10:56 +0200 Subject: [PATCH] Added MessageState enumeration and XJB file for message schema --- .classpath | 15 ++++++++----- .settings/org.eclipse.core.resources.prefs | 1 + .settings/org.eclipse.wst.common.component | 8 ++++++- pom.xml | 8 +++++++ src/main/java/envoy/schema/MessageState.java | 22 ++++++++++++++++++++ src/main/resources/message_schema.xsd | 11 +++++++++- src/main/xjb/bindings.xml | 15 +++++++++++++ 7 files changed, 73 insertions(+), 7 deletions(-) create mode 100644 src/main/java/envoy/schema/MessageState.java create mode 100644 src/main/xjb/bindings.xml diff --git a/.classpath b/.classpath index cd5c385..a9a94b3 100644 --- a/.classpath +++ b/.classpath @@ -6,11 +6,6 @@ - - - - - @@ -41,5 +36,15 @@ + + + + + + + + + + diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs index 93fb95b..8660235 100644 --- a/.settings/org.eclipse.core.resources.prefs +++ b/.settings/org.eclipse.core.resources.prefs @@ -1,6 +1,7 @@ eclipse.preferences.version=1 encoding//src/main/java=UTF-8 encoding//src/main/resources=UTF-8 +encoding//src/main/xjb=UTF-8 encoding//src/test/java=UTF-8 encoding//src/test/resources=UTF-8 encoding//target/generated-sources/jaxb=UTF-8 diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component index 9de5f51..08f1a01 100644 --- a/.settings/org.eclipse.wst.common.component +++ b/.settings/org.eclipse.wst.common.component @@ -1,7 +1,13 @@ + + - + + + + + diff --git a/pom.xml b/pom.xml index 50c664e..cf6ff6e 100644 --- a/pom.xml +++ b/pom.xml @@ -26,6 +26,14 @@ envoy-common + + + src/main/resources + + + src/main/xjb + + org.codehaus.mojo diff --git a/src/main/java/envoy/schema/MessageState.java b/src/main/java/envoy/schema/MessageState.java new file mode 100644 index 0000000..0f174c6 --- /dev/null +++ b/src/main/java/envoy/schema/MessageState.java @@ -0,0 +1,22 @@ +package envoy.schema; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + +/** + * Project: envoy-common
+ * File: MessageState.java
+ * Created: 11 Oct 2019
+ * + * @author Kai S. K. Engelbart + */ +@XmlType(name = "") +@XmlEnum +public enum MessageState { + + Waiting, Sent, Received, Read; + + public String value() { return name(); } + + public static MessageState fromValue(String v) { return valueOf(v); } +} diff --git a/src/main/resources/message_schema.xsd b/src/main/resources/message_schema.xsd index 4151e4b..c3d09f9 100644 --- a/src/main/resources/message_schema.xsd +++ b/src/main/resources/message_schema.xsd @@ -21,7 +21,16 @@ - + + + + + + + + + + diff --git a/src/main/xjb/bindings.xml b/src/main/xjb/bindings.xml new file mode 100644 index 0000000..66ef12c --- /dev/null +++ b/src/main/xjb/bindings.xml @@ -0,0 +1,15 @@ + + + + + + + + + + \ No newline at end of file