Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:27:01

0001 /*
0002  * Licensed to the Apache Software Foundation (ASF) under one or more
0003  * contributor license agreements.  See the NOTICE file distributed with
0004  * this work for additional information regarding copyright ownership.
0005  * The ASF licenses this file to You under the Apache License, Version 2.0
0006  * (the "License"); you may not use this file except in compliance with
0007  * the License.  You may obtain a copy of the License at
0008  *
0009  *      http://www.apache.org/licenses/LICENSE-2.0
0010  *
0011  * Unless required by applicable law or agreed to in writing, software
0012  * distributed under the License is distributed on an "AS IS" BASIS,
0013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0014  * See the License for the specific language governing permissions and
0015  * limitations under the License.
0016  */
0017 
0018 /*
0019  * $Id$
0020  */
0021 
0022 #if !defined(XERCESC_INCLUDE_GUARD_DOMELEMENTNSIMPL_HPP)
0023 #define XERCESC_INCLUDE_GUARD_DOMELEMENTNSIMPL_HPP
0024 
0025 //
0026 //  This file is part of the internal implementation of the C++ XML DOM.
0027 //  It should NOT be included or used directly by application programs.
0028 //
0029 //  Applications should include the file <xercesc/dom/DOM.hpp> for the entire
0030 //  DOM API, or xercesc/dom/DOM*.hpp for individual DOM classes, where the class
0031 //  name is substituded for the *.
0032 //
0033 
0034 
0035 #include "DOMElementImpl.hpp"
0036 
0037 XERCES_CPP_NAMESPACE_BEGIN
0038 
0039 class DOMTypeInfoImpl;
0040 
0041 class CDOM_EXPORT DOMElementNSImpl: public DOMElementImpl {
0042 protected:
0043     //Introduced in DOM Level 2
0044     const XMLCh * fNamespaceURI;     //namespace URI of this node
0045     const XMLCh * fLocalName;        //local part of qualified name
0046     const XMLCh * fPrefix;
0047     const DOMTypeInfoImpl *fSchemaType;
0048 
0049 public:
0050     DOMElementNSImpl(DOMDocument *ownerDoc, const XMLCh *name);
0051     DOMElementNSImpl(DOMDocument *ownerDoc, //DOM Level 2
0052                      const XMLCh *namespaceURI,
0053                      const XMLCh *qualifiedName);
0054     DOMElementNSImpl(const DOMElementNSImpl &other, bool deep=false);
0055 
0056     // Fast construction without any checks for name validity. Used in
0057     // parsing.
0058     //
0059     DOMElementNSImpl(DOMDocument *ownerDoc,
0060                      const XMLCh *namespaceURI,
0061                      const XMLCh *prefix,        // Null or empty - no prefix.
0062                      const XMLCh *localName,
0063                      const XMLCh *qualifiedName);
0064 
0065     virtual DOMNode * cloneNode(bool deep) const;
0066     virtual bool isSupported(const XMLCh *feature, const XMLCh *version) const;
0067     virtual void* getFeature(const XMLCh* feature, const XMLCh* version) const;
0068 
0069     //Introduced in DOM Level 2
0070     virtual const XMLCh *getNamespaceURI() const;
0071     virtual const XMLCh *getPrefix() const;
0072     virtual const XMLCh *getLocalName() const;
0073     virtual void         setPrefix(const XMLCh *prefix);
0074     virtual void         release();
0075 
0076     //Introduced in DOM Level 3
0077     virtual const DOMTypeInfo * getSchemaTypeInfo() const;
0078 
0079    // helper function for DOM Level 3 renameNode
0080    virtual DOMNode* rename(const XMLCh* namespaceURI, const XMLCh* name);
0081    void setName(const XMLCh* namespaceURI, const XMLCh* name);
0082 
0083     //helper function for DOM Level 3 TypeInfo
0084     virtual void setSchemaTypeInfo(const DOMTypeInfoImpl* typeInfo);
0085 
0086 private:
0087     // -----------------------------------------------------------------------
0088     // Unimplemented constructors and operators
0089     // -----------------------------------------------------------------------
0090     DOMElementNSImpl & operator = (const DOMElementNSImpl &);
0091 };
0092 
0093 XERCES_CPP_NAMESPACE_END
0094 
0095 #endif