http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Home

Readme
Charter
Release Info

Installation
Download
Build Instructions

FAQs
Samples
API Docs

DOM C++ Binding
Programming
Migration Guide

Feedback
Bug-Reporting
PDF Document

Source Repository
User Mail Archive
Devel Mail Archive

API Docs for SAX and DOM
 

ValidationContext.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 1999-2004 The Apache Software Foundation.
00003  * 
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  * 
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  * 
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 /*
00018  * $Id: ValidationContext.hpp 191054 2005-06-17 02:56:35Z jberry $
00019  */
00020 
00021 #if !defined(VALIDATION_CONTEXT_HPP)
00022 #define VALIDATION_CONTEXT_HPP
00023 
00024 #include <xercesc/util/PlatformUtils.hpp>
00025 #include <xercesc/util/RefHashTableOf.hpp>
00026 #include <xercesc/util/NameIdPool.hpp>
00027 #include <xercesc/util/XMemory.hpp>
00028 
00029 XERCES_CPP_NAMESPACE_BEGIN
00030 
00031 class XMLRefInfo;
00032 class DTDEntityDecl;
00033 class DatatypeValidator;
00034 
00035 class  ValidationContext : public XMemory
00036 {
00037 public :
00038     // -----------------------------------------------------------------------
00040     // -----------------------------------------------------------------------
00042 
00047     virtual ~ValidationContext(){};
00049 
00050     // -----------------------------------------------------------------------
00052     // -----------------------------------------------------------------------
00054 
00059     virtual RefHashTableOf<XMLRefInfo>*  getIdRefList() const = 0;
00060 
00061     virtual void                         setIdRefList(RefHashTableOf<XMLRefInfo>* const) = 0;
00062 
00063     virtual void                         clearIdRefList() = 0;
00064 
00065     virtual void                         addId(const XMLCh * const ) = 0;
00066 
00067     virtual void                         addIdRef(const XMLCh * const ) = 0;
00068 
00069     virtual void                         toCheckIdRefList(bool) = 0;
00070 
00075     virtual const NameIdPool<DTDEntityDecl>* getEntityDeclPool() const = 0;
00076 
00077     virtual const NameIdPool<DTDEntityDecl>* setEntityDeclPool(const NameIdPool<DTDEntityDecl>* const) = 0;    
00078            
00079     virtual void                             checkEntity(const XMLCh * const ) const = 0 ;
00080 
00086     virtual DatatypeValidator * getValidatingMemberType() const = 0 ;
00087     virtual void setValidatingMemberType(DatatypeValidator * validatingMemberType) = 0 ;
00088 
00090 
00091    
00092 protected :
00093     // -----------------------------------------------------------------------
00095     // -----------------------------------------------------------------------
00097     ValidationContext(MemoryManager* const memMgr = XMLPlatformUtils::fgMemoryManager)
00098     :fMemoryManager(memMgr)
00099     {
00100     };
00102 
00103     // -----------------------------------------------------------------------
00104     //  Data members
00105     //
00106     //  fMemoryManager
00107     //      Pluggable memory manager for dynamic allocation/deallocation.
00108     // -----------------------------------------------------------------------
00109     MemoryManager*                    fMemoryManager;
00110 
00111 private :
00112     // -----------------------------------------------------------------------
00114     // -----------------------------------------------------------------------
00116     ValidationContext(const ValidationContext& );
00117     ValidationContext& operator=(const ValidationContext& );
00119 
00120 };
00121 
00122 XERCES_CPP_NAMESPACE_END
00123 
00124 #endif
00125 


Copyright © 1994-2004 The Apache Software Foundation. All Rights Reserved.