source: NonGTP/Xerces/xerces/include/xercesc/framework/XMLSchemaDescription.hpp @ 358

Revision 358, 5.2 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1/*
2 * Copyright 1999-2004 The Apache Software Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 * $Log: XMLSchemaDescription.hpp,v $
19 * Revision 1.4  2004/09/08 13:55:59  peiyongz
20 * Apache License Version 2.0
21 *
22 * Revision 1.3  2003/10/14 15:17:47  peiyongz
23 * Implementation of Serialization/Deserialization
24 *
25 * Revision 1.2  2003/07/31 17:03:19  peiyongz
26 * locationHint incrementally added
27 *
28 * Revision 1.1  2003/06/20 18:37:39  peiyongz
29 * Stateless Grammar Pool :: Part I
30 *
31 * $Id: XMLSchemaDescription.hpp,v 1.4 2004/09/08 13:55:59 peiyongz Exp $
32 *
33 */
34
35#if !defined(XMLSCHEMADESCRIPTION_HPP)
36#define XMLSCHEMADESCRIPTION_HPP
37
38#include <xercesc/framework/XMLGrammarDescription.hpp>
39#include <xercesc/util/RefArrayVectorOf.hpp>
40
41XERCES_CPP_NAMESPACE_BEGIN
42
43typedef const XMLCh* const LocationHint;
44
45class XMLPARSER_EXPORT XMLSchemaDescription : public XMLGrammarDescription
46{
47public :
48    // -----------------------------------------------------------------------
49    /** @name Virtual destructor for derived classes */
50    // -----------------------------------------------------------------------
51    //@{
52    /**
53      * virtual destructor
54      *
55      */
56    virtual ~XMLSchemaDescription();
57    //@}
58
59    // -----------------------------------------------------------------------
60    /** @name Implementation of Grammar Description Interface */
61    // -----------------------------------------------------------------------
62    //@{     
63    /**
64      * getGrammarType
65      *
66      */
67    virtual Grammar::GrammarType   getGrammarType() const
68    {
69        return Grammar::SchemaGrammarType;
70    }
71    //@}
72
73    // -----------------------------------------------------------------------
74    /** @name The SchemaDescription Interface */
75    // -----------------------------------------------------------------------
76    //@{
77
78    enum ContextType
79         {
80            CONTEXT_INCLUDE,
81            CONTEXT_REDEFINE,
82            CONTEXT_IMPORT,
83            CONTEXT_PREPARSE,
84            CONTEXT_INSTANCE,
85            CONTEXT_ELEMENT,
86            CONTEXT_ATTRIBUTE,
87            CONTEXT_XSITYPE,
88            CONTEXT_UNKNOWN
89         };
90
91    /**
92      * getContextType
93      *
94      */       
95    virtual ContextType                getContextType() const = 0;
96
97    /**
98      * getTargetNamespace
99      *
100      */       
101    virtual const XMLCh*               getTargetNamespace() const = 0;
102
103    /**
104      * getLocationHints
105      *
106      */       
107    virtual RefArrayVectorOf<XMLCh>*   getLocationHints() const = 0;
108
109    /**
110      * getTriggeringComponent
111      *
112      */       
113    virtual const QName*               getTriggeringComponent() const = 0;
114
115    /**
116      * getenclosingElementName
117      *
118      */       
119    virtual const QName*               getEnclosingElementName() const = 0;
120
121    /**
122      * getAttributes
123      *
124      */       
125    virtual const XMLAttDef*           getAttributes() const = 0;
126
127    /**
128      * setContextType
129      *
130      */       
131    virtual void                       setContextType(ContextType) = 0;
132
133    /**
134      * setTargetNamespace
135      *
136      */       
137    virtual void                       setTargetNamespace(const XMLCh* const) = 0;
138
139    /**
140      * setLocationHints
141      *
142      */       
143    virtual void                       setLocationHints(const XMLCh* const) = 0;
144
145    /**
146      * setTriggeringComponent
147      *
148      */       
149    virtual void                       setTriggeringComponent(QName* const) = 0;
150
151    /**
152      * getenclosingElementName
153      *
154      */       
155    virtual void                       setEnclosingElementName(QName* const) = 0;
156
157    /**
158      * setAttributes
159      *
160      */       
161    virtual void                       setAttributes(XMLAttDef* const) = 0;
162    //@}                 
163                 
164    /***
165     * Support for Serialization/De-serialization
166     ***/
167    DECL_XSERIALIZABLE(XMLSchemaDescription)
168
169protected :
170    // -----------------------------------------------------------------------
171    /**  Hidden Constructors */
172    // -----------------------------------------------------------------------
173    //@{
174    XMLSchemaDescription(MemoryManager* const memMgr = XMLPlatformUtils::fgMemoryManager);
175    //@}
176
177private :
178    // -----------------------------------------------------------------------
179    /** name  Unimplemented copy constructor and operator= */
180    // -----------------------------------------------------------------------
181    //@{
182    XMLSchemaDescription(const XMLSchemaDescription& );
183    XMLSchemaDescription& operator=(const XMLSchemaDescription& );
184    //@}
185
186};
187
188
189XERCES_CPP_NAMESPACE_END
190
191#endif
Note: See TracBrowser for help on using the repository browser.