## Xalan-C++ API Documentation

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

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

# XercesAttrBridge.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(XERCESATTRBRIDGE_HEADER_GUARD_1357924680)
    00017 #define XERCESATTRBRIDGE_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_Attr.hpp>
    00027 #else
    00028 #include <xercesc/dom/DOM_Attr.hpp>
    00029 #endif
    00030
    00031
    00032
    00033 #include <xalanc/XalanDOM/XalanAttr.hpp>
    00034
    00035
    00036
    00037 #include <xalanc/XercesParserLiaison/Deprecated/XercesBridgeTypes.hpp>
    00038 #include <xalanc/XercesParserLiaison/Deprecated/XercesNodeListBridge.hpp>
    00039
    00040
    00041
    00042 XALAN_CPP_NAMESPACE_BEGIN
    00043
    00044
    00045
    00046 class XercesBridgeNavigator;
    00047 class XalanElement;
    00048
    00049
    00055 class XALAN_XERCESPARSERLIAISON_EXPORT XercesAttrBridge : public XalanAttr
    00056 {
    00057 public:
    00058
    00059     XercesAttrBridge(
    00060             const DOM_AttrType&             theXercesAttr,
    00061             const XercesBridgeNavigator&    theNavigator);
    00062
    00063     virtual
    00064     ~XercesAttrBridge();
    00065
    00066
    00067     // These interfaces are inherited from XalanNode...
    00068     virtual const XalanDOMString&
    00069     getNodeName() const;
    00070
    00074     virtual const XalanDOMString&
    00075     getNodeValue() const;
    00076
    00080     virtual NodeType
    00081     getNodeType() const;
    00082
    00092     virtual XalanNode*
    00093     getParentNode() const;
    00094
    00108     virtual const XalanNodeList*
    00109     getChildNodes() const;
    00110
    00116     virtual XalanNode*
    00117     getFirstChild() const;
    00118
    00124     virtual XalanNode*
    00125     getLastChild() const;
    00126
    00132     virtual XalanNode*
    00133     getPreviousSibling() const;
    00134
    00140     virtual XalanNode*
    00141     getNextSibling() const;
    00142
    00147     virtual const XalanNamedNodeMap*
    00148     getAttributes() const;
    00149
    00159     virtual XalanDocument*
    00160     getOwnerDocument() const;
    00161
    00163
    00165
    00184 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
    00185     virtual XalanNode*
    00186 #else
    00187     virtual XercesAttrBridge*
    00188 #endif
    00189     cloneNode(bool deep) const;
    00190
    00192
    00194
    00211     virtual XalanNode*
    00212     insertBefore(
    00213             XalanNode*  newChild,
    00214             XalanNode*  refChild);
    00215
    00229     virtual XalanNode*
    00230     replaceChild(
    00231             XalanNode*  newChild,
    00232             XalanNode*  oldChild);
    00233
    00241     virtual XalanNode*
    00242     removeChild(XalanNode*  oldChild);
    00243
    00255     virtual XalanNode*
    00256     appendChild(XalanNode*  newChild);
    00257
    00259
    00261
    00269     virtual bool
    00270     hasChildNodes() const;
    00271
    00272
    00274
    00276
    00277
    00291     virtual void
    00292     setNodeValue(const XalanDOMString&  nodeValue);
    00293
    00295
    00297
    00314     virtual void
    00315     normalize();
    00316
    00330     virtual bool
    00331     isSupported(
    00332             const XalanDOMString&   feature,
    00333             const XalanDOMString&   version) const;
    00334
    00348     virtual const XalanDOMString&
    00349     getNamespaceURI() const;
    00350
    00355     virtual const XalanDOMString&
    00356     getPrefix() const;
    00357
    00365     virtual const XalanDOMString&
    00366     getLocalName() const;
    00367
    00397     virtual void
    00398     setPrefix(const XalanDOMString&     prefix);
    00399
    00400     virtual bool
    00401     isIndexed() const;
    00402
    00403     virtual IndexType
    00404     getIndex() const;
    00405
    00407
    00408     // These interfaces are inherited from XalanAttr...
    00409
    00416     virtual const XalanDOMString&
    00417     getName() const;
    00418
    00426     virtual bool
    00427     getSpecified() const;
    00428
    00435     virtual const XalanDOMString&
    00436     getValue() const;
    00437
    00439
    00441
    00448     virtual void
    00449     setValue(const XalanDOMString&  value);
    00450
    00452
    00459     virtual XalanElement*
    00460     getOwnerElement() const;
    00462
    00468     DOM_AttrType
    00469     getXercesNode() const
    00470     {
    00471         return m_xercesNode;
    00472     }
    00473
    00474 private:
    00475
    00476     // Not implemented...
    00477     XercesAttrBridge(const XercesAttrBridge&    theSource);
    00478
    00479     XercesAttrBridge&
    00480     operator=(const XercesAttrBridge&   theSource);
    00481
    00482     bool
    00483     operator==(const XercesAttrBridge&      theRHS) const;
    00484
    00485     // Data members...
    00486     DOM_AttrType                    m_xercesNode;
    00487
    00488     XercesNodeListBridge            m_children;
    00489
    00490     const XercesBridgeNavigator&    m_navigator;
    00491 };
    00492
    00493
    00494
    00495 XALAN_CPP_NAMESPACE_END
    00496
    00497
    00498
    00499 #endif  // !defined(XERCESATTRBRIDGE_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.9 Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.