aboutsummaryrefslogtreecommitdiffstats
path: root/os400/libxmlrpg/xmlschemastypes.rpgle
blob: 6433c329687139a4cd30b6f4d2dfd123d9017fd9 (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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
      * Summary: implementation of XML Schema Datatypes
      * Description: module providing the XML Schema Datatypes implementation
      *              both definition and validity checking
      *
      * Copy: See Copyright for the status of this software.
      *
      * Author: Patrick Monnerat <pm@datasphere.ch>, DATASPHERE S.A.

      /if not defined(XML_SCHEMA_TYPES_H__)
      /define XML_SCHEMA_TYPES_H__

      /include "libxmlrpg/xmlversion"

      /if defined(LIBXML_SCHEMAS_ENABLED)

      /include "libxmlrpg/schemasInternals"
      /include "libxmlrpg/xmlschemas"

     d xmlSchemaWhitespaceValueType...
     d                 s             10i 0 based(######typedef######)           enum
     d  XML_SCHEMA_WHITESPACE_UNKNOWN...
     d                 c                   0
     d  XML_SCHEMA_WHITESPACE_PRESERVE...
     d                 c                   1
     d  XML_SCHEMA_WHITESPACE_REPLACE...
     d                 c                   2
     d  XML_SCHEMA_WHITESPACE_COLLAPSE...
     d                 c                   3

     d xmlSchemaInitTypes...
     d                 pr                  extproc('xmlSchemaInitTypes')

     d xmlSchemaCleanupTypes...
     d                 pr                  extproc('xmlSchemaCleanupTypes')

     d xmlSchemaGetPredefinedType...
     d                 pr                  extproc('xmlSchemaGetPredefinedType')
     d                                     like(xmlSchemaTypePtr)
     d  name                           *   value options(*string)               const xmlChar *
     d  ns                             *   value options(*string)               const xmlChar *

     d xmlSchemaValidatePredefinedType...
     d                 pr            10i 0 extproc(
     d                                     'xmlSchemaValidatePredefinedType')
     d  type                               value like(xmlSchemaTypePtr)
     d  value                          *   value options(*string)               const xmlChar *
     d  val                            *   value                                xmlSchemaValPtr *

     d xmlSchemaValPredefTypeNode...
     d                 pr            10i 0 extproc('xmlSchemaValPredefTypeNode')
     d  type                               value like(xmlSchemaTypePtr)
     d  value                          *   value options(*string)               const xmlChar *
     d  val                            *   value                                xmlSchemaValPtr *
     d  node                               value like(xmlNodePtr)

     d xmlSchemaValidateFacet...
     d                 pr            10i 0 extproc('xmlSchemaValidateFacet')
     d  base                               value like(xmlSchemaTypePtr)
     d  facet                              value like(xmlSchemaFacetPtr)
     d  value                          *   value options(*string)               const xmlChar *
     d  val                                value like(xmlSchemaValPtr)

     d xmlSchemaValidateFacetWhtsp...
     d                 pr            10i 0 extproc(
     d                                     'xmlSchemaValidateFacetWhtsp')
     d  facet                              value like(xmlSchemaFacetPtr)
     d  fws                                value
     d                                     like(xmlSchemaWhitespaceValueType)
     d  valType                            value like(xmlSchemaValType)
     d  value                          *   value options(*string)               const xmlChar *
     d  val                                value like(xmlSchemaValPtr)
     d  ws                                 value
     d                                     like(xmlSchemaWhitespaceValueType)

     d xmlSchemaFreeValue...
     d                 pr                  extproc('xmlSchemaFreeValue')
     d  val                                value like(xmlSchemaValPtr)

     d xmlSchemaNewFacet...
     d                 pr                  extproc('xmlSchemaNewFacet')
     d                                     like(xmlSchemaFacetPtr)

     d xmlSchemaCheckFacet...
     d                 pr            10i 0 extproc('xmlSchemaCheckFacet')
     d  facet                              value like(xmlSchemaFacetPtr)
     d  typeDecl                           value like(xmlSchemaTypePtr)
     d  ctxt                               value like(xmlSchemaParserCtxtPtr)
     d  name                           *   value options(*string)               const xmlChar *

     d xmlSchemaFreeFacet...
     d                 pr                  extproc('xmlSchemaFreeFacet')
     d  facet                              value like(xmlSchemaFacetPtr)

     d xmlSchemaCompareValues...
     d                 pr            10i 0 extproc('xmlSchemaCompareValues')
     d  x                                  value like(xmlSchemaValPtr)
     d  y                                  value like(xmlSchemaValPtr)

     d xmlSchemaGetBuiltInListSimpleTypeItemType...
     d                 pr                  extproc('xmlSchemaGetBuiltInListSimp-
     d                                     leTypeItemType')
     d                                     like(xmlSchemaTypePtr)
     d  type                               value like(xmlSchemaTypePtr)

     d xmlSchemaValidateListSimpleTypeFacet...
     d                 pr            10i 0 extproc('xmlSchemaValidateListSimple-
     d                                     TypeFacet')
     d  facet                              value like(xmlSchemaFacetPtr)
     d  value                          *   value options(*string)               const xmlChar *
     d  actualLen                    20u 0 value
     d  expectedLen                    *   value                                unsigned long *

     d xmlSchemaGetBuiltInType...
     d                 pr                  extproc('xmlSchemaGetBuiltInType')
     d                                     like(xmlSchemaTypePtr)
     d  type                               value like(xmlSchemaValType)

     d xmlSchemaIsBuiltInTypeFacet...
     d                 pr            10i 0 extproc(
     d                                     'xmlSchemaIsBuiltInTypeFacet')
     d  type                               value like(xmlSchemaTypePtr)
     d  facetType                    10i 0 value

     d xmlSchemaCollapseString...
     d                 pr              *   extproc('xmlSchemaCollapseString')   xmlChar *
     d  value                          *   value options(*string)               const xmlChar *

     d xmlSchemaWhiteSpaceReplace...
     d                 pr              *   extproc('xmlSchemaWhiteSpaceReplace')xmlChar *
     d  value                          *   value options(*string)               const xmlChar *

     d xmlSchemaGetFacetValueAsULong...
     d                 pr            20u 0 extproc(
     d                                     'xmlSchemaGetFacetValueAsULong')
     d  facet                              value like(xmlSchemaFacetPtr)

     d xmlSchemaValidateLengthFacet...
     d                 pr            10i 0 extproc(
     d                                     'xmlSchemaValidateLengthFacet')
     d  type                               value like(xmlSchemaTypePtr)
     d  facet                              value like(xmlSchemaFacetPtr)
     d  value                          *   value options(*string)               const xmlChar *
     d  val                                value like(xmlSchemaValPtr)
     d  length                       20u 0

     d xmlSchemaValidateLengthFacetWhtsp...
     d                 pr            10i 0 extproc(
     d                                     'xmlSchemaValidateLengthFacetWhtsp')
     d  facet                              value like(xmlSchemaFacetPtr)
     d  valType                            value like(xmlSchemaValType)
     d  value                          *   value options(*string)               const xmlChar *
     d  val                                value like(xmlSchemaValPtr)
     d  length                       20u 0
     d  ws                                 value
     d                                     like(xmlSchemaWhitespaceValueType)

     d xmlSchemaValPredefTypeNodeNoNorm...
     d                 pr            10i 0 extproc(
     d                                     'xmlSchemaValPredefTypeNodeNoNorm')
     d  type                               value like(xmlSchemaTypePtr)
     d  value                          *   value options(*string)               const xmlChar *
     d  val                                like(xmlSchemaValPtr)
     d  node                               value like(xmlNodePtr)

     d xmlSchemaGetCanonValue...
     d                 pr            10i 0 extproc('xmlSchemaGetCanonValue')
     d  val                                value like(xmlSchemaValPtr)
     d  retValue                       *   value                                const xmlChar * *

     d xmlSchemaGetCanonValueWhtsp...
     d                 pr            10i 0 extproc(
     d                                     'xmlSchemaGetCanonValueWhtsp')
     d  val                                value like(xmlSchemaValPtr)
     d  retValue                       *   value                                const xmlChar * *
     d  ws                                 value
     d                                     like(xmlSchemaWhitespaceValueType)

     d xmlSchemaValueAppend...
     d                 pr            10i 0 extproc('xmlSchemaValueAppend')
     d  prev                               value like(xmlSchemaValPtr)
     d  cur                                value like(xmlSchemaValPtr)

     d xmlSchemaValueGetNext...
     d                 pr                  extproc('xmlSchemaValueGetNext')
     d                                     like(xmlSchemaValPtr)
     d  cur                                value like(xmlSchemaValPtr)

     d xmlSchemaValueGetAsString...
     d                 pr              *   extproc('xmlSchemaValueGetAsString') const xmlChar *
     d  val                                value like(xmlSchemaValPtr)

     d xmlSchemaValueGetAsBoolean...
     d                 pr            10i 0 extproc('xmlSchemaValueGetAsBoolean')
     d  val                                value like(xmlSchemaValPtr)

     d xmlSchemaNewStringValue...
     d                 pr                  extproc('xmlSchemaNewStringValue')
     d                                     like(xmlSchemaValPtr)
     d  type                               value like(xmlSchemaValType)
     d  value                          *   value options(*string)               const xmlChar *

     d xmlSchemaNewNOTATIONValue...
     d                 pr                  extproc('xmlSchemaNewNOTATIONValue')
     d                                     like(xmlSchemaValPtr)
     d  name                           *   value options(*string)               const xmlChar *
     d  ns                             *   value options(*string)               const xmlChar *

     d xmlSchemaNewQNameValue...
     d                 pr                  extproc('xmlSchemaNewQNameValue')
     d                                     like(xmlSchemaValPtr)
     d  namespaceName                  *   value options(*string)               const xmlChar *
     d  localName                      *   value options(*string)               const xmlChar *

     d xmlSchemaCompareValuesWhtsp...
     d                 pr            10i 0 extproc(
     d                                     'xmlSchemaCompareValuesWhtsp')
     d  x                                  value like(xmlSchemaValPtr)
     d  xws                                value
     d                                     like(xmlSchemaWhitespaceValueType)
     d  y                                  value like(xmlSchemaValPtr)
     d  yws                                value
     d                                     like(xmlSchemaWhitespaceValueType)

     d xmlSchemaCopyValue...
     d                 pr                  extproc('xmlSchemaCopyValue')
     d                                     like(xmlSchemaValPtr)
     d  val                                value like(xmlSchemaValPtr)

     d xmlSchemaGetValType...
     d                 pr                  extproc('xmlSchemaGetValType')
     d                                     like(xmlSchemaValType)
     d  val                                value like(xmlSchemaValPtr)

      /endif                                                                    LIBXML_SCHEMAS_ENBLD
      /endif                                                                    XML_SCHEMA_TYPES_H__