| 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 |  | 
|---|
| 18 | namespace Poco { | 
|---|
| 19 | namespace XML { | 
|---|
| 20 |  | 
|---|
| 21 |  | 
|---|
| 22 | Notation::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 |  | 
|---|
| 31 | Notation::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 |  | 
|---|
| 40 | Notation::~Notation() | 
|---|
| 41 | { | 
|---|
| 42 | } | 
|---|
| 43 |  | 
|---|
| 44 |  | 
|---|
| 45 | const XMLString& Notation::nodeName() const | 
|---|
| 46 | { | 
|---|
| 47 | return _name; | 
|---|
| 48 | } | 
|---|
| 49 |  | 
|---|
| 50 |  | 
|---|
| 51 | unsigned short Notation::nodeType() const | 
|---|
| 52 | { | 
|---|
| 53 | return Node::NOTATION_NODE; | 
|---|
| 54 | } | 
|---|
| 55 |  | 
|---|
| 56 |  | 
|---|
| 57 | Node* Notation::copyNode(bool /*deep*/, Document* pOwnerDocument) const | 
|---|
| 58 | { | 
|---|
| 59 | return new Notation(pOwnerDocument, *this); | 
|---|
| 60 | } | 
|---|
| 61 |  | 
|---|
| 62 |  | 
|---|
| 63 | } } // namespace Poco::XML | 
|---|
| 64 |  | 
|---|