Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.8

Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

XercesDocumentTypeWrapper.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 #if !defined(XERCESDOCUMENTTYPEWRAPPER_HEADER_GUARD_1357924680)
00017 #define XERCESDOCUMENTTYPEWRAPPER_HEADER_GUARD_1357924680
00018 
00019 
00020 
00021 #include <xalanc/XercesParserLiaison/XercesParserLiaisonDefinitions.hpp>
00022 
00023 
00024 
00025 #include <xalanc/XalanDOM/XalanDocumentType.hpp>
00026 
00027 
00028 
00029 #include <xalanc/XercesParserLiaison/XercesNamedNodeMapWrapper.hpp>
00030 #include <xalanc/XercesParserLiaison/XercesWrapperTypes.hpp>
00031 
00032 
00033 
00034 XALAN_CPP_NAMESPACE_BEGIN
00035 
00036 
00037 
00038 class XercesWrapperNavigator;
00039 class XercesDocumentWrapper;
00040 
00041 
00042 
00043 class XALAN_XERCESPARSERLIAISON_EXPORT XercesDocumentTypeWrapper : public XalanDocumentType
00044 {
00045 public:
00046 
00047     XercesDocumentTypeWrapper(
00048             const DOMDocumentType_Type*     theXercesDOMDocumentType,
00049             const XercesWrapperNavigator&   theNavigator);
00050 
00051     virtual
00052     ~XercesDocumentTypeWrapper();
00053 
00054 
00055     // These interfaces are inherited from XalanNode...
00056 
00057     virtual const XalanDOMString&
00058     getNodeName() const;
00059 
00063     virtual const XalanDOMString&
00064     getNodeValue() const;
00065 
00069     virtual NodeType
00070     getNodeType() const;
00071 
00081     virtual XalanNode*
00082     getParentNode() const;
00083 
00097     virtual const XalanNodeList*
00098     getChildNodes() const;
00099 
00105     virtual XalanNode*
00106     getFirstChild() const;
00107 
00113     virtual XalanNode*
00114     getLastChild() const;
00115 
00121     virtual XalanNode*
00122     getPreviousSibling() const;
00123 
00129     virtual XalanNode*
00130     getNextSibling() const;
00131 
00136     virtual const XalanNamedNodeMap*
00137     getAttributes() const;
00138 
00148     virtual XalanDocument*
00149     getOwnerDocument() const;
00150 
00152 
00154 
00173 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
00174     virtual XalanNode*
00175 #else
00176     virtual XercesDocumentTypeWrapper*
00177 #endif
00178     cloneNode(bool deep) const;
00179 
00181 
00183 
00200     virtual XalanNode*
00201     insertBefore(
00202             XalanNode*  newChild,
00203             XalanNode*  refChild);
00204 
00218     virtual XalanNode*
00219     replaceChild(
00220             XalanNode*  newChild,
00221             XalanNode*  oldChild);
00222 
00230     virtual XalanNode*
00231     removeChild(XalanNode*  oldChild);
00232 
00244     virtual XalanNode*
00245     appendChild(XalanNode*  newChild);
00246 
00248 
00250 
00258     virtual bool
00259     hasChildNodes() const;
00260 
00261 
00263 
00265 
00266 
00280     virtual void
00281     setNodeValue(const XalanDOMString&  nodeValue);
00282 
00284 
00286 
00303     virtual void
00304     normalize();
00305 
00319     virtual bool
00320     isSupported(
00321             const XalanDOMString&   feature,
00322             const XalanDOMString&   version) const;
00323 
00337     virtual const XalanDOMString&
00338     getNamespaceURI() const;
00339 
00344     virtual const XalanDOMString&
00345     getPrefix() const;
00346 
00354     virtual const XalanDOMString&
00355     getLocalName() const;
00356 
00386     virtual void
00387     setPrefix(const XalanDOMString& prefix);
00388 
00389     virtual bool
00390     isIndexed() const;
00391 
00392     virtual IndexType
00393     getIndex() const;
00394 
00396 
00397     // These interfaces are inherited from XalanDocumentType...
00398 
00401 
00406     virtual const XalanDOMString&
00407     getName() const;
00408 
00414     virtual const XalanNamedNodeMap*
00415     getEntities() const;
00416 
00421     virtual const XalanNamedNodeMap*
00422     getNotations() const;
00424 
00431     virtual const XalanDOMString&
00432     getPublicId() const;
00433 
00438     virtual const XalanDOMString&
00439     getSystemId() const;
00440 
00445     virtual const XalanDOMString&
00446     getInternalSubset() const;
00447 
00453     const DOMDocumentType_Type*
00454     getXercesNode() const
00455     {
00456         return m_xercesNode;
00457     }
00458 
00460 
00461 private:
00462 
00463     // Not implemented...
00464     XercesDocumentTypeWrapper(const XercesDocumentTypeWrapper&  theSource);
00465 
00466     XercesDocumentTypeWrapper&
00467     operator=(const XercesDocumentTypeWrapper&  theSource);
00468 
00469     bool
00470     operator==(const XercesDocumentTypeWrapper&     theRHS) const;
00471 
00472     // Data members...
00473     const DOMDocumentType_Type* const   m_xercesNode;
00474 
00475     XercesNamedNodeMapWrapper           m_entities;
00476     
00477     XercesNamedNodeMapWrapper           m_notations;
00478 
00479     const XercesWrapperNavigator&       m_navigator;
00480 };
00481 
00482 
00483 
00484 XALAN_CPP_NAMESPACE_END
00485 
00486 
00487 
00488 #endif  // !defined(XERCESDOCUMENTTYPEWRAPPER_HEADER_GUARD_1357924680)

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.8
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.