Qt 4.8
qxsdschemachecker_setup.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/legal
5 **
6 ** This file is part of the QtXmlPatterns module of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:LGPL$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and Digia. For licensing terms and
14 ** conditions see http://qt.digia.com/licensing. For further information
15 ** use the contact form at http://qt.digia.com/contact-us.
16 **
17 ** GNU Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 2.1 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL included in the
21 ** packaging of this file. Please review the following information to
22 ** ensure the GNU Lesser General Public License version 2.1 requirements
23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24 **
25 ** In addition, as a special exception, Digia gives you certain additional
26 ** rights. These rights are described in the Digia Qt LGPL Exception
27 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28 **
29 ** GNU General Public License Usage
30 ** Alternatively, this file may be used under the terms of the GNU
31 ** General Public License version 3.0 as published by the Free Software
32 ** Foundation and appearing in the file LICENSE.GPL included in the
33 ** packaging of this file. Please review the following information to
34 ** ensure the GNU General Public License version 3.0 requirements will be
35 ** met: http://www.gnu.org/copyleft/gpl.html.
36 **
37 **
38 ** $QT_END_LICENSE$
39 **
40 ****************************************************************************/
41 
42 #include "qxsdschemachecker_p.h"
43 
45 
46 using namespace QPatternist;
47 
49 {
50  // string
51  {
52  QSet<XsdFacet::Type> facets;
53  facets << XsdFacet::Length
60 
62  }
63 
64  // boolean
65  {
66  QSet<XsdFacet::Type> facets;
67  facets << XsdFacet::Pattern
70 
72  }
73 
74  // float
75  {
76  QSet<XsdFacet::Type> facets;
77  facets << XsdFacet::Pattern
85 
87  }
88 
89  // double
90  {
91  QSet<XsdFacet::Type> facets;
92  facets << XsdFacet::Pattern
100 
102  }
103 
104  // decimal
105  {
106  QSet<XsdFacet::Type> facets;
107  facets << XsdFacet::TotalDigits
117 
119  }
120 
121  // duration
122  {
123  QSet<XsdFacet::Type> facets;
124  facets << XsdFacet::Pattern
132 
134  }
135 
136  // dateTime
137  {
138  QSet<XsdFacet::Type> facets;
139  facets << XsdFacet::Pattern
147 
149  }
150 
151  // time
152  {
153  QSet<XsdFacet::Type> facets;
154  facets << XsdFacet::Pattern
162 
164  }
165 
166  // date
167  {
168  QSet<XsdFacet::Type> facets;
169  facets << XsdFacet::Pattern
177 
179  }
180 
181  // gYearMonth
182  {
183  QSet<XsdFacet::Type> facets;
184  facets << XsdFacet::Pattern
192 
194  }
195 
196  // gYear
197  {
198  QSet<XsdFacet::Type> facets;
199  facets << XsdFacet::Pattern
207 
209  }
210 
211  // gMonthDay
212  {
213  QSet<XsdFacet::Type> facets;
214  facets << XsdFacet::Pattern
222 
224  }
225 
226  // gDay
227  {
228  QSet<XsdFacet::Type> facets;
229  facets << XsdFacet::Pattern
237 
239  }
240 
241  // gMonth
242  {
243  QSet<XsdFacet::Type> facets;
244  facets << XsdFacet::Pattern
252 
254  }
255 
256  // hexBinary
257  {
258  QSet<XsdFacet::Type> facets;
259  facets << XsdFacet::Length
266 
268  }
269 
270  // base64Binary
271  {
272  QSet<XsdFacet::Type> facets;
273  facets << XsdFacet::Length
280 
282  }
283 
284  // anyURI
285  {
286  QSet<XsdFacet::Type> facets;
287  facets << XsdFacet::Length
294 
296  }
297 
298  // QName
299  {
300  QSet<XsdFacet::Type> facets;
301  facets << XsdFacet::Length
308 
310  }
311 
312  // NOTATION
313  {
314  QSet<XsdFacet::Type> facets;
315  facets << XsdFacet::Length
322 
324  }
325 }
326 
Match an assertion (Assertion Definition)
Definition: qxsdfacet_p.h:116
static const AtomicType::Ptr xsBase64Binary
#define QT_END_NAMESPACE
This macro expands to.
Definition: qglobal.h:90
Match a minimum inclusive (Minimum Inclusive Definition)
Definition: qxsdfacet_p.h:111
static const AtomicType::Ptr xsDuration
static const AtomicType::Ptr xsGYearMonth
static const AtomicType::Ptr xsGMonthDay
Match a maximum exclusive (Maximum Exclusive Definition)
Definition: qxsdfacet_p.h:110
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
Definition: qhash.h:753
static const AtomicType::Ptr xsString
Match an enumeration (Enumeration Definition)
Definition: qxsdfacet_p.h:115
static const AtomicType::Ptr xsGDay
#define QT_BEGIN_NAMESPACE
This macro expands to.
Definition: qglobal.h:89
Match the minimum length (Minimum Length Definition)
Definition: qxsdfacet_p.h:105
static const AtomicType::Ptr xsDateTime
const char * name
The namespace for the internal API of QtXmlPatterns.
static const AtomicType::Ptr xsDouble
static const AtomicType::Ptr xsGYear
Match a whitespace rule (White Space Definition)
Definition: qxsdfacet_p.h:108
Match a maximum inclusive (Maximum Inclusive Definition)
Definition: qxsdfacet_p.h:109
Match some double digits (Fraction Digits Definition)
Definition: qxsdfacet_p.h:114
Match a minimum exclusive (Minimum Exclusive Definition)
Definition: qxsdfacet_p.h:112
Match some integer digits (Total Digits Definition)
Definition: qxsdfacet_p.h:113
static const AtomicType::Ptr xsQName
Match the exact length (Length Definition)
Definition: qxsdfacet_p.h:104
Match a regular expression (Pattern Definition)
Definition: qxsdfacet_p.h:107
static const AtomicType::Ptr xsFloat
static const AtomicType::Ptr xsTime
static const AtomicType::Ptr xsDecimal
static const AtomicType::Ptr xsBoolean
static const AtomicType::Ptr xsDate
QHash< QXmlName, QSet< XsdFacet::Type > > m_allowedAtomicFacets
static const AtomicType::Ptr xsNOTATION
static const AtomicType::Ptr xsGMonth
static const AtomicType::Ptr xsHexBinary
static const AtomicType::Ptr xsAnyURI
Match the maximum length (Maximum Length Definition)
Definition: qxsdfacet_p.h:106