Xerces-C++ 3.3.0
XSWildcard.hpp
Go to the documentation of this file.
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18/*
19 * $Id$
20 */
21
22#if !defined(XERCESC_INCLUDE_GUARD_XSWILDCARD_HPP)
23#define XERCESC_INCLUDE_GUARD_XSWILDCARD_HPP
24
26
28
36// forward declarations
37class XSAnnotation;
38class SchemaAttDef;
39class ContentSpecNode;
40
42{
43public:
44
45 // Namespace Constraint
50 NSCONSTRAINT_ANY = 1,
54 NSCONSTRAINT_NOT = 2,
58 NSCONSTRAINT_DERIVATION_LIST = 3
59 };
60
61 // Process contents
67 PC_STRICT = 1,
71 PC_SKIP = 2,
78 PC_LAX = 3
79 };
80
81 // Constructors and Destructor
82 // -----------------------------------------------------------------------
85
95 (
96 SchemaAttDef* const attWildCard
97 , XSAnnotation* const annot
98 , XSModel* const xsModel
100 );
101
103 (
104 const ContentSpecNode* const elmWildCard
105 , XSAnnotation* const annot
106 , XSModel* const xsModel
108 );
109
111
116
117 //---------------------
121
125 NAMESPACE_CONSTRAINT getConstraintType() const;
126
133 StringList *getNsConstraintList();
134
139 PROCESS_CONTENTS getProcessContents() const;
140
144 XSAnnotation *getAnnotation() const;
145
147
148 //----------------------------------
152
154private:
155
156 // -----------------------------------------------------------------------
157 // Unimplemented constructors and operators
158 // -----------------------------------------------------------------------
159 XSWildcard(const XSWildcard&);
160 XSWildcard & operator=(const XSWildcard &);
161
165 void buildNamespaceList(const ContentSpecNode* const rootNode);
166
167protected:
168
169 // -----------------------------------------------------------------------
170 // data members
171 // -----------------------------------------------------------------------
176};
177
179{
180 return fAnnotation;
181}
182
187
192
197
198
200
201#endif
RefArrayVectorOf< XMLCh > StringList
Definition XSConstants.hpp:54
#define XMLPARSER_EXPORT
Definition XercesDefs.hpp:163
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
Configurable memory manager.
Definition MemoryManager.hpp:40
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition PlatformUtils.hpp:121
Definition XSAnnotation.hpp:42
Definition XSModel.hpp:60
Definition XSObject.hpp:43
Definition XSWildcard.hpp:42
NAMESPACE_CONSTRAINT fConstraintType
Definition XSWildcard.hpp:172
StringList * fNsConstraintList
Definition XSWildcard.hpp:174
PROCESS_CONTENTS
Definition XSWildcard.hpp:62
XSAnnotation * getAnnotation() const
Optional.
Definition XSWildcard.hpp:178
XSWildcard(SchemaAttDef *const attWildCard, XSAnnotation *const annot, XSModel *const xsModel, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
The default constructor.
StringList * getNsConstraintList()
Namespace constraint.
Definition XSWildcard.hpp:188
NAMESPACE_CONSTRAINT
Definition XSWildcard.hpp:46
XSWildcard(const ContentSpecNode *const elmWildCard, XSAnnotation *const annot, XSModel *const xsModel, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
XSAnnotation * fAnnotation
Definition XSWildcard.hpp:175
NAMESPACE_CONSTRAINT getConstraintType() const
Namespace constraint: A constraint type: any, not, list.
Definition XSWildcard.hpp:193
PROCESS_CONTENTS fProcessContents
Definition XSWildcard.hpp:173
PROCESS_CONTENTS getProcessContents() const
[process contents]: one of skip, lax or strict.
Definition XSWildcard.hpp:183