Xerces-C++  3.1.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 
26 #include <xercesc/util/RefArrayVectorOf.hpp>
27 
29 
30 typedef const XMLCh* const LocationHint;
31 
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 
66  {
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  // -----------------------------------------------------------------------
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
Definition: XMLSchemaDescription.hpp:73
Definition: XMLSchemaDescription.hpp:70
#define XMLPARSER_EXPORT
Definition: XercesDefs.hpp:163
virtual Grammar::GrammarType getGrammarType() const
getGrammarType
Definition: XMLSchemaDescription.hpp:54
Represents the core information of an attribute definition.
Definition: XMLAttDef.hpp:52
Definition: XMLSchemaDescription.hpp:69
Definition: XMLSchemaDescription.hpp:74
Configurable memory manager.
Definition: MemoryManager.hpp:39
Definition: QName.hpp:34
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
Utilities that must be implemented in a platform-specific way.
Definition: PlatformUtils.hpp:68
wchar_t XMLCh
Definition: Xerces_autoconf_config.borland.hpp:92
Definition: XMLSchemaDescription.hpp:68
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
Definition: XMLSchemaDescription.hpp:71
Definition: XMLGrammarDescription.hpp:32
Definition: XMLSchemaDescription.hpp:72
Definition: XMLSchemaDescription.hpp:32
ContextType
Definition: XMLSchemaDescription.hpp:65
Definition: XMLSchemaDescription.hpp:67