aboutsummaryrefslogtreecommitdiffstats
blob: b2bace0edf09703d9df5bad41012b51669401a73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<xsd:schema
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        targetNamespace="rs"
        xmlns:rs="rs"
        elementFormDefault="qualified">

    <xsd:element name="main" type="rs:Main"/>

    <xsd:complexType name="Main">
        <xsd:sequence>
            <xsd:element name="numbers" type="rs:Numbers"/>
            <xsd:element maxOccurs="2" minOccurs="1" name="strings" type="rs:Strings"/>
            <xsd:element nillable="true" name="unsignedByte" type="rs:unsignedByte"/>
            <xsd:element nillable="false" name="byteArray" type="rs:byteArray"/>
            <xsd:element name="someCollection" minOccurs="1" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="Numbers">
        <xsd:sequence>
            <xsd:element name="minInclusive" type="rs:minInclusive"/>
            <xsd:element name="maxInclusive" type="rs:maxInclusive"/>
            <xsd:element name="minExclusive" type="rs:minExclusive"/>
            <xsd:element name="maxExclusive" type="rs:maxExclusive"/>
            <xsd:element name="minMaxExclusive" type="rs:minMaxExclusive"/>
            <xsd:element maxOccurs="1" minOccurs="1" name="NumberWithHiddenValueAttribute" type="rs:NumberWithHiddenValueAttribute"/>
        </xsd:sequence>
    </xsd:complexType>


    <xsd:simpleType name="Number">
        <xsd:restriction base="xsd:string">
            <xsd:minLength value="1"/>
            <xsd:maxLength value="5"/>
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:complexType name="NumberWithHiddenValueAttribute">
        <xsd:simpleContent>
            <xsd:extension base="rs:Number">
                <xsd:attribute name="code" type="xsd:string" use="required"/>
                <xsd:attribute name = "whatNumber" type="xsd:long" use="required"/>
            </xsd:extension>
        </xsd:simpleContent>
    </xsd:complexType>


    <xsd:complexType name="Strings">
        <xsd:sequence>
            <xsd:element name="regexShorthands" type="rs:regexShorthands"/>
            <xsd:element name="idType" type="rs:idType"/>
            <xsd:element name="genericString" type="rs:minMaxLength"/>
            <xsd:element name="maxLength" type="rs:maxLength"/>
            <xsd:element name="minLength" type="rs:minLength"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:simpleType name="regexShorthands">
        <xsd:restriction base="xsd:string">
            <xsd:pattern value="\i"/>
            <xsd:pattern value="\I"/>
            <xsd:pattern value="\c"/>
            <xsd:pattern value="\C"/>
            <xsd:pattern value="\d"/>
            <xsd:pattern value="\D"/>
            <!--'This shorthand translates to a pattern with ampersand characters, which causes the Java Matcher behave non-deterministically and malfunction from time to time!'-->
            <!--<xsd:pattern value="\w"/>-->
            <!--'This shorthand translates to a pattern with ampersand characters, which causes the Java Matcher behave non-deterministically and malfunction from time to time!'-->
            <!--<xsd:pattern value="\W"/>-->
            <xsd:pattern value="\s"/>
            <xsd:pattern value="\S"/>
            <!--'This expression is not supported in the current option setting.'-->
            <!--<xsd:pattern value="\b"/>-->
            <!--'This expression is not supported in the current option setting.'-->
            <!--<xsd:pattern value="\B"/>-->
            <xsd:pattern value="\h"/>
            <xsd:pattern value="\H"/>
            <!--'This expression is not supported in the current option setting.'-->
            <!--<xsd:pattern value="\v"/>-->
            <xsd:pattern value="\V"/>
            <!--'This expression is not supported in the current option setting.'-->
            <!--<xsd:pattern value="\X"/>-->
            <xsd:pattern value="\R"/>
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="minMaxLength">
        <xsd:restriction base="xsd:string">
            <xsd:minLength value="0"/>
            <xsd:maxLength value="1024"/>
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="maxLength">
        <xsd:restriction base="xsd:string">
            <xsd:maxLength value="1024"/>
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="minLength">
        <xsd:restriction base="xsd:string">
            <xsd:minLength value="0"/>
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="unsignedByte">
        <xsd:restriction base="xsd:unsignedByte">
            <xsd:pattern value="[0-9]"/>
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="maxInclusive">
        <xsd:restriction base="xsd:long">
            <xsd:maxInclusive value="1000"/>
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="minInclusive">
        <xsd:restriction base="xsd:long">
            <xsd:minInclusive value="1000"/>
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="maxExclusive">
        <xsd:restriction base="xsd:long">
            <xsd:maxExclusive value="1000"/>
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="minExclusive">
        <xsd:restriction base="xsd:long">
            <xsd:minExclusive value="0"/>
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="minMaxExclusive">
        <xsd:restriction base="xsd:long">
            <xsd:minExclusive value="0"/>
            <xsd:maxExclusive value="9223372"/>
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="byteArray">
        <xsd:restriction base="xsd:hexBinary">
            <xsd:maxLength value="18" />
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="idType">
        <xsd:restriction base="xsd:ID">
            <xsd:maxLength value="100"/>
        </xsd:restriction>
    </xsd:simpleType>
</xsd:schema>