Xerces-C++: XMLSchemaDescription.hpp Source File

Xerces-C++ 3.3.0

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$
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{
34public :
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
156protected :
157 // -----------------------------------------------------------------------
159 // -----------------------------------------------------------------------
161 XMLSchemaDescription(MemoryManager* const memMgr = XMLPlatformUtils::fgMemoryManager);
163
164private :
165 // -----------------------------------------------------------------------
167 // -----------------------------------------------------------------------
169 XMLSchemaDescription(const XMLSchemaDescription& );
170 XMLSchemaDescription& operator=(const XMLSchemaDescription& );
172
173};
174
175
176 XERCES_CPP_NAMESPACE_END
177
178#endif
XMLGrammarDescription.hpp
LocationHint
XERCES_CPP_NAMESPACE_BEGIN typedef const XMLCh *const LocationHint
Definition XMLSchemaDescription.hpp:30
XMLPARSER_EXPORT
#define XMLPARSER_EXPORT
Definition XercesDefs.hpp:163
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
XMLCh
char16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
MemoryManager
Configurable memory manager.
Definition MemoryManager.hpp:40
QName
Definition QName.hpp:35
XMLAttDef
Represents the core information of an attribute definition.
Definition XMLAttDef.hpp:53
XMLGrammarDescription
Definition XMLGrammarDescription.hpp:33
XMLPlatformUtils::fgMemoryManager
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition PlatformUtils.hpp:121
XMLSchemaDescription
Definition XMLSchemaDescription.hpp:33
XMLSchemaDescription::setEnclosingElementName
virtual void setEnclosingElementName(QName *const)=0
getenclosingElementName
XMLSchemaDescription::setTargetNamespace
virtual void setTargetNamespace(const XMLCh *const)=0
setTargetNamespace
XMLSchemaDescription::setAttributes
virtual void setAttributes(XMLAttDef *const)=0
setAttributes
XMLSchemaDescription::getTriggeringComponent
virtual const QName * getTriggeringComponent() const =0
getTriggeringComponent
XMLSchemaDescription::XMLSchemaDescription
XMLSchemaDescription(MemoryManager *const memMgr=XMLPlatformUtils::fgMemoryManager)
Hidden Constructors.
XMLSchemaDescription::ContextType
ContextType
Definition XMLSchemaDescription.hpp:66
XMLSchemaDescription::CONTEXT_XSITYPE
@ CONTEXT_XSITYPE
Definition XMLSchemaDescription.hpp:74
XMLSchemaDescription::CONTEXT_ELEMENT
@ CONTEXT_ELEMENT
Definition XMLSchemaDescription.hpp:72
XMLSchemaDescription::CONTEXT_INSTANCE
@ CONTEXT_INSTANCE
Definition XMLSchemaDescription.hpp:71
XMLSchemaDescription::CONTEXT_INCLUDE
@ CONTEXT_INCLUDE
Definition XMLSchemaDescription.hpp:67
XMLSchemaDescription::CONTEXT_PREPARSE
@ CONTEXT_PREPARSE
Definition XMLSchemaDescription.hpp:70
XMLSchemaDescription::CONTEXT_ATTRIBUTE
@ CONTEXT_ATTRIBUTE
Definition XMLSchemaDescription.hpp:73
XMLSchemaDescription::CONTEXT_REDEFINE
@ CONTEXT_REDEFINE
Definition XMLSchemaDescription.hpp:68
XMLSchemaDescription::CONTEXT_IMPORT
@ CONTEXT_IMPORT
Definition XMLSchemaDescription.hpp:69
XMLSchemaDescription::getAttributes
virtual const XMLAttDef * getAttributes() const =0
getAttributes
XMLSchemaDescription::getLocationHints
virtual const RefArrayVectorOf< XMLCh > * getLocationHints() const =0
getLocationHints
XMLSchemaDescription::getContextType
virtual ContextType getContextType() const =0
getContextType
XMLSchemaDescription::getTargetNamespace
virtual const XMLCh * getTargetNamespace() const =0
getTargetNamespace
XMLSchemaDescription::getEnclosingElementName
virtual const QName * getEnclosingElementName() const =0
getenclosingElementName
XMLSchemaDescription::setLocationHints
virtual void setLocationHints(const XMLCh *const)=0
setLocationHints
XMLSchemaDescription::getGrammarType
virtual Grammar::GrammarType getGrammarType() const
getGrammarType
Definition XMLSchemaDescription.hpp:54
XMLSchemaDescription::setTriggeringComponent
virtual void setTriggeringComponent(QName *const)=0
setTriggeringComponent
XMLSchemaDescription::setContextType
virtual void setContextType(ContextType)=0
setContextType
XMLSchemaDescription::~XMLSchemaDescription
virtual ~XMLSchemaDescription()
virtual destructor