Xerces-C++ 3.2.2

XMLSchemaDescription.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: XMLSchemaDescription.hpp 527149 2007-04-10 14:56:39Z amassari $
20 */
21
22 #if !defined(XERCESC_INCLUDE_GUARD_XMLSCHEMADESCRIPTION_HPP)
23 #define XERCESC_INCLUDE_GUARD_XMLSCHEMADESCRIPTION_HPP
24
25 #include <xercesc/framework/XMLGrammarDescription.hpp>
26 #include <xercesc/util/RefArrayVectorOf.hpp>
27
28 XERCES_CPP_NAMESPACE_BEGIN
29
30 typedef const XMLCh* const LocationHint;
31
32 class XMLPARSER_EXPORT XMLSchemaDescription : public XMLGrammarDescription
33 {
34 public :
35 // -----------------------------------------------------------------------
37 // -----------------------------------------------------------------------
39
43 virtual ~XMLSchemaDescription();
45
46 // -----------------------------------------------------------------------
48 // -----------------------------------------------------------------------
50
54 virtual Grammar::GrammarType getGrammarType() const
55 {
56 return Grammar::SchemaGrammarType;
57 }
59
60 // -----------------------------------------------------------------------
62 // -----------------------------------------------------------------------
64
65 enum ContextType
66 {
67 CONTEXT_INCLUDE,
68 CONTEXT_REDEFINE,
69 CONTEXT_IMPORT,
70 CONTEXT_PREPARSE,
71 CONTEXT_INSTANCE,
72 CONTEXT_ELEMENT,
73 CONTEXT_ATTRIBUTE,
74 CONTEXT_XSITYPE,
75 CONTEXT_UNKNOWN
76 };
77
82 virtual ContextType getContextType() const = 0;
83
88 virtual const XMLCh* getTargetNamespace() const = 0;
89
94 virtual const RefArrayVectorOf<XMLCh>* getLocationHints() const = 0;
95
100 virtual const QName* getTriggeringComponent() const = 0;
101
106 virtual const QName* getEnclosingElementName() const = 0;
107
112 virtual const XMLAttDef* getAttributes() const = 0;
113
118 virtual void setContextType(ContextType) = 0;
119
124 virtual void setTargetNamespace(const XMLCh* const) = 0;
125
130 virtual void setLocationHints(const XMLCh* const) = 0;
131
136 virtual void setTriggeringComponent(QName* const) = 0;
137
142 virtual void setEnclosingElementName(QName* const) = 0;
143
148 virtual void setAttributes(XMLAttDef* const) = 0;
150
151 /***
152 * Support for Serialization/De-serialization
153 ***/
154 DECL_XSERIALIZABLE(XMLSchemaDescription)
155
156 protected :
157 // -----------------------------------------------------------------------
159 // -----------------------------------------------------------------------
161 XMLSchemaDescription(MemoryManager* const memMgr = XMLPlatformUtils::fgMemoryManager);
163
164 private :
165 // -----------------------------------------------------------------------
167 // -----------------------------------------------------------------------
169 XMLSchemaDescription(const XMLSchemaDescription& );
170 XMLSchemaDescription& operator=(const XMLSchemaDescription& );
172
173 };
174
175
176 XERCES_CPP_NAMESPACE_END
177
178 #endif
LocationHint
XERCES_CPP_NAMESPACE_BEGIN typedef const XMLCh *const LocationHint
Definition: XMLSchemaDescription.hpp:30
XMLPlatformUtils::fgMemoryManager
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition: PlatformUtils.hpp:121
XMLSchemaDescription::CONTEXT_ATTRIBUTE
Definition: XMLSchemaDescription.hpp:73
XMLGrammarDescription.hpp
XMLSchemaDescription::CONTEXT_PREPARSE
Definition: XMLSchemaDescription.hpp:70
XMLPARSER_EXPORT
#define XMLPARSER_EXPORT
Definition: XercesDefs.hpp:163
XMLAttDef
Represents the core information of an attribute definition.
Definition: XMLAttDef.hpp:52
XMLSchemaDescription::CONTEXT_IMPORT
Definition: XMLSchemaDescription.hpp:69
XMLSchemaDescription::CONTEXT_XSITYPE
Definition: XMLSchemaDescription.hpp:74
MemoryManager
Configurable memory manager.
Definition: MemoryManager.hpp:39
XMLCh
uint16_t XMLCh
Definition: Xerces_autoconf_config.hpp:120
QName
Definition: QName.hpp:34
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
XMLSchemaDescription::getGrammarType
virtual Grammar::GrammarType getGrammarType() const
getGrammarType
Definition: XMLSchemaDescription.hpp:54
XMLSchemaDescription::CONTEXT_REDEFINE
Definition: XMLSchemaDescription.hpp:68
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
XMLSchemaDescription::CONTEXT_INSTANCE
Definition: XMLSchemaDescription.hpp:71
XMLGrammarDescription
Definition: XMLGrammarDescription.hpp:32
XMLSchemaDescription::CONTEXT_ELEMENT
Definition: XMLSchemaDescription.hpp:72
XMLSchemaDescription
Definition: XMLSchemaDescription.hpp:32
XMLSchemaDescription::ContextType
ContextType
Definition: XMLSchemaDescription.hpp:65
XMLSchemaDescription::CONTEXT_INCLUDE
Definition: XMLSchemaDescription.hpp:67