source: obsolete/tags/VUT/0.4/GtpVisibilityPreprocessor/support/xerces/include/xercesc/validators/datatype/NOTATIONDatatypeValidator.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: NOTATIONDatatypeValidator.hpp,v 1.8 2004/09/08 13:56:53 peiyongz Exp $
19 * $Log: NOTATIONDatatypeValidator.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:26  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:14:47  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/05 20:15:27  peiyongz
59 * NOTATIONDatatypeValidator
60 *
61 */
62
63#if !defined(NOTATION_DATATYPEVALIDATOR_HPP)
64#define NOTATION_DATATYPEVALIDATOR_HPP
65
66#include <xercesc/validators/datatype/AbstractStringValidator.hpp>
67
68XERCES_CPP_NAMESPACE_BEGIN
69
70class VALIDATORS_EXPORT NOTATIONDatatypeValidator : public AbstractStringValidator
71{
72public:
73
74    // -----------------------------------------------------------------------
75    //  Public ctor/dtor
76    // -----------------------------------------------------------------------
77        /** @name Constructors and Destructor */
78    //@{
79
80    NOTATIONDatatypeValidator
81    (
82        MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
83    );
84    NOTATIONDatatypeValidator
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
93    virtual ~NOTATIONDatatypeValidator();
94
95        //@}
96
97    /**
98      * Returns an instance of the base datatype validator class
99          * Used by the DatatypeValidatorFactory.
100      */
101    virtual DatatypeValidator* newInstance
102    (
103        RefHashTableOf<KVStringPair>* const facets
104        , RefArrayVectorOf<XMLCh>* const enums
105        , const int finalSet
106        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
107    );
108
109    /***
110     * Support for Serialization/De-serialization
111     ***/
112    DECL_XSERIALIZABLE(NOTATIONDatatypeValidator)
113
114protected:
115
116    virtual void checkValueSpace(const XMLCh* const content
117                        , MemoryManager* const manager);
118
119private:
120    // -----------------------------------------------------------------------
121    //  Unimplemented constructors and operators
122    // -----------------------------------------------------------------------
123    NOTATIONDatatypeValidator(const NOTATIONDatatypeValidator&);
124    NOTATIONDatatypeValidator& operator=(const NOTATIONDatatypeValidator&);
125
126    // -----------------------------------------------------------------------
127    //  Private data members
128    //
129        //              Nil
130    // -----------------------------------------------------------------------
131};
132
133XERCES_CPP_NAMESPACE_END
134
135#endif
136/**
137  * End of file NOTATIONDatatypeValidator.hpp
138  */
139
Note: See TracBrowser for help on using the repository browser.