## 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

# XalanAttr.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(XALANATTR_HEADER_GUARD_1357924680)
    00017 #define XALANATTR_HEADER_GUARD_1357924680
    00018
    00019
    00020
    00021 #include <xalanc/XalanDOM/XalanDOMDefinitions.hpp>
    00022 #include <xalanc/XalanDOM/XalanNode.hpp>
    00023
    00024
    00025
    00026 XALAN_CPP_NAMESPACE_BEGIN
    00027
    00028
    00029
    00030 class XalanElement;
    00031
    00032
    00033
    00034 /*
    00035  * Base class for the DOM Attr interface.
    00036  */
    00037
    00038 class XALAN_DOM_EXPORT XalanAttr : public XalanNode
    00039 {
    00040 public:
    00041
    00042     XalanAttr();
    00043
    00044     virtual
    00045     ~XalanAttr();
    00046
    00047
    00048     // These interfaces are inherited from XalanNode...
    00049     virtual const XalanDOMString&
    00050     getNodeName() const = 0;
    00051
    00055     virtual const XalanDOMString&
    00056     getNodeValue() const = 0;
    00057
    00061     virtual NodeType
    00062     getNodeType() const = 0;
    00063
    00073     virtual XalanNode*
    00074     getParentNode() const = 0;
    00075
    00089     virtual const XalanNodeList*
    00090     getChildNodes() const = 0;
    00091
    00097     virtual XalanNode*
    00098     getFirstChild() const = 0;
    00099
    00105     virtual XalanNode*
    00106     getLastChild() const = 0;
    00107
    00113     virtual XalanNode*
    00114     getPreviousSibling() const = 0;
    00115
    00121     virtual XalanNode*
    00122     getNextSibling() const = 0;
    00123
    00128     virtual const XalanNamedNodeMap*
    00129     getAttributes() const = 0;
    00130
    00140     virtual XalanDocument*
    00141     getOwnerDocument() const = 0;
    00142
    00144
    00146
    00165 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
    00166     virtual XalanNode*
    00167 #else
    00168     virtual XalanAttr*
    00169 #endif
    00170     cloneNode(bool deep) const = 0;
    00171
    00173
    00175
    00192     virtual XalanNode*
    00193     insertBefore(
    00194             XalanNode*  newChild,
    00195             XalanNode*  refChild) = 0;
    00196
    00210     virtual XalanNode*
    00211     replaceChild(
    00212             XalanNode*  newChild,
    00213             XalanNode*  oldChild) = 0;
    00214
    00222     virtual XalanNode*
    00223     removeChild(XalanNode*  oldChild) = 0;
    00224
    00236     virtual XalanNode*
    00237     appendChild(XalanNode*  newChild) = 0;
    00238
    00240
    00242
    00250     virtual bool
    00251     hasChildNodes() const = 0;
    00252
    00253
    00255
    00257
    00258
    00272     virtual void
    00273     setNodeValue(const XalanDOMString&  nodeValue) = 0;
    00274
    00276
    00278
    00295     virtual void
    00296     normalize() = 0;
    00297
    00311     virtual bool
    00312     isSupported(
    00313             const XalanDOMString&   feature,
    00314             const XalanDOMString&   version) const = 0;
    00315
    00329     virtual const XalanDOMString&
    00330     getNamespaceURI() const = 0;
    00331
    00336     virtual const XalanDOMString&
    00337     getPrefix() const = 0;
    00338
    00346     virtual const XalanDOMString&
    00347     getLocalName() const = 0;
    00348
    00378     virtual void
    00379     setPrefix(const XalanDOMString&     prefix) = 0;
    00380
    00386     virtual bool
    00387     isIndexed() const = 0;
    00388
    00395     virtual IndexType
    00396     getIndex() const = 0;
    00397
    00399
    00400     // These interfaces are new to XalanAttr...
    00401
    00404
    00408     virtual const XalanDOMString&
    00409     getName() const = 0;
    00410
    00418     virtual bool
    00419     getSpecified() const = 0;
    00420
    00427     virtual const XalanDOMString&
    00428     getValue() const = 0;
    00429
    00431
    00433
    00440     virtual void
    00441     setValue(const XalanDOMString&  value) = 0;
    00442
    00444
    00447
    00451     virtual XalanElement*
    00452     getOwnerElement() const = 0;
    00454
    00455 protected:
    00456
    00457     XalanAttr(const XalanAttr&  theSource);
    00458
    00459     XalanAttr&
    00460     operator=(const XalanAttr&  theSource);
    00461
    00462     bool
    00463     operator==(const XalanAttr&     theRHS) const;
    00464
    00465 private:
    00466 };
    00467
    00468
    00469
    00470 XALAN_CPP_NAMESPACE_END
    00471
    00472
    00473
    00474 #endif  // !defined(XALANATTR_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.10 Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.