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

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

xerces added

Line 
1#ifndef DOMNotation_HEADER_GUARD_
2#define DOMNotation_HEADER_GUARD_
3
4/*
5 * Copyright 2001-2002,2004 The Apache Software Foundation.
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 *      http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19
20/*
21 * $Id: DOMNotation.hpp,v 1.8 2004/09/26 15:38:02 gareth Exp $
22 */
23
24#include <xercesc/util/XercesDefs.hpp>
25#include <xercesc/dom/DOMNode.hpp>
26
27XERCES_CPP_NAMESPACE_BEGIN
28
29
30/**
31 * This interface represents a notation declared in the DTD. A notation either
32 * declares, by name, the format of an unparsed entity (see section 4.7 of
33 * the XML 1.0 specification), or is used for formal declaration of
34 * Processing Instruction targets (see section 2.6 of the XML 1.0
35 * specification). The <code>nodeName</code> attribute inherited from
36 * <code>DOMNode</code> is set to the declared name of the notation.
37 * <p>The DOM Level 1 does not support editing <code>DOMNotation</code> nodes;
38 * they are therefore readonly.
39 * <p>A <code>DOMNotation</code> node does not have any parent.
40 *
41 * @since DOM Level 1
42 */
43class CDOM_EXPORT DOMNotation: public DOMNode {
44protected:
45    // -----------------------------------------------------------------------
46    //  Hidden constructors
47    // -----------------------------------------------------------------------
48    /** @name Hidden constructors */
49    //@{   
50    DOMNotation() {};
51    //@}
52
53private:
54    // -----------------------------------------------------------------------
55    // Unimplemented constructors and operators
56    // -----------------------------------------------------------------------
57    /** @name Unimplemented constructors and operators */
58    //@{
59    DOMNotation(const DOMNotation &);
60    DOMNotation & operator = (const DOMNotation &);
61    //@}
62
63public:
64    // -----------------------------------------------------------------------
65    //  All constructors are hidden, just the destructor is available
66    // -----------------------------------------------------------------------
67    /** @name Destructor */
68    //@{
69    /**
70     * Destructor
71     *
72     */
73    virtual ~DOMNotation() {};
74    //@}
75
76
77    // -----------------------------------------------------------------------
78    //  Virtual DOMNotation interface
79    // -----------------------------------------------------------------------
80    /** @name Functions introduced in DOM Level 1 */
81    //@{
82    // -----------------------------------------------------------------------
83    //  Getter methods
84    // -----------------------------------------------------------------------
85    /**
86     * Get the public identifier of this notation.
87     *
88     * If the  public identifier was not
89     * specified, this is <code>null</code>.
90     * @return Returns the public identifier of the notation
91     * @since DOM Level 1
92     */
93    virtual const XMLCh *getPublicId() const = 0;
94
95    /**
96     * Get the system identifier of this notation.
97     *
98     * If the  system identifier was not
99     * specified, this is <code>null</code>.
100     * @return Returns the system identifier of the notation
101     * @since DOM Level 1
102     */
103    virtual const XMLCh *getSystemId() const = 0;
104
105
106    //@}
107};
108
109XERCES_CPP_NAMESPACE_END
110
111#endif
112
113
Note: See TracBrowser for help on using the repository browser.