1
2 """Generated file that augments the standard schema L{datatype
3 definitions<pyxb.binding.datatypes>} with their respective
4 U{constraining facets<http://www.w3.org/TR/xmlschema-2/index.html#rf-facets>}. At
5 one time, the C{maintainer/xsdfacet.py} script could be used to
6 generate this. No idea if that's still true.
7 """
8 import facets
9 from datatypes import *
10 gDay._CF_pattern = facets.CF_pattern()
11 gDay._CF_enumeration = facets.CF_enumeration(value_datatype=gDay)
12 gDay._CF_minExclusive = facets.CF_minExclusive(value_datatype=anySimpleType)
13 gDay._CF_whiteSpace = facets.CF_whiteSpace(value=facets._WhiteSpace_enum.collapse)
14 gDay._CF_minInclusive = facets.CF_minInclusive(value_datatype=gDay)
15 gDay._CF_maxExclusive = facets.CF_maxExclusive(value_datatype=anySimpleType)
16 gDay._CF_maxInclusive = facets.CF_maxInclusive(value_datatype=gDay)
17 gDay._InitializeFacetMap(gDay._CF_pattern,
18 gDay._CF_enumeration,
19 gDay._CF_minExclusive,
20 gDay._CF_whiteSpace,
21 gDay._CF_minInclusive,
22 gDay._CF_maxExclusive,
23 gDay._CF_maxInclusive)
24 gMonthDay._CF_pattern = facets.CF_pattern()
25 gMonthDay._CF_enumeration = facets.CF_enumeration(value_datatype=gMonthDay)
26 gMonthDay._CF_minExclusive = facets.CF_minExclusive(value_datatype=anySimpleType)
27 gMonthDay._CF_whiteSpace = facets.CF_whiteSpace(value=facets._WhiteSpace_enum.collapse)
28 gMonthDay._CF_minInclusive = facets.CF_minInclusive(value_datatype=gMonthDay)
29 gMonthDay._CF_maxExclusive = facets.CF_maxExclusive(value_datatype=anySimpleType)
30 gMonthDay._CF_maxInclusive = facets.CF_maxInclusive(value_datatype=gMonthDay)
31 gMonthDay._InitializeFacetMap(gMonthDay._CF_pattern,
32 gMonthDay._CF_enumeration,
33 gMonthDay._CF_minExclusive,
34 gMonthDay._CF_whiteSpace,
35 gMonthDay._CF_minInclusive,
36 gMonthDay._CF_maxExclusive,
37 gMonthDay._CF_maxInclusive)
38 gYearMonth._CF_pattern = facets.CF_pattern()
39 gYearMonth._CF_enumeration = facets.CF_enumeration(value_datatype=gYearMonth)
40 gYearMonth._CF_minExclusive = facets.CF_minExclusive(value_datatype=anySimpleType)
41 gYearMonth._CF_whiteSpace = facets.CF_whiteSpace(value=facets._WhiteSpace_enum.collapse)
42 gYearMonth._CF_minInclusive = facets.CF_minInclusive(value_datatype=gYearMonth)
43 gYearMonth._CF_maxExclusive = facets.CF_maxExclusive(value_datatype=anySimpleType)
44 gYearMonth._CF_maxInclusive = facets.CF_maxInclusive(value_datatype=gYearMonth)
45 gYearMonth._InitializeFacetMap(gYearMonth._CF_pattern,
46 gYearMonth._CF_enumeration,
47 gYearMonth._CF_minExclusive,
48 gYearMonth._CF_whiteSpace,
49 gYearMonth._CF_minInclusive,
50 gYearMonth._CF_maxExclusive,
51 gYearMonth._CF_maxInclusive)
52 ENTITIES._CF_minLength = facets.CF_minLength(value=nonNegativeInteger(1))
53 ENTITIES._CF_maxLength = facets.CF_maxLength()
54 ENTITIES._CF_whiteSpace = facets.CF_whiteSpace()
55 ENTITIES._CF_length = facets.CF_length()
56 ENTITIES._CF_enumeration = facets.CF_enumeration(value_datatype=ENTITIES)
57 ENTITIES._CF_pattern = facets.CF_pattern()
58 ENTITIES._InitializeFacetMap(ENTITIES._CF_minLength,
59 ENTITIES._CF_maxLength,
60 ENTITIES._CF_whiteSpace,
61 ENTITIES._CF_length,
62 ENTITIES._CF_enumeration,
63 ENTITIES._CF_pattern)
64 IDREFS._CF_minLength = facets.CF_minLength(value=nonNegativeInteger(1))
65 IDREFS._CF_maxLength = facets.CF_maxLength()
66 IDREFS._CF_whiteSpace = facets.CF_whiteSpace()
67 IDREFS._CF_length = facets.CF_length()
68 IDREFS._CF_enumeration = facets.CF_enumeration(value_datatype=IDREFS)
69 IDREFS._CF_pattern = facets.CF_pattern()
70 IDREFS._InitializeFacetMap(IDREFS._CF_minLength,
71 IDREFS._CF_maxLength,
72 IDREFS._CF_whiteSpace,
73 IDREFS._CF_length,
74 IDREFS._CF_enumeration,
75 IDREFS._CF_pattern)
76 time._CF_pattern = facets.CF_pattern()
77 time._CF_enumeration = facets.CF_enumeration(value_datatype=time)
78 time._CF_minExclusive = facets.CF_minExclusive(value_datatype=anySimpleType)
79 time._CF_whiteSpace = facets.CF_whiteSpace(value=facets._WhiteSpace_enum.collapse)
80 time._CF_minInclusive = facets.CF_minInclusive(value_datatype=time)
81 time._CF_maxExclusive = facets.CF_maxExclusive(value_datatype=anySimpleType)
82 time._CF_maxInclusive = facets.CF_maxInclusive(value_datatype=time)
83 time._InitializeFacetMap(time._CF_pattern,
84 time._CF_enumeration,
85 time._CF_minExclusive,
86 time._CF_whiteSpace,
87 time._CF_minInclusive,
88 time._CF_maxExclusive,
89 time._CF_maxInclusive)
90 date._CF_pattern = facets.CF_pattern()
91 date._CF_enumeration = facets.CF_enumeration(value_datatype=date)
92 date._CF_minExclusive = facets.CF_minExclusive(value_datatype=anySimpleType)
93 date._CF_whiteSpace = facets.CF_whiteSpace(value=facets._WhiteSpace_enum.collapse)
94 date._CF_minInclusive = facets.CF_minInclusive(value_datatype=date)
95 date._CF_maxExclusive = facets.CF_maxExclusive(value_datatype=anySimpleType)
96 date._CF_maxInclusive = facets.CF_maxInclusive(value_datatype=date)
97 date._InitializeFacetMap(date._CF_pattern,
98 date._CF_enumeration,
99 date._CF_minExclusive,
100 date._CF_whiteSpace,
101 date._CF_minInclusive,
102 date._CF_maxExclusive,
103 date._CF_maxInclusive)
104 NMTOKENS._CF_minLength = facets.CF_minLength(value=nonNegativeInteger(1))
105 NMTOKENS._CF_maxLength = facets.CF_maxLength()
106 NMTOKENS._CF_whiteSpace = facets.CF_whiteSpace()
107 NMTOKENS._CF_length = facets.CF_length()
108 NMTOKENS._CF_enumeration = facets.CF_enumeration(value_datatype=NMTOKENS)
109 NMTOKENS._CF_pattern = facets.CF_pattern()
110 NMTOKENS._InitializeFacetMap(NMTOKENS._CF_minLength,
111 NMTOKENS._CF_maxLength,
112 NMTOKENS._CF_whiteSpace,
113 NMTOKENS._CF_length,
114 NMTOKENS._CF_enumeration,
115 NMTOKENS._CF_pattern)
116 duration._CF_pattern = facets.CF_pattern()
117 duration._CF_enumeration = facets.CF_enumeration(value_datatype=duration)
118 duration._CF_minExclusive = facets.CF_minExclusive(value_datatype=anySimpleType)
119 duration._CF_whiteSpace = facets.CF_whiteSpace(value=facets._WhiteSpace_enum.collapse)
120 duration._CF_minInclusive = facets.CF_minInclusive(value_datatype=duration)
121 duration._CF_maxExclusive = facets.CF_maxExclusive(value_datatype=anySimpleType)
122 duration._CF_maxInclusive = facets.CF_maxInclusive(value_datatype=duration)
123 duration._InitializeFacetMap(duration._CF_pattern,
124 duration._CF_enumeration,
125 duration._CF_minExclusive,
126 duration._CF_whiteSpace,
127 duration._CF_minInclusive,
128 duration._CF_maxExclusive,
129 duration._CF_maxInclusive)
130 gMonth._CF_pattern = facets.CF_pattern()
131 gMonth._CF_enumeration = facets.CF_enumeration(value_datatype=gMonth)
132 gMonth._CF_minExclusive = facets.CF_minExclusive(value_datatype=anySimpleType)
133 gMonth._CF_whiteSpace = facets.CF_whiteSpace(value=facets._WhiteSpace_enum.collapse)
134 gMonth._CF_minInclusive = facets.CF_minInclusive(value_datatype=gMonth)
135 gMonth._CF_maxExclusive = facets.CF_maxExclusive(value_datatype=anySimpleType)
136 gMonth._CF_maxInclusive = facets.CF_maxInclusive(value_datatype=gMonth)
137 gMonth._InitializeFacetMap(gMonth._CF_pattern,
138 gMonth._CF_enumeration,
139 gMonth._CF_minExclusive,
140 gMonth._CF_whiteSpace,
141 gMonth._CF_minInclusive,
142 gMonth._CF_maxExclusive,
143 gMonth._CF_maxInclusive)
144 hexBinary._CF_minLength = facets.CF_minLength()
145 hexBinary._CF_maxLength = facets.CF_maxLength()
146 hexBinary._CF_whiteSpace = facets.CF_whiteSpace(value=facets._WhiteSpace_enum.collapse)
147 hexBinary._CF_length = facets.CF_length()
148 hexBinary._CF_enumeration = facets.CF_enumeration(value_datatype=hexBinary)
149 hexBinary._CF_pattern = facets.CF_pattern()
150 hexBinary._InitializeFacetMap(hexBinary._CF_minLength,
151 hexBinary._CF_maxLength,
152 hexBinary._CF_whiteSpace,
153 hexBinary._CF_length,
154 hexBinary._CF_enumeration,
155 hexBinary._CF_pattern)
156 double._CF_pattern = facets.CF_pattern()
157 double._CF_enumeration = facets.CF_enumeration(value_datatype=double)
158 double._CF_minExclusive = facets.CF_minExclusive(value_datatype=anySimpleType)
159 double._CF_whiteSpace = facets.CF_whiteSpace(value=facets._WhiteSpace_enum.collapse)
160 double._CF_minInclusive = facets.CF_minInclusive(value_datatype=double)
161 double._CF_maxExclusive = facets.CF_maxExclusive(value_datatype=anySimpleType)
162 double._CF_maxInclusive = facets.CF_maxInclusive(value_datatype=double)
163 double._InitializeFacetMap(double._CF_pattern,
164 double._CF_enumeration,
165 double._CF_minExclusive,
166 double._CF_whiteSpace,
167 double._CF_minInclusive,
168 double._CF_maxExclusive,
169 double._CF_maxInclusive)
170 QName._CF_minLength = facets.CF_minLength()
171 QName._CF_maxLength = facets.CF_maxLength()
172 QName._CF_whiteSpace = facets.CF_whiteSpace(value=facets._WhiteSpace_enum.collapse)
173 QName._CF_length = facets.CF_length()
174 QName._CF_enumeration = facets.CF_enumeration(value_datatype=QName)
175 QName._CF_pattern = facets.CF_pattern()
176 QName._InitializeFacetMap(QName._CF_minLength,
177 QName._CF_maxLength,
178 QName._CF_whiteSpace,
179 QName._CF_length,
180 QName._CF_enumeration,
181 QName._CF_pattern)
182 NOTATION._CF_minLength = facets.CF_minLength()
183 NOTATION._CF_maxLength = facets.CF_maxLength()
184 NOTATION._CF_whiteSpace = facets.CF_whiteSpace(value=facets._WhiteSpace_enum.collapse)
185 NOTATION._CF_length = facets.CF_length()
186 NOTATION._CF_enumeration = facets.CF_enumeration(value_datatype=NOTATION)
187 NOTATION._CF_pattern = facets.CF_pattern()
188 NOTATION._InitializeFacetMap(NOTATION._CF_minLength,
189 NOTATION._CF_maxLength,
190 NOTATION._CF_whiteSpace,
191 NOTATION._CF_length,
192 NOTATION._CF_enumeration,
193 NOTATION._CF_pattern)
194 decimal._CF_fractionDigits = facets.CF_fractionDigits()
195 decimal._CF_maxInclusive = facets.CF_maxInclusive(value_datatype=decimal)
196 decimal._CF_minExclusive = facets.CF_minExclusive(value_datatype=anySimpleType)
197 decimal._CF_whiteSpace = facets.CF_whiteSpace(value=facets._WhiteSpace_enum.collapse)
198 decimal._CF_totalDigits = facets.CF_totalDigits()
199 decimal._CF_enumeration = facets.CF_enumeration(value_datatype=decimal)
200 decimal._CF_minInclusive = facets.CF_minInclusive(value_datatype=decimal)
201 decimal._CF_pattern = facets.CF_pattern()
202 decimal._CF_maxExclusive = facets.CF_maxExclusive(value_datatype=anySimpleType)
203 decimal._InitializeFacetMap(decimal._CF_fractionDigits,
204 decimal._CF_maxInclusive,
205 decimal._CF_minExclusive,
206 decimal._CF_whiteSpace,
207 decimal._CF_totalDigits,
208 decimal._CF_enumeration,
209 decimal._CF_minInclusive,
210 decimal._CF_pattern,
211 decimal._CF_maxExclusive)
212 gYear._CF_pattern = facets.CF_pattern()
213 gYear._CF_enumeration = facets.CF_enumeration(value_datatype=gYear)
214 gYear._CF_minExclusive = facets.CF_minExclusive(value_datatype=anySimpleType)
215 gYear._CF_whiteSpace = facets.CF_whiteSpace(value=facets._WhiteSpace_enum.collapse)
216 gYear._CF_minInclusive = facets.CF_minInclusive(value_datatype=gYear)
217 gYear._CF_maxExclusive = facets.CF_maxExclusive(value_datatype=anySimpleType)
218 gYear._CF_maxInclusive = facets.CF_maxInclusive(value_datatype=gYear)
219 gYear._InitializeFacetMap(gYear._CF_pattern,
220 gYear._CF_enumeration,
221 gYear._CF_minExclusive,
222 gYear._CF_whiteSpace,
223 gYear._CF_minInclusive,
224 gYear._CF_maxExclusive,
225 gYear._CF_maxInclusive)
226 boolean._CF_pattern = facets.CF_pattern()
227 boolean._CF_whiteSpace = facets.CF_whiteSpace(value=facets._WhiteSpace_enum.collapse)
228 boolean._InitializeFacetMap(boolean._CF_pattern,
229 boolean._CF_whiteSpace)
230 base64Binary._CF_minLength = facets.CF_minLength()
231 base64Binary._CF_maxLength = facets.CF_maxLength()
232 base64Binary._CF_whiteSpace = facets.CF_whiteSpace(value=facets._WhiteSpace_enum.collapse)
233 base64Binary._CF_length = facets.CF_length()
234 base64Binary._CF_enumeration = facets.CF_enumeration(value_datatype=base64Binary)
235 base64Binary._CF_pattern = facets.CF_pattern()
236 base64Binary._InitializeFacetMap(base64Binary._CF_minLength,
237 base64Binary._CF_maxLength,
238 base64Binary._CF_whiteSpace,
239 base64Binary._CF_length,
240 base64Binary._CF_enumeration,
241 base64Binary._CF_pattern)
242 float._CF_pattern = facets.CF_pattern()
243 float._CF_enumeration = facets.CF_enumeration(value_datatype=float)
244 float._CF_minExclusive = facets.CF_minExclusive(value_datatype=anySimpleType)
245 float._CF_whiteSpace = facets.CF_whiteSpace(value=facets._WhiteSpace_enum.collapse)
246 float._CF_minInclusive = facets.CF_minInclusive(value_datatype=float)
247 float._CF_maxExclusive = facets.CF_maxExclusive(value_datatype=anySimpleType)
248 float._CF_maxInclusive = facets.CF_maxInclusive(value_datatype=float)
249 float._InitializeFacetMap(float._CF_pattern,
250 float._CF_enumeration,
251 float._CF_minExclusive,
252 float._CF_whiteSpace,
253 float._CF_minInclusive,
254 float._CF_maxExclusive,
255 float._CF_maxInclusive)
256 anyURI._CF_minLength = facets.CF_minLength()
257 anyURI._CF_maxLength = facets.CF_maxLength()
258 anyURI._CF_whiteSpace = facets.CF_whiteSpace(value=facets._WhiteSpace_enum.collapse)
259 anyURI._CF_length = facets.CF_length()
260 anyURI._CF_enumeration = facets.CF_enumeration(value_datatype=anyURI)
261 anyURI._CF_pattern = facets.CF_pattern()
262 anyURI._InitializeFacetMap(anyURI._CF_minLength,
263 anyURI._CF_maxLength,
264 anyURI._CF_whiteSpace,
265 anyURI._CF_length,
266 anyURI._CF_enumeration,
267 anyURI._CF_pattern)
268 string._CF_minLength = facets.CF_minLength()
269 string._CF_maxLength = facets.CF_maxLength()
270 string._CF_whiteSpace = facets.CF_whiteSpace(value=facets._WhiteSpace_enum.preserve)
271 string._CF_length = facets.CF_length()
272 string._CF_enumeration = facets.CF_enumeration(value_datatype=string)
273 string._CF_pattern = facets.CF_pattern()
274 string._InitializeFacetMap(string._CF_minLength,
275 string._CF_maxLength,
276 string._CF_whiteSpace,
277 string._CF_length,
278 string._CF_enumeration,
279 string._CF_pattern)
280 dateTime._CF_pattern = facets.CF_pattern()
281 dateTime._CF_enumeration = facets.CF_enumeration(value_datatype=dateTime)
282 dateTime._CF_minExclusive = facets.CF_minExclusive(value_datatype=anySimpleType)
283 dateTime._CF_whiteSpace = facets.CF_whiteSpace(value=facets._WhiteSpace_enum.collapse)
284 dateTime._CF_minInclusive = facets.CF_minInclusive(value_datatype=dateTime)
285 dateTime._CF_maxExclusive = facets.CF_maxExclusive(value_datatype=anySimpleType)
286 dateTime._CF_maxInclusive = facets.CF_maxInclusive(value_datatype=dateTime)
287 dateTime._InitializeFacetMap(dateTime._CF_pattern,
288 dateTime._CF_enumeration,
289 dateTime._CF_minExclusive,
290 dateTime._CF_whiteSpace,
291 dateTime._CF_minInclusive,
292 dateTime._CF_maxExclusive,
293 dateTime._CF_maxInclusive)
294 normalizedString._CF_whiteSpace = facets.CF_whiteSpace(super_facet=string._CF_whiteSpace, value=facets._WhiteSpace_enum.replace)
295 normalizedString._InitializeFacetMap(normalizedString._CF_whiteSpace)
296 integer._CF_fractionDigits = facets.CF_fractionDigits(value=nonNegativeInteger(0))
297 integer._CF_pattern = facets.CF_pattern()
298 integer._CF_pattern.addPattern(pattern=u'[\\-+]?[0-9]+')
299 integer._InitializeFacetMap(integer._CF_fractionDigits,
300 integer._CF_pattern)
301 nonPositiveInteger._CF_maxInclusive = facets.CF_maxInclusive(value_datatype=nonPositiveInteger, value=nonPositiveInteger(0))
302 nonPositiveInteger._InitializeFacetMap(nonPositiveInteger._CF_maxInclusive)
303 token._CF_whiteSpace = facets.CF_whiteSpace(super_facet=normalizedString._CF_whiteSpace, value=facets._WhiteSpace_enum.collapse)
304 token._InitializeFacetMap(token._CF_whiteSpace)
305 nonNegativeInteger._CF_minInclusive = facets.CF_minInclusive(value_datatype=nonNegativeInteger, value=nonNegativeInteger(0))
306 nonNegativeInteger._InitializeFacetMap(nonNegativeInteger._CF_minInclusive)
307 long._CF_maxInclusive = facets.CF_maxInclusive(value_datatype=long, value=long(9223372036854775807))
308 long._CF_minInclusive = facets.CF_minInclusive(value_datatype=long, value=long(-9223372036854775808))
309 long._InitializeFacetMap(long._CF_maxInclusive,
310 long._CF_minInclusive)
311 negativeInteger._CF_maxInclusive = facets.CF_maxInclusive(value_datatype=negativeInteger, super_facet=nonPositiveInteger._CF_maxInclusive, value=negativeInteger(-1))
312 negativeInteger._InitializeFacetMap(negativeInteger._CF_maxInclusive)
313 Name._CF_pattern = facets.CF_pattern()
314 Name._CF_pattern.addPattern(pattern=u'\\i\\c*')
315 Name._InitializeFacetMap(Name._CF_pattern)
316 NMTOKEN._CF_pattern = facets.CF_pattern()
317 NMTOKEN._CF_pattern.addPattern(pattern=u'\\c+')
318 NMTOKEN._InitializeFacetMap(NMTOKEN._CF_pattern)
319 positiveInteger._CF_minInclusive = facets.CF_minInclusive(value_datatype=positiveInteger, super_facet=nonNegativeInteger._CF_minInclusive, value=positiveInteger(1))
320 positiveInteger._InitializeFacetMap(positiveInteger._CF_minInclusive)
321 language._CF_pattern = facets.CF_pattern()
322 language._CF_pattern.addPattern(pattern=u'[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*')
323 language._InitializeFacetMap(language._CF_pattern)
324 unsignedLong._CF_maxInclusive = facets.CF_maxInclusive(value_datatype=unsignedLong, value=unsignedLong(18446744073709551615))
325 unsignedLong._InitializeFacetMap(unsignedLong._CF_maxInclusive)
326 int._CF_maxInclusive = facets.CF_maxInclusive(value_datatype=int, super_facet=long._CF_maxInclusive, value=int(2147483647))
327 int._CF_minInclusive = facets.CF_minInclusive(value_datatype=int, super_facet=long._CF_minInclusive, value=int(-2147483648))
328 int._InitializeFacetMap(int._CF_maxInclusive,
329 int._CF_minInclusive)
330 NCName._CF_pattern = facets.CF_pattern(super_facet=Name._CF_pattern)
331 NCName._CF_pattern.addPattern(pattern=u'[\\i-[:]][\\c-[:]]*')
332 NCName._InitializeFacetMap(NCName._CF_pattern)
333 unsignedInt._CF_maxInclusive = facets.CF_maxInclusive(value_datatype=unsignedInt, super_facet=unsignedLong._CF_maxInclusive, value=unsignedInt(4294967295))
334 unsignedInt._InitializeFacetMap(unsignedInt._CF_maxInclusive)
335 short._CF_maxInclusive = facets.CF_maxInclusive(value_datatype=short, super_facet=int._CF_maxInclusive, value=short(32767))
336 short._CF_minInclusive = facets.CF_minInclusive(value_datatype=short, super_facet=int._CF_minInclusive, value=short(-32768))
337 short._InitializeFacetMap(short._CF_maxInclusive,
338 short._CF_minInclusive)
339 ENTITY._InitializeFacetMap()
340 IDREF._InitializeFacetMap()
341 ID._InitializeFacetMap()
342 unsignedShort._CF_maxInclusive = facets.CF_maxInclusive(value_datatype=unsignedShort, super_facet=unsignedInt._CF_maxInclusive, value=unsignedShort(65535))
343 unsignedShort._InitializeFacetMap(unsignedShort._CF_maxInclusive)
344 byte._CF_maxInclusive = facets.CF_maxInclusive(value_datatype=byte, super_facet=short._CF_maxInclusive, value=byte(127))
345 byte._CF_minInclusive = facets.CF_minInclusive(value_datatype=byte, super_facet=short._CF_minInclusive, value=byte(-128))
346 byte._InitializeFacetMap(byte._CF_maxInclusive,
347 byte._CF_minInclusive)
348 unsignedByte._CF_maxInclusive = facets.CF_maxInclusive(value_datatype=unsignedByte, super_facet=unsignedShort._CF_maxInclusive, value=unsignedByte(255))
349 unsignedByte._InitializeFacetMap(unsignedByte._CF_maxInclusive)
350