Fixed name of list properties
This commit is contained in:
parent
ab52fb5b3d
commit
fef0cbd761
@ -32,6 +32,7 @@
|
|||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry kind="src" output="target/classes" path="target/generated-sources/jaxb">
|
<classpathentry kind="src" output="target/classes" path="target/generated-sources/jaxb">
|
||||||
<attributes>
|
<attributes>
|
||||||
|
<attribute name="ignore_optional_problems" value="true"/>
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
<attribute name="optional" value="true"/>
|
<attribute name="optional" value="true"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
|
@ -14,7 +14,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||||||
@XmlEnum
|
@XmlEnum
|
||||||
public enum UserStatus {
|
public enum UserStatus {
|
||||||
|
|
||||||
ONLINE, DONOTDISTURB, AFK, OFFLINE;
|
Online, DoNotDisturb, AFK, Offline;
|
||||||
|
|
||||||
public String value() { return name(); }
|
public String value() { return name(); }
|
||||||
|
|
||||||
|
@ -7,8 +7,10 @@
|
|||||||
<xs:element name="Sync">
|
<xs:element name="Sync">
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
<xs:element name="Message" type="Message" minOccurs="0" maxOccurs="unbounded" />
|
<xs:element name="Message" type="Message" minOccurs="0"
|
||||||
<xs:element name="User" type="User" minOccurs="0" maxOccurs="unbounded" />
|
maxOccurs="unbounded" />
|
||||||
|
<xs:element name="User" type="User" minOccurs="0"
|
||||||
|
maxOccurs="unbounded" />
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
@ -55,10 +57,10 @@
|
|||||||
<xs:element name="Status">
|
<xs:element name="Status">
|
||||||
<xs:simpleType>
|
<xs:simpleType>
|
||||||
<xs:restriction base="xs:string">
|
<xs:restriction base="xs:string">
|
||||||
<xs:enumeration value="ONLINE"/>
|
<xs:enumeration value="Online" />
|
||||||
<xs:enumeration value="DONOTDISTURB"/>
|
<xs:enumeration value="DoNotDisturb" />
|
||||||
<xs:enumeration value="AFK" />
|
<xs:enumeration value="AFK" />
|
||||||
<xs:enumeration value="OFFLINE"/>
|
<xs:enumeration value="Offline" />
|
||||||
</xs:restriction>
|
</xs:restriction>
|
||||||
</xs:simpleType>
|
</xs:simpleType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE xml>
|
||||||
<jaxb:bindings xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
<jaxb:bindings xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||||
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
|
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
|
||||||
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
|
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
|
||||||
@ -6,7 +8,17 @@
|
|||||||
fixedAttributeAsConstantProperty="true">
|
fixedAttributeAsConstantProperty="true">
|
||||||
<xjc:serializable />
|
<xjc:serializable />
|
||||||
</jaxb:globalBindings>
|
</jaxb:globalBindings>
|
||||||
<jaxb:bindings schemaLocation="../resources/sync_schema.xsd">
|
<jaxb:bindings
|
||||||
|
schemaLocation="../resources/sync_schema.xsd">
|
||||||
|
|
||||||
|
<jaxb:bindings node="//xs:element[@name='Message']">
|
||||||
|
<jaxb:property name="Messages"/>
|
||||||
|
</jaxb:bindings>
|
||||||
|
|
||||||
|
<jaxb:bindings node="//xs:element[@name='User']">
|
||||||
|
<jaxb:property name="Users"/>
|
||||||
|
</jaxb:bindings>
|
||||||
|
|
||||||
<jaxb:bindings
|
<jaxb:bindings
|
||||||
node="//xs:element[@name='State']/xs:simpleType">
|
node="//xs:element[@name='State']/xs:simpleType">
|
||||||
<jaxb:typesafeEnumClass name="MessageState" />
|
<jaxb:typesafeEnumClass name="MessageState" />
|
||||||
@ -16,5 +28,6 @@
|
|||||||
node="//xs:element[@name='Status']/xs:simpleType">
|
node="//xs:element[@name='Status']/xs:simpleType">
|
||||||
<jaxb:typesafeEnumClass name="UserStatus" />
|
<jaxb:typesafeEnumClass name="UserStatus" />
|
||||||
</jaxb:bindings>
|
</jaxb:bindings>
|
||||||
|
|
||||||
</jaxb:bindings>
|
</jaxb:bindings>
|
||||||
</jaxb:bindings>
|
</jaxb:bindings>
|
Reference in New Issue
Block a user