Xerces-C++ 3.1.3

- Main Page
- Related Pages
- Classes
- Files

- File List
- File Members

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