source: trunk/VUT/GtpVisibilityPreprocessor/support/xerces/include/xercesc/validators/datatype/AnyURIDatatypeValidator.hpp @ 358

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

xerces added

RevLine 
[358]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: AnyURIDatatypeValidator.hpp,v 1.8 2004/09/08 13:56:52 peiyongz Exp $
19 * $Log: AnyURIDatatypeValidator.hpp,v $
20 * Revision 1.8  2004/09/08 13:56:52  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:38  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:27  tng
39 * C++ Namespace Support.
40 *
41 * Revision 1.1.1.1  2002/02/01 22:22:40  peiyongz
42 * sane_include
43 *
44 * Revision 1.8  2001/11/22 20:23:20  peiyongz
45 * _declspec(dllimport) and inline warning C4273
46 *
47 * Revision 1.7  2001/09/24 15:33:15  peiyongz
48 * DTV Reorganization: virtual methods moved to *.cpp
49 *
50 * Revision 1.6  2001/09/19 18:49:17  peiyongz
51 * DTV reorganization: move inline to class declaration to avoid inline
52 * function interdependency.
53 *
54 * Revision 1.5  2001/09/18 20:38:02  peiyongz
55 * DTV reorganization: inherit from AbstractStringValidator.
56 *
57 * Revision 1.4  2001/08/24 17:12:01  knoaman
58 * Add support for anySimpleType.
59 * Remove parameter 'baseValidator' from the virtual method 'newInstance'.
60 *
61 * Revision 1.3  2001/08/21 18:42:53  peiyongz
62 * Bugzilla# 2816: cleanUp() declared with external linkage and called
63 *                          before defined as inline
64 *
65 * Revision 1.2  2001/08/10 16:21:19  peiyongz
66 * use XMLUri instead of XMLURL
67 *
68 * Revision 1.1  2001/08/01 18:49:16  peiyongz
69 * AnyRUIDatatypeValidator
70 *
71 *
72 */
73
74#if !defined(ANYURI_DATATYPEVALIDATOR_HPP)
75#define ANYURI_DATATYPEVALIDATOR_HPP
76
77#include <xercesc/validators/datatype/AbstractStringValidator.hpp>
78#include <xercesc/util/XMLUri.hpp>
79
80XERCES_CPP_NAMESPACE_BEGIN
81
82class VALIDATORS_EXPORT AnyURIDatatypeValidator : public AbstractStringValidator
83{
84public:
85
86    // -----------------------------------------------------------------------
87    //  Public ctor/dtor
88    // -----------------------------------------------------------------------
89        /** @name Constructors and Destructor */
90    //@{
91
92    AnyURIDatatypeValidator
93    (
94        MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
95    );
96    AnyURIDatatypeValidator
97    (
98        DatatypeValidator* const baseValidator
99        , RefHashTableOf<KVStringPair>* const facets
100        , RefArrayVectorOf<XMLCh>* const enums
101        , const int finalSet
102        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
103    );
104    virtual ~AnyURIDatatypeValidator();
105
106        //@}
107
108    /**
109      * Returns an instance of the base datatype validator class
110          * Used by the DatatypeValidatorFactory.
111      */
112    virtual DatatypeValidator* newInstance
113    (
114        RefHashTableOf<KVStringPair>* const facets
115        , RefArrayVectorOf<XMLCh>* const enums
116        , const int finalSet
117        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
118    );
119
120    /***
121     * Support for Serialization/De-serialization
122     ***/
123    DECL_XSERIALIZABLE(AnyURIDatatypeValidator)
124
125protected:
126
127    virtual void checkValueSpace(const XMLCh* const content
128        , MemoryManager* const manager);
129
130private:
131    // -----------------------------------------------------------------------
132    //  Unimplemented constructors and operators
133    // -----------------------------------------------------------------------
134    AnyURIDatatypeValidator(const AnyURIDatatypeValidator&);
135    AnyURIDatatypeValidator& operator=(const AnyURIDatatypeValidator&);   
136};
137
138XERCES_CPP_NAMESPACE_END
139
140#endif
141
142/**
143  * End of file AnyURIDatatypeValidator.hpp
144  */
Note: See TracBrowser for help on using the repository browser.