[2674] | 1 | #ifndef DOMEntityReference_HEADER_GUARD_ |
---|
| 2 | #define DOMEntityReference_HEADER_GUARD_ |
---|
| 3 | |
---|
| 4 | /* |
---|
| 5 | * Licensed to the Apache Software Foundation (ASF) under one or more |
---|
| 6 | * contributor license agreements. See the NOTICE file distributed with |
---|
| 7 | * this work for additional information regarding copyright ownership. |
---|
| 8 | * The ASF licenses this file to You under the Apache License, Version 2.0 |
---|
| 9 | * (the "License"); you may not use this file except in compliance with |
---|
| 10 | * the License. You may obtain a copy of the License at |
---|
| 11 | * |
---|
| 12 | * http://www.apache.org/licenses/LICENSE-2.0 |
---|
| 13 | * |
---|
| 14 | * Unless required by applicable law or agreed to in writing, software |
---|
| 15 | * distributed under the License is distributed on an "AS IS" BASIS, |
---|
| 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
| 17 | * See the License for the specific language governing permissions and |
---|
| 18 | * limitations under the License. |
---|
| 19 | */ |
---|
| 20 | |
---|
| 21 | /* |
---|
| 22 | * $Id: DOMEntityReference.hpp 568078 2007-08-21 11:43:25Z amassari $ |
---|
| 23 | */ |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | #include <xercesc/util/XercesDefs.hpp> |
---|
| 27 | #include <xercesc/dom/DOMNode.hpp> |
---|
| 28 | |
---|
| 29 | XERCES_CPP_NAMESPACE_BEGIN |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | /** |
---|
| 33 | * <code>DOMEntityReference</code> objects may be inserted into the structure |
---|
| 34 | * model when an entity reference is in the source document, or when the |
---|
| 35 | * user wishes to insert an entity reference. Note that character references |
---|
| 36 | * and references to predefined entities are considered to be expanded by |
---|
| 37 | * the HTML or XML processor so that characters are represented by their |
---|
| 38 | * Unicode equivalent rather than by an entity reference. Moreover, the XML |
---|
| 39 | * processor may completely expand references to entities while building the |
---|
| 40 | * structure model, instead of providing <code>DOMEntityReference</code> |
---|
| 41 | * objects. If it does provide such objects, then for a given |
---|
| 42 | * <code>DOMEntityReference</code> node, it may be that there is no |
---|
| 43 | * <code>DOMEntity</code> node representing the referenced entity. If such an |
---|
| 44 | * <code>DOMEntity</code> exists, then the subtree of the |
---|
| 45 | * <code>DOMEntityReference</code> node is in general a copy of the |
---|
| 46 | * <code>DOMEntity</code> node subtree. However, this may not be true when an |
---|
| 47 | * entity contains an unbound namespace prefix. In such a case, because the |
---|
| 48 | * namespace prefix resolution depends on where the entity reference is, the |
---|
| 49 | * descendants of the <code>DOMEntityReference</code> node may be bound to |
---|
| 50 | * different namespace URIs. |
---|
| 51 | * <p>As for <code>DOMEntity</code> nodes, <code>DOMEntityReference</code> nodes and |
---|
| 52 | * all their descendants are readonly. |
---|
| 53 | * <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>. |
---|
| 54 | * |
---|
| 55 | * @since DOM Level 1 |
---|
| 56 | */ |
---|
| 57 | |
---|
| 58 | class CDOM_EXPORT DOMEntityReference: public DOMNode { |
---|
| 59 | protected: |
---|
| 60 | // ----------------------------------------------------------------------- |
---|
| 61 | // Hidden constructors |
---|
| 62 | // ----------------------------------------------------------------------- |
---|
| 63 | /** @name Hidden constructors */ |
---|
| 64 | //@{ |
---|
| 65 | DOMEntityReference() {} |
---|
| 66 | DOMEntityReference(const DOMEntityReference &other) : DOMNode(other) {} |
---|
| 67 | //@} |
---|
| 68 | |
---|
| 69 | private: |
---|
| 70 | // ----------------------------------------------------------------------- |
---|
| 71 | // Unimplemented constructors and operators |
---|
| 72 | // ----------------------------------------------------------------------- |
---|
| 73 | /** @name Unimplemented operators */ |
---|
| 74 | //@{ |
---|
| 75 | DOMEntityReference & operator = (const DOMEntityReference &); |
---|
| 76 | //@} |
---|
| 77 | |
---|
| 78 | public: |
---|
| 79 | // ----------------------------------------------------------------------- |
---|
| 80 | // All constructors are hidden, just the destructor is available |
---|
| 81 | // ----------------------------------------------------------------------- |
---|
| 82 | /** @name Destructor */ |
---|
| 83 | //@{ |
---|
| 84 | /** |
---|
| 85 | * Destructor |
---|
| 86 | * |
---|
| 87 | */ |
---|
| 88 | virtual ~DOMEntityReference() {}; |
---|
| 89 | //@} |
---|
| 90 | |
---|
| 91 | }; |
---|
| 92 | |
---|
| 93 | XERCES_CPP_NAMESPACE_END |
---|
| 94 | |
---|
| 95 | #endif |
---|
| 96 | |
---|
| 97 | |
---|