1//
2// Notation.cpp
3//
4// Library: XML
5// Package: DOM
6// Module: DOM
7//
8// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
9// and Contributors.
10//
11// SPDX-License-Identifier: BSL-1.0
12//
13
14
15#include "Poco/DOM/Notation.h"
16
17
18namespace Poco {
19namespace XML {
20
21
22Notation::Notation(Document* pOwnerDocument, const XMLString& name, const XMLString& publicId, const XMLString& systemId):
23 AbstractNode(pOwnerDocument),
24 _name(name),
25 _publicId(publicId),
26 _systemId(systemId)
27{
28}
29
30
31Notation::Notation(Document* pOwnerDocument, const Notation& notation):
32 AbstractNode(pOwnerDocument, notation),
33 _name(notation._name),
34 _publicId(notation._publicId),
35 _systemId(notation._systemId)
36{
37}
38
39
40Notation::~Notation()
41{
42}
43
44
45const XMLString& Notation::nodeName() const
46{
47 return _name;
48}
49
50
51unsigned short Notation::nodeType() const
52{
53 return Node::NOTATION_NODE;
54}
55
56
57Node* Notation::copyNode(bool deep, Document* pOwnerDocument) const
58{
59 return new Notation(pOwnerDocument, *this);
60}
61
62
63} } // namespace Poco::XML
64