source: NonGTP/Xerces/xerces/include/xercesc/dom/deprecated/DOM_Notation.hpp @ 358

Revision 358, 4.4 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1/*
2 * Copyright 1999-2002,2004 The Apache Software Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 * $Id: DOM_Notation.hpp,v 1.5 2004/09/08 13:55:42 peiyongz Exp $
19 */
20
21#ifndef DOM_Notation_HEADER_GUARD_
22#define DOM_Notation_HEADER_GUARD_
23
24#include <xercesc/util/XercesDefs.hpp>
25#include "DOM_Node.hpp"
26
27XERCES_CPP_NAMESPACE_BEGIN
28
29
30class NotationImpl;
31
32/**
33 * This interface represents a notation declared in the DTD. A notation either
34 * declares, by name, the format of an unparsed entity (see section 4.7 of
35 * the XML 1.0 specification), or is used for formal declaration of
36 * Processing Instruction targets (see section 2.6 of the XML 1.0
37 * specification). The <code>nodeName</code> attribute inherited from
38 * <code>Node</code> is set to the declared name of the notation.
39 * <p>The DOM Level 1 does not support editing <code>Notation</code> nodes;
40 * they are therefore readonly.
41 * <p>A <code>Notation</code> node does not have any parent.
42 */
43class DEPRECATED_DOM_EXPORT DOM_Notation: public DOM_Node {
44public:
45    /** @name Constructors and assignment operator */
46    //@{
47    /**
48      * Default constructor for DOM_Notation.  The resulting object does not
49    * refer to an actual Notation node; it will compare == to 0, and is similar
50    * to a null object reference variable in Java.  It may subsequently be
51    * assigned to refer to an actual Notation node.
52    * <p>
53    * New notation nodes are created by DOM_Document::createNotation().
54    *
55      *
56      */
57    DOM_Notation();
58
59    /**
60      * Copy constructor.  Creates a new <code>DOM_Notation</code> that refers to the
61      * same underlying node as the original.  See also DOM_Node::clone(),
62      * which will copy the actual notation node, rather than just creating a new
63      * reference to the original node.
64      *
65      * @param other The object to be copied.
66      */
67    DOM_Notation(const DOM_Notation &other);
68
69    /**
70      * Assignment operator.
71      *
72      * @param other The object to be copied.
73      */
74    DOM_Notation & operator = (const DOM_Notation &other);
75
76     /**
77      * Assignment operator.  This overloaded variant is provided for
78      *   the sole purpose of setting a DOM_Node reference variable to
79      *   zero.  Nulling out a reference variable in this way will decrement
80      *   the reference count on the underlying Node object that the variable
81      *   formerly referenced.  This effect is normally obtained when reference
82      *   variable goes out of scope, but zeroing them can be useful for
83      *   global instances, or for local instances that will remain in scope
84      *   for an extended time,  when the storage belonging to the underlying
85      *   node needs to be reclaimed.
86      *
87      * @param val   Only a value of 0, or null, is allowed.
88      */
89    DOM_Notation & operator = (const DOM_NullPtr *val);
90
91
92    //@}
93    /** @name Destructor. */
94    //@{
95         /**
96          * Destructor for DOM_Notation.  The object being destroyed is the reference
97      * object, not the underlying Notation node itself.
98      *
99          */
100    ~DOM_Notation();
101
102    //@}
103    /** @name Get functions. */
104    //@{
105
106    /**
107     * Get the public identifier of this notation.
108     *
109     * If the  public identifier was not
110     * specified, this is <code>null</code>.
111     * @return Returns the public identifier of the notation
112     */
113    DOMString        getPublicId() const;
114    /**
115     * Get the system identifier of this notation.
116     *
117     * If the  system identifier was not
118     * specified, this is <code>null</code>.
119     * @return Returns the system identifier of the notation
120     */
121    DOMString        getSystemId() const;
122
123
124    //@}
125
126protected:
127    DOM_Notation(NotationImpl *impl);
128
129    friend class DOM_Document;
130
131};
132
133XERCES_CPP_NAMESPACE_END
134
135#endif
136
137
Note: See TracBrowser for help on using the repository browser.