## Xalan-C++ API Documentation

### The Xalan C++ XSLT Processor Version 1.6

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

# XercesElementBridge.hpp

Go to the documentation of this file.

    00001 /*
    00002  * The Apache Software License, Version 1.1
    00003  *
    00004  *
    00005  * Copyright (c) 1999-2002 The Apache Software Foundation.  All rights
    00006  * reserved.
    00007  *
    00008  * Redistribution and use in source and binary forms, with or without
    00009  * modification, are permitted provided that the following conditions
    00010  * are met:
    00011  *
    00012  * 1. Redistributions of source code must retain the above copyright
    00013  *    notice, this list of conditions and the following disclaimer.
    00014  *
    00015  * 2. Redistributions in binary form must reproduce the above copyright
    00016  *    notice, this list of conditions and the following disclaimer in
    00017  *    the documentation and/or other materials provided with the
    00018  *    distribution.
    00019  *
    00020  * 3. The end-user documentation included with the redistribution,
    00021  *    if any, must include the following acknowledgment:
    00022  *       "This product includes software developed by the
    00023  *        Apache Software Foundation (http://www.apache.org/)."
    00024  *    Alternately, this acknowledgment may appear in the software itself,
    00025  *    if and wherever such third-party acknowledgments normally appear.
    00026  *
    00027  * 4. The names "Xalan" and "Apache Software Foundation" must
    00028  *    not be used to endorse or promote products derived from this
    00029  *    software without prior written permission. For written
    00030  *    permission, please contact apache@apache.org.
    00031  *
    00032  * 5. Products derived from this software may not be called "Apache",
    00033  *    nor may "Apache" appear in their name, without prior written
    00034  *    permission of the Apache Software Foundation.
    00035  *
    00036  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    00037  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    00038  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    00039  * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
    00040  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    00041  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    00042  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    00043  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    00044  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    00045  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    00046  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    00047  * SUCH DAMAGE.
    00048  * ====================================================================
    00049  *
    00050  * This software consists of voluntary contributions made by many
    00051  * individuals on behalf of the Apache Software Foundation and was
    00052  * originally based on software copyright (c) 1999, International
    00053  * Business Machines, Inc., http://www.ibm.com.  For more
    00054  * information on the Apache Software Foundation, please see
    00055  * <http://www.apache.org/>.
    00056  */
    00057 #if !defined(XERCESELEMENTBRIDGE_HEADER_GUARD_1357924680)
    00058 #define XERCESELEMENTBRIDGE_HEADER_GUARD_1357924680
    00059
    00060
    00061
    00062 #include <xalanc/XercesParserLiaison/XercesParserLiaisonDefinitions.hpp>
    00063
    00064
    00065
    00066 #include <map>
    00067
    00068
    00069
    00070 #if XERCES_VERSION_MAJOR >= 2
    00071 #include <xercesc/dom/deprecated/DOM_Element.hpp>
    00072 #else
    00073 #include <xercesc/dom/DOM_Element.hpp>
    00074 #endif
    00075
    00076
    00077
    00078 #include <xalanc/XalanDOM/XalanElement.hpp>
    00079
    00080
    00081
    00082 #include <xalanc/PlatformSupport/DOMStringHelper.hpp>
    00083
    00084
    00085
    00086 #include <xalanc/XercesParserLiaison/XercesDOM_NodeHack.hpp>
    00087 #include <xalanc/XercesParserLiaison/XercesNamedNodeMapBridge.hpp>
    00088 #include <xalanc/XercesParserLiaison/XercesNodeListBridge.hpp>
    00089
    00090
    00091
    00092 XALAN_CPP_NAMESPACE_BEGIN
    00093
    00094
    00095
    00096 class XercesBridgeNavigator;
    00097
    00098
    00099
    00100 class XALAN_XERCESPARSERLIAISON_EXPORT XercesElementBridge : public XalanElement
    00101 {
    00102 public:
    00103
    00104     typedef XERCES_CPP_NAMESPACE_QUALIFIER DOM_Element  DOM_ElementType;
    00105
    00106     XercesElementBridge(
    00107             const DOM_ElementType&          theXercesElement,
    00108             const XercesBridgeNavigator&    theNavigator);
    00109
    00110     virtual
    00111     ~XercesElementBridge();
    00112
    00113
    00117     virtual const XalanDOMString&
    00118     getNodeName() const;
    00119
    00123     virtual const XalanDOMString&
    00124     getNodeValue() const;
    00125
    00129     virtual NodeType
    00130     getNodeType() const;
    00131
    00141     virtual XalanNode*
    00142     getParentNode() const;
    00143
    00157     virtual const XalanNodeList*
    00158     getChildNodes() const;
    00159
    00165     virtual XalanNode*
    00166     getFirstChild() const;
    00167
    00173     virtual XalanNode*
    00174     getLastChild() const;
    00175
    00181     virtual XalanNode*
    00182     getPreviousSibling() const;
    00183
    00189     virtual XalanNode*
    00190     getNextSibling() const;
    00191
    00196     virtual const XalanNamedNodeMap*
    00197     getAttributes() const;
    00198
    00208     virtual XalanDocument*
    00209     getOwnerDocument() const;
    00210
    00212
    00214
    00233 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
    00234     virtual XalanNode*
    00235 #else
    00236     virtual XercesElementBridge*
    00237 #endif
    00238     cloneNode(bool deep) const;
    00239
    00241
    00243
    00260     virtual XalanNode*
    00261     insertBefore(
    00262             XalanNode*  newChild,
    00263             XalanNode*  refChild);
    00264
    00278     virtual XalanNode*
    00279     replaceChild(
    00280             XalanNode*  newChild,
    00281             XalanNode*  oldChild);
    00282
    00290     virtual XalanNode*
    00291     removeChild(XalanNode*  oldChild);
    00292
    00304     virtual XalanNode*
    00305     appendChild(XalanNode*  newChild);
    00306
    00308
    00310
    00318     virtual bool
    00319     hasChildNodes() const;
    00320
    00321
    00323
    00325
    00326
    00340     virtual void
    00341     setNodeValue(const XalanDOMString&      nodeValue);
    00342
    00344
    00346
    00363     virtual void
    00364     normalize();
    00365
    00379     virtual bool
    00380     isSupported(
    00381             const XalanDOMString&   feature,
    00382             const XalanDOMString&   version) const;
    00383
    00397     virtual const XalanDOMString&
    00398     getNamespaceURI() const;
    00399
    00404     virtual const XalanDOMString&
    00405     getPrefix() const;
    00406
    00414     virtual const XalanDOMString&
    00415     getLocalName() const;
    00416
    00446     virtual void
    00447     setPrefix(const XalanDOMString& prefix);
    00448
    00449     virtual bool
    00450     isIndexed() const;
    00451
    00452     virtual IndexType
    00453     getIndex() const;
    00454
    00456
    00457     // These interfaces are inherited from XalanElement...
    00458
    00467     virtual const XalanDOMString&
    00468     getTagName() const;
    00469
    00477     virtual const XalanDOMString&
    00478     getAttribute(const XalanDOMString&      name) const;
    00479
    00487     virtual XalanAttr*
    00488     getAttributeNode(const XalanDOMString&      name) const;
    00489
    00500     virtual XalanNodeList*
    00501     getElementsByTagName(const XalanDOMString&      name) const;
    00502
    00504
    00506
    00528     virtual void
    00529     setAttribute(
    00530             const XalanDOMString&   name,
    00531             const XalanDOMString&   value);
    00532
    00552     virtual XalanAttr*
    00553     setAttributeNode(XalanAttr*     newAttr);
    00554
    00556
    00558
    00574     virtual XalanAttr*
    00575     removeAttributeNode(XalanAttr*  oldAttr);
    00576
    00589     virtual void
    00590     removeAttribute(const XalanDOMString&   name);
    00591
    00593
    00595
    00606     virtual const XalanDOMString&
    00607     getAttributeNS(
    00608             const XalanDOMString&   namespaceURI,
    00609             const XalanDOMString&   localName) const;
    00610
    00651     virtual void
    00652     setAttributeNS(
    00653             const XalanDOMString&   namespaceURI,
    00654             const XalanDOMString&   qualifiedName,
    00655             const XalanDOMString&   value);
    00656
    00671     virtual void
    00672     removeAttributeNS(
    00673             const XalanDOMString&   namespaceURI,
    00674             const XalanDOMString&   localName);
    00675
    00686     virtual XalanAttr*
    00687     getAttributeNodeNS(
    00688             const XalanDOMString&   namespaceURI,
    00689             const XalanDOMString&   localName) const;
    00690
    00710     virtual XalanAttr*
    00711     setAttributeNodeNS(XalanAttr*   newAttr);
    00712
    00728     virtual XalanNodeList*
    00729     getElementsByTagNameNS(
    00730             const XalanDOMString&   namespaceURI,
    00731             const XalanDOMString&   localName) const;
    00732
    00738     DOM_ElementType
    00739     getXercesNode() const
    00740     {
    00741         return m_xercesNode;
    00742     }
    00743
    00745
    00746 private:
    00747
    00748     // Not implemented...
    00749     XercesElementBridge(const XercesElementBridge&  theSource);
    00750
    00751     XalanNode&
    00752 	operator=(const XalanNode& theSource);
    00753
    00754     bool
    00755 	operator==(const XercesElementBridge&  theRHS) const;
    00756
    00757     // Data members...
    00758     XercesDOM_ElementHack               m_xercesNode;
    00759
    00760     const XercesBridgeNavigator&        m_navigator;
    00761
    00762     XercesNodeListBridge                m_children;
    00763
    00764     XercesNamedNodeMapBridge            m_attributes;
    00765 };
    00766
    00767
    00768
    00769 XALAN_CPP_NAMESPACE_END
    00770
    00771
    00772
    00773 #endif  // !defined(XERCESELEMENTBRIDGE_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.6 Copyright © 2000, 2001, 2002, 2003 The Apache Software Foundation. All Rights Reserved.