Xerces-C++ 3.2.5
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
26#include <xercesc/util/RefArrayVectorOf.hpp>
27
29
30typedef const XMLCh* const LocationHint;
31
33{
34public :
35 // -----------------------------------------------------------------------
37 // -----------------------------------------------------------------------
39
45
46 // -----------------------------------------------------------------------
48 // -----------------------------------------------------------------------
50
54 virtual Grammar::GrammarType getGrammarType() const
55 {
56 return Grammar::SchemaGrammarType;
57 }
59
60 // -----------------------------------------------------------------------
62 // -----------------------------------------------------------------------
64
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 // -----------------------------------------------------------------------
163
164private :
165 // -----------------------------------------------------------------------
167 // -----------------------------------------------------------------------
170 XMLSchemaDescription& operator=(const XMLSchemaDescription& );
172
173};
174
175
177
178#endif
XERCES_CPP_NAMESPACE_BEGIN typedef const XMLCh *const LocationHint
Definition XMLSchemaDescription.hpp:30
#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
uint16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
Configurable memory manager.
Definition MemoryManager.hpp:40
Definition QName.hpp:35
Represents the core information of an attribute definition.
Definition XMLAttDef.hpp:53
Definition XMLGrammarDescription.hpp:33
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition PlatformUtils.hpp:121
Definition XMLSchemaDescription.hpp:33
virtual void setEnclosingElementName(QName *const)=0
getenclosingElementName
virtual void setTargetNamespace(const XMLCh *const)=0
setTargetNamespace
virtual void setAttributes(XMLAttDef *const)=0
setAttributes
virtual const QName * getTriggeringComponent() const =0
getTriggeringComponent
XMLSchemaDescription(MemoryManager *const memMgr=XMLPlatformUtils::fgMemoryManager)
Hidden Constructors.
ContextType
Definition XMLSchemaDescription.hpp:66
@ CONTEXT_XSITYPE
Definition XMLSchemaDescription.hpp:74
@ CONTEXT_ELEMENT
Definition XMLSchemaDescription.hpp:72
@ CONTEXT_INSTANCE
Definition XMLSchemaDescription.hpp:71
@ CONTEXT_INCLUDE
Definition XMLSchemaDescription.hpp:67
@ CONTEXT_PREPARSE
Definition XMLSchemaDescription.hpp:70
@ CONTEXT_ATTRIBUTE
Definition XMLSchemaDescription.hpp:73
@ CONTEXT_REDEFINE
Definition XMLSchemaDescription.hpp:68
@ CONTEXT_IMPORT
Definition XMLSchemaDescription.hpp:69
virtual const XMLAttDef * getAttributes() const =0
getAttributes
virtual const RefArrayVectorOf< XMLCh > * getLocationHints() const =0
getLocationHints
virtual ContextType getContextType() const =0
getContextType
virtual const XMLCh * getTargetNamespace() const =0
getTargetNamespace
virtual const QName * getEnclosingElementName() const =0
getenclosingElementName
virtual void setLocationHints(const XMLCh *const)=0
setLocationHints
virtual Grammar::GrammarType getGrammarType() const
getGrammarType
Definition XMLSchemaDescription.hpp:54
virtual void setTriggeringComponent(QName *const)=0
setTriggeringComponent
virtual void setContextType(ContextType)=0
setContextType
virtual ~XMLSchemaDescription()
virtual destructor