source: NonGTP/Xerces/xerces/include/xercesc/validators/schema/XercesElementWildcard.hpp @ 358

Revision 358, 3.4 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1/*
2 * Copyright 2001,2004 The Apache Software Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 * $Log: XercesElementWildcard.hpp,v $
19 * Revision 1.3  2004/09/08 13:56:58  peiyongz
20 * Apache License Version 2.0
21 *
22 * Revision 1.2  2002/11/04 14:49:42  tng
23 * C++ Namespace Support.
24 *
25 * Revision 1.1.1.1  2002/02/01 22:22:50  peiyongz
26 * sane_include
27 *
28 * Revision 1.2  2001/11/21 14:30:13  knoaman
29 * Fix for UPA checking.
30 *
31 * Revision 1.1  2001/08/21 15:58:42  tng
32 * Schema: New files XercesElementWildCard.
33 *
34
35*/
36
37
38#if !defined(XERCESELEMENTWILDCARD_HPP)
39#define XERCESELEMENTWILDCARD_HPP
40
41#include <xercesc/util/QName.hpp>
42#include <xercesc/validators/common/ContentSpecNode.hpp>
43#include <xercesc/validators/schema/SubstitutionGroupComparator.hpp>
44
45XERCES_CPP_NAMESPACE_BEGIN
46
47// ---------------------------------------------------------------------------
48//  Forward declarations
49// ---------------------------------------------------------------------------
50class SchemaGrammar;
51
52
53class VALIDATORS_EXPORT XercesElementWildcard
54{
55
56public :
57
58    // -----------------------------------------------------------------------
59    //  Class static methods
60    // -----------------------------------------------------------------------
61    /*
62     * check whether two elements are in conflict
63     */
64    static bool conflict(SchemaGrammar* const         pGrammar,
65                         ContentSpecNode::NodeTypes   type1,
66                         QName*                       q1,
67                         ContentSpecNode::NodeTypes   type2,
68                         QName*                       q2,
69                         SubstitutionGroupComparator* comparator);
70
71private:
72
73    // -----------------------------------------------------------------------
74    //  private helper methods
75    // -----------------------------------------------------------------------
76    static bool uriInWildcard(SchemaGrammar* const         pGrammar,
77                              QName*                       qname,
78                              unsigned int                 wildcard,
79                              ContentSpecNode::NodeTypes   wtype,
80                              SubstitutionGroupComparator* comparator);
81
82    static bool wildcardIntersect(ContentSpecNode::NodeTypes t1,
83                                  unsigned int               w1,
84                                  ContentSpecNode::NodeTypes t2,
85                                  unsigned int               w2);
86
87    // -----------------------------------------------------------------------
88    //  Unimplemented constructors and operators
89    // -----------------------------------------------------------------------
90    XercesElementWildcard();
91    ~XercesElementWildcard();
92};
93
94XERCES_CPP_NAMESPACE_END
95
96#endif // XERCESELEMENTWILDCARD_HPP
97
Note: See TracBrowser for help on using the repository browser.