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

Revision 358, 5.1 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: StringDatatypeValidator.hpp,v 1.9 2004/09/08 13:56:53 peiyongz Exp $
19 * $Log: StringDatatypeValidator.hpp,v $
20 * Revision 1.9  2004/09/08 13:56:53  peiyongz
21 * Apache License Version 2.0
22 *
23 * Revision 1.8  2004/01/29 11:51:22  cargilld
24 * Code cleanup changes to get rid of various compiler diagnostic messages.
25 *
26 * Revision 1.7  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.6  2003/10/01 01:09:35  knoaman
30 * Refactoring of some code to improve performance.
31 *
32 * Revision 1.5  2003/09/29 21:47:35  peiyongz
33 * Implementation of Serialization/Deserialization
34 *
35 * Revision 1.4  2003/05/15 18:53:27  knoaman
36 * Partial implementation of the configurable memory manager.
37 *
38 * Revision 1.3  2002/12/18 14:17:55  gareth
39 * Fix to bug #13438. When you eant a vector that calls delete[] on its members you should use RefArrayVectorOf.
40 *
41 * Revision 1.2  2002/11/04 14:53:28  tng
42 * C++ Namespace Support.
43 *
44 * Revision 1.1.1.1  2002/02/01 22:22:42  peiyongz
45 * sane_include
46 *
47 * Revision 1.10  2001/11/22 20:23:20  peiyongz
48 * _declspec(dllimport) and inline warning C4273
49 *
50 * Revision 1.9  2001/10/09 20:54:48  peiyongz
51 * init(): removed
52 *
53 * Revision 1.8  2001/09/27 13:51:25  peiyongz
54 * DTV Reorganization: ctor/init created to be used by derived class
55 *
56 * Revision 1.7  2001/09/24 21:39:12  peiyongz
57 * DTV Reorganization:
58 *
59 * Revision 1.6  2001/09/24 15:31:13  peiyongz
60 * DTV Reorganization: inherit from AbstractStringValidator
61 *
62 */
63
64#if !defined(STRING_DATATYPEVALIDATOR_HPP)
65#define STRING_DATATYPEVALIDATOR_HPP
66
67#include <xercesc/validators/datatype/AbstractStringValidator.hpp>
68
69XERCES_CPP_NAMESPACE_BEGIN
70
71class VALIDATORS_EXPORT StringDatatypeValidator : public AbstractStringValidator
72{
73public:
74
75    // -----------------------------------------------------------------------
76    //  Public ctor/dtor
77    // -----------------------------------------------------------------------
78        /** @name Constructors and Destructor */
79    //@{
80
81    StringDatatypeValidator
82    (
83        MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
84    );
85    StringDatatypeValidator
86    (
87        DatatypeValidator* const baseValidator
88        , RefHashTableOf<KVStringPair>* const facets
89        , RefArrayVectorOf<XMLCh>* const enums
90        , const int finalSet
91        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
92    );
93    virtual ~StringDatatypeValidator();
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(StringDatatypeValidator)
113
114protected:
115
116    //
117    // ctor provided to be used by derived classes
118    //
119    StringDatatypeValidator
120    (
121        DatatypeValidator* const baseValidator
122        , RefHashTableOf<KVStringPair>* const facets
123        , const int finalSet
124        , const ValidatorType type
125        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
126    );
127
128    virtual void assignAdditionalFacet(const XMLCh* const key
129                                     , const XMLCh* const value
130                                     , MemoryManager* const manager);
131
132    virtual void inheritAdditionalFacet();
133
134    virtual void checkAdditionalFacetConstraints(MemoryManager* const manager) const;
135
136    virtual void checkAdditionalFacet(const XMLCh* const content
137                        , MemoryManager* const manager) const;
138
139    virtual void checkValueSpace(const XMLCh* const content
140                        , MemoryManager* const manager);
141
142private:
143    // -----------------------------------------------------------------------
144    //  Unimplemented constructors and operators
145    // -----------------------------------------------------------------------
146    StringDatatypeValidator(const StringDatatypeValidator&);
147    StringDatatypeValidator& operator=(const StringDatatypeValidator&);
148};
149
150XERCES_CPP_NAMESPACE_END
151
152#endif
153
154/**
155  * End of file StringDatatypeValidator.hpp
156  */
Note: See TracBrowser for help on using the repository browser.