source: icXML/icXML-devel/src/xercesc/dom/impl/DOMAttrNSImpl.hpp @ 2722

Last change on this file since 2722 was 2722, checked in by cameron, 6 years ago

Original Xerces files with import mods for icxercesc

File size: 3.3 KB
Line 
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements.  See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License.  You may obtain a copy of the License at
8 *
9 *      http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18/*
19 * $Id: DOMAttrNSImpl.hpp 678709 2008-07-22 10:56:56Z borisk $
20 */
21
22#if !defined(XERCESC_INCLUDE_GUARD_DOMATTRNSIMPL_HPP)
23#define XERCESC_INCLUDE_GUARD_DOMATTRNSIMPL_HPP
24
25//
26//  This file is part of the internal implementation of the C++ XML DOM.
27//  It should NOT be included or used directly by application programs.
28//
29//  Applications should include the file <xercesc/dom/DOM.hpp> for the entire
30//  DOM API, or xercesc/dom/DOM*.hpp for individual DOM classes, where the class
31//  name is substituded for the *.
32//
33
34#include "DOMAttrImpl.hpp"
35
36XERCES_CPP_NAMESPACE_BEGIN
37
38
39class CDOM_EXPORT DOMAttrNSImpl: public DOMAttrImpl {
40protected:
41    //Introduced in DOM Level 2
42    const XMLCh * fNamespaceURI;     //namespace URI of this node
43    const XMLCh * fLocalName;        //local part of qualified name
44    const XMLCh * fPrefix;           // prefix part of qualified name
45                           // revisit - can return local part
46                           //    by pointing into the qualified (L1) name.
47
48public:
49    DOMAttrNSImpl(DOMDocument *ownerDoc, const XMLCh *name);
50    DOMAttrNSImpl(DOMDocument *ownerDoc, //DOM Level 2
51                  const XMLCh *namespaceURI, const XMLCh *qualifiedName);
52    DOMAttrNSImpl(const DOMAttrNSImpl &other, bool deep=false);
53
54    // Fast construction without any checks for name validity. Used in
55    // parsing. Note that if prefix is not specified and localName is
56    // 'xmlns', this constructor expects proper namespaceURI.
57    //
58    DOMAttrNSImpl(DOMDocument *ownerDoc,
59                  const XMLCh *namespaceURI,
60                  const XMLCh *prefix,        // Null or empty - no prefix.
61                  const XMLCh *localName,
62                  const XMLCh *qualifiedName);
63
64    virtual DOMNode * cloneNode(bool deep) const;
65    //Introduced in DOM Level 2
66    virtual const XMLCh *   getNamespaceURI() const;
67    virtual const XMLCh *   getPrefix() const;
68    virtual const XMLCh *   getLocalName() const;
69    virtual void            setPrefix(const XMLCh *prefix);
70    virtual void            release();
71
72   // helper function for DOM Level 3 renameNode
73   virtual DOMNode* rename(const XMLCh* namespaceURI, const XMLCh* name);
74   void setName(const XMLCh* namespaceURI, const XMLCh* name);
75
76private:
77    // -----------------------------------------------------------------------
78    // Unimplemented constructors and operators
79    // -----------------------------------------------------------------------
80    DOMAttrNSImpl & operator = (const DOMAttrNSImpl &);
81};
82
83XERCES_CPP_NAMESPACE_END
84
85#endif
Note: See TracBrowser for help on using the repository browser.