source: tags/VUT/0.4/GtpVisibilityPreprocessor/support/xerces/include/xercesc/validators/datatype/QNameDatatypeValidator.hpp @ 358

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

xerces added

Line 
1/*
2 * Copyright 2001,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 * $Id: QNameDatatypeValidator.hpp,v 1.8 2004/09/08 13:56:53 peiyongz Exp $
19 * $Log: QNameDatatypeValidator.hpp,v $
20 * Revision 1.8  2004/09/08 13:56:53  peiyongz
21 * Apache License Version 2.0
22 *
23 * Revision 1.7  2004/01/29 11:51:22  cargilld
24 * Code cleanup changes to get rid of various compiler diagnostic messages.
25 *
26 * Revision 1.6  2003/12/17 00:18:39  cargilld
27 * Update to memory management so that the static memory manager (one used to call Initialize) is only for static data.
28 *
29 * Revision 1.5  2003/09/30 21:31:30  peiyongz
30 * Implementation of Serialization/Deserialization
31 *
32 * Revision 1.4  2003/05/15 18:53:27  knoaman
33 * Partial implementation of the configurable memory manager.
34 *
35 * Revision 1.3  2002/12/18 14:17:55  gareth
36 * Fix to bug #13438. When you eant a vector that calls delete[] on its members you should use RefArrayVectorOf.
37 *
38 * Revision 1.2  2002/11/04 14:53:28  tng
39 * C++ Namespace Support.
40 *
41 * Revision 1.1.1.1  2002/02/01 22:22:42  peiyongz
42 * sane_include
43 *
44 * Revision 1.5  2001/09/24 15:33:15  peiyongz
45 * DTV Reorganization: virtual methods moved to *.cpp
46 *
47 * Revision 1.4  2001/09/20 15:36:49  peiyongz
48 * DTV reorganization: inherit from AbstractStringVaildator
49 *
50 * Revision 1.3  2001/08/24 17:12:01  knoaman
51 * Add support for anySimpleType.
52 * Remove parameter 'baseValidator' from the virtual method 'newInstance'.
53 *
54 * Revision 1.2  2001/08/21 18:42:53  peiyongz
55 * Bugzilla# 2816: cleanUp() declared with external linkage and called
56 *                          before defined as inline
57 *
58 * Revision 1.1  2001/07/06 20:20:15  peiyongz
59 * QNameDTV
60 *
61 */
62
63#if !defined(QNAME_DATATYPEVALIDATOR_HPP)
64#define QNAME_DATATYPEVALIDATOR_HPP
65
66#include <xercesc/validators/datatype/AbstractStringValidator.hpp>
67
68XERCES_CPP_NAMESPACE_BEGIN
69
70class VALIDATORS_EXPORT QNameDatatypeValidator : public AbstractStringValidator
71{
72public:
73
74    // -----------------------------------------------------------------------
75    //  Public ctor/dtor
76    // -----------------------------------------------------------------------
77        /** @name Constructors and Destructor */
78    //@{
79
80    QNameDatatypeValidator
81    (
82        MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
83    );
84    QNameDatatypeValidator
85    (
86        DatatypeValidator*            const baseValidator
87        , RefHashTableOf<KVStringPair>* const facets
88        , RefArrayVectorOf<XMLCh>*           const enums
89        , const int                           finalSet
90        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
91    );
92    virtual ~QNameDatatypeValidator();
93
94        //@}
95
96    /**
97      * Returns an instance of the base datatype validator class
98          * Used by the DatatypeValidatorFactory.
99      */
100    virtual DatatypeValidator* newInstance
101    (
102        RefHashTableOf<KVStringPair>* const facets
103        , RefArrayVectorOf<XMLCh>* const enums
104        , const int finalSet
105        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
106    );
107
108    /***
109     * Support for Serialization/De-serialization
110     ***/
111    DECL_XSERIALIZABLE(QNameDatatypeValidator)
112
113protected:
114
115    virtual void checkValueSpace(const XMLCh* const content
116                                , MemoryManager* const manager);
117
118private:
119    // -----------------------------------------------------------------------
120    //  Unimplemented constructors and operators
121    // -----------------------------------------------------------------------
122    QNameDatatypeValidator(const QNameDatatypeValidator&);
123    QNameDatatypeValidator& operator=(const QNameDatatypeValidator&);
124
125    // -----------------------------------------------------------------------
126    //  Private data members
127    //
128        //              Nil
129    // -----------------------------------------------------------------------
130
131};
132
133XERCES_CPP_NAMESPACE_END
134
135#endif
136
137/**
138  * End of file QNameDatatypeValidator.hpp
139  */
140
Note: See TracBrowser for help on using the repository browser.