aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/poco/XML/include/Poco/DOM/EntityReference.h
diff options
context:
space:
mode:
authorDevtools Arcadia <arcadia-devtools@yandex-team.ru>2022-02-07 18:08:42 +0300
committerDevtools Arcadia <arcadia-devtools@mous.vla.yp-c.yandex.net>2022-02-07 18:08:42 +0300
commit1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch)
treee26c9fed0de5d9873cce7e00bc214573dc2195b7 /contrib/libs/poco/XML/include/Poco/DOM/EntityReference.h
downloadydb-1110808a9d39d4b808aef724c861a2e1a38d2a69.tar.gz
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'contrib/libs/poco/XML/include/Poco/DOM/EntityReference.h')
-rw-r--r--contrib/libs/poco/XML/include/Poco/DOM/EntityReference.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/contrib/libs/poco/XML/include/Poco/DOM/EntityReference.h b/contrib/libs/poco/XML/include/Poco/DOM/EntityReference.h
new file mode 100644
index 0000000000..5ecd044b57
--- /dev/null
+++ b/contrib/libs/poco/XML/include/Poco/DOM/EntityReference.h
@@ -0,0 +1,73 @@
+//
+// EntityReference.h
+//
+// Library: XML
+// Package: DOM
+// Module: DOM
+//
+// Definition of the DOM EntityReference class.
+//
+// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
+// and Contributors.
+//
+// SPDX-License-Identifier: BSL-1.0
+//
+
+
+#ifndef DOM_EntityReference_INCLUDED
+#define DOM_EntityReference_INCLUDED
+
+
+#include "Poco/XML/XML.h"
+#include "Poco/DOM/AbstractNode.h"
+#include "Poco/XML/XMLString.h"
+
+
+namespace Poco {
+namespace XML {
+
+
+class XML_API EntityReference: public AbstractNode
+ /// EntityReference objects may be inserted into the structure model when an
+ /// entity reference is in the source document, or when the user wishes to insert
+ /// an entity reference. Note that character references and references to predefined
+ /// entities are considered to be expanded by the HTML or XML processor so that
+ /// characters are represented by their Unicode equivalent rather than by an
+ /// entity reference. Moreover, the XML processor may completely expand references
+ /// to entities while building the structure model, instead of providing EntityReference
+ /// objects. If it does provide such objects, then for a given EntityReference
+ /// node, it may be that there is no Entity node representing the referenced
+ /// entity. If such an Entity exists, then the child list of the EntityReference
+ /// node is the same as that of the Entity node.
+ ///
+ /// As for Entity nodes, EntityReference nodes and all their descendants are
+ /// readonly.
+ ///
+ /// The resolution of the children of the EntityReference (the replacement value
+ /// of the referenced Entity) may be lazily evaluated; actions by the user (such
+ /// as calling the childNodes method on the EntityReference node) are assumed
+ /// to trigger the evaluation.
+{
+public:
+ // Node
+ const XMLString& nodeName() const;
+ unsigned short nodeType() const;
+
+protected:
+ EntityReference(Document* pOwnerDocument, const XMLString& name);
+ EntityReference(Document* pOwnerDocument, const EntityReference& ref);
+ ~EntityReference();
+
+ Node* copyNode(bool deep, Document* pOwnerDocument) const;
+
+private:
+ XMLString _name;
+
+ friend class Document;
+};
+
+
+} } // namespace Poco::XML
+
+
+#endif // DOM_EntityReference_INCLUDED