| API Docs for SAX and DOM |

Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members

# XMLDTDDescription.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  * $Log: XMLDTDDescription.hpp,v $
    00019  * Revision 1.5  2004/09/29 21:23:02  peiyongz
    00020  * default implementation provided
    00021  *
    00022  * Revision 1.4  2004/09/08 13:55:58  peiyongz
    00023  * Apache License Version 2.0
    00024  *
    00025  * Revision 1.3  2004/04/07 14:09:22  peiyongz
    00026  * systemId (to replace rootElemName) as DTDGrammar Key
    00027  *
    00028  * Revision 1.2  2003/10/14 15:17:47  peiyongz
    00029  * Implementation of Serialization/Deserialization
    00030  *
    00031  * Revision 1.1  2003/06/20 18:37:39  peiyongz
    00032  * Stateless Grammar Pool :: Part I
    00033  *
    00034  * $Id: XMLDTDDescription.hpp,v 1.5 2004/09/29 21:23:02 peiyongz Exp $
    00035  *
    00036  */
    00037
    00038 #if !defined(XMLDTDDESCRIPTION_HPP)
    00039 #define XMLDTDDESCRIPTION_HPP
    00040
    00041 #include <xercesc/framework/XMLGrammarDescription.hpp>
    00042
    00043 XERCES_CPP_NAMESPACE_BEGIN
    00044
    00045 class  XMLDTDDescription : public XMLGrammarDescription
    00046 {
    00047 public :
    00048     // -----------------------------------------------------------------------
    00050     // -----------------------------------------------------------------------
    00052
    00056     virtual ~XMLDTDDescription();
    00058
    00059     // -----------------------------------------------------------------------
    00061     // -----------------------------------------------------------------------
    00063
    00067     virtual Grammar::GrammarType   getGrammarType() const
    00068     {
    00069         return Grammar::DTDGrammarType;
    00070     }
    00072
    00073     // -----------------------------------------------------------------------
    00075     // -----------------------------------------------------------------------
    00077
    00081     virtual const XMLCh*          getRootName() const = 0;
    00082     virtual const XMLCh*          getSystemId() const {return 0;};
    00083
    00088     virtual void                  setRootName(const XMLCh* const) = 0;
    00089     virtual void                  setSystemId(const XMLCh* const) {};
    00091
    00092     /***
    00093      * Support for Serialization/De-serialization
    00094      ***/
    00095     DECL_XSERIALIZABLE(XMLDTDDescription)
    00096
    00097 protected :
    00098     // -----------------------------------------------------------------------
    00100     // -----------------------------------------------------------------------
    00102     XMLDTDDescription(MemoryManager* const memMgr = XMLPlatformUtils::fgMemoryManager);
    00104
    00105 private :
    00106     // -----------------------------------------------------------------------
    00108     // -----------------------------------------------------------------------
    00110     XMLDTDDescription(const XMLDTDDescription& );
    00111     XMLDTDDescription& operator=(const XMLDTDDescription& );
    00113
    00114 };
    00115
    00116
    00117 XERCES_CPP_NAMESPACE_END
    00118
    00119 #endif

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