Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

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

XercesDocumentTypeBridge.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(XERCESDOCUMENTTYPEBRIDGE_HEADER_GUARD_1357924680)
00017 #define XERCESDOCUMENTTYPEBRIDGE_HEADER_GUARD_1357924680
00018 
00019 
00020 
00021 #include <xalanc/XercesParserLiaison/XercesParserLiaisonDefinitions.hpp>
00022 
00023 
00024 
00025 #if XERCES_VERSION_MAJOR >= 2
00026 #include <xercesc/dom/deprecated/DOM_DocumentType.hpp>
00027 #else
00028 #include <xercesc/dom/DOM_DocumentType.hpp>
00029 #endif
00030 
00031 
00032 
00033 #include <xalanc/XalanDOM/XalanDocumentType.hpp>
00034 
00035 
00036 
00037 #include <xalanc/XercesParserLiaison/Deprecated/XercesBridgeTypes.hpp>
00038 #include <xalanc/XercesParserLiaison/Deprecated/XercesNamedNodeMapBridge.hpp>
00039 
00040 
00041 
00042 XALAN_CPP_NAMESPACE_BEGIN
00043 
00044 
00045 
00046 class XercesBridgeNavigator;
00047 class XercesDocumentBridge;
00048 
00049 
00055 class XALAN_XERCESPARSERLIAISON_EXPORT XercesDocumentTypeBridge : public XalanDocumentType
00056 {
00057 public:
00058 
00059     XercesDocumentTypeBridge(
00060             const DOM_DocumentType_Type&    theXercesDOMDocumentType,
00061             const XercesBridgeNavigator&    theNavigator);
00062 
00063     virtual
00064     ~XercesDocumentTypeBridge();
00065 
00066 
00067     // These interfaces are inherited from XalanNode...
00068 
00069     virtual const XalanDOMString&
00070     getNodeName() const;
00071 
00075     virtual const XalanDOMString&
00076     getNodeValue() const;
00077 
00081     virtual NodeType
00082     getNodeType() const;
00083 
00093     virtual XalanNode*
00094     getParentNode() const;
00095 
00109     virtual const XalanNodeList*
00110     getChildNodes() const;
00111 
00117     virtual XalanNode*
00118     getFirstChild() const;
00119 
00125     virtual XalanNode*
00126     getLastChild() const;
00127 
00133     virtual XalanNode*
00134     getPreviousSibling() const;
00135 
00141     virtual XalanNode*
00142     getNextSibling() const;
00143 
00148     virtual const XalanNamedNodeMap*
00149     getAttributes() const;
00150 
00160     virtual XalanDocument*
00161     getOwnerDocument() const;
00162 
00164 
00166 
00185 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
00186     virtual XalanNode*
00187 #else
00188     virtual XercesDocumentTypeBridge*
00189 #endif
00190     cloneNode(bool deep) const;
00191 
00193 
00195 
00212     virtual XalanNode*
00213     insertBefore(
00214             XalanNode*  newChild,
00215             XalanNode*  refChild);
00216 
00230     virtual XalanNode*
00231     replaceChild(
00232             XalanNode*  newChild,
00233             XalanNode*  oldChild);
00234 
00242     virtual XalanNode*
00243     removeChild(XalanNode*  oldChild);
00244 
00256     virtual XalanNode*
00257     appendChild(XalanNode*  newChild);
00258 
00260 
00262 
00270     virtual bool
00271     hasChildNodes() const;
00272 
00273 
00275 
00277 
00278 
00292     virtual void
00293     setNodeValue(const XalanDOMString&  nodeValue);
00294 
00296 
00298 
00315     virtual void
00316     normalize();
00317 
00331     virtual bool
00332     isSupported(
00333             const XalanDOMString&   feature,
00334             const XalanDOMString&   version) const;
00335 
00349     virtual const XalanDOMString&
00350     getNamespaceURI() const;
00351 
00356     virtual const XalanDOMString&
00357     getPrefix() const;
00358 
00366     virtual const XalanDOMString&
00367     getLocalName() const;
00368 
00398     virtual void
00399     setPrefix(const XalanDOMString& prefix);
00400 
00401     virtual bool
00402     isIndexed() const;
00403 
00404     virtual IndexType
00405     getIndex() const;
00406 
00408 
00409     // These interfaces are inherited from XalanDocumentType...
00410 
00413 
00418     virtual const XalanDOMString&
00419     getName() const;
00420 
00426     virtual const XalanNamedNodeMap*
00427     getEntities() const;
00428 
00433     virtual const XalanNamedNodeMap*
00434     getNotations() const;
00436 
00439 
00443     virtual const XalanDOMString&
00444     getPublicId() const;
00445 
00450     virtual const XalanDOMString&
00451     getSystemId() const;
00452 
00457     virtual const XalanDOMString&
00458     getInternalSubset() const;
00459 
00465     DOM_DocumentType_Type
00466     getXercesNode() const
00467     {
00468         return m_xercesNode;
00469     }
00470 
00472 
00473 private:
00474 
00475     // Not implemented...
00476     XercesDocumentTypeBridge(const XercesDocumentTypeBridge&    theSource);
00477 
00478     XercesDocumentTypeBridge&
00479     operator=(const XercesDocumentTypeBridge&   theSource);
00480 
00481     bool
00482     operator==(const XercesDocumentTypeBridge&  theRHS) const;
00483 
00484     // Data members...
00485     DOM_DocumentType_Type           m_xercesNode;
00486 
00487     XercesNamedNodeMapBridge        m_entities;
00488     
00489     XercesNamedNodeMapBridge        m_notations;
00490 
00491     const XercesBridgeNavigator&    m_navigator;
00492 };
00493 
00494 
00495 
00496 XALAN_CPP_NAMESPACE_END
00497 
00498 
00499 
00500 #endif  // !defined(XERCESDOCUMENTTYPEBRIDGE_HEADER_GUARD_1357924680)

Interpreting class diagrams

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

dot

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

Apache Logo