17#include "arcane/DomDeclaration.h"
18#include "arcane/utils/String.h"
26class IXmlDocumentHolder;
38extern NodePrv* toNodePrv(
const Node& node);
43typedef String DOMString;
56const UShort INDEX_SIZE_ERR = 1;
58const UShort DOMSTRING_SIZE_ERR = 2;
60const UShort HIERARCHY_REQUEST_ERR = 3;
63const UShort WRONG_DOCUMENT_ERR = 4;
68const UShort INVALID_CHARACTER_ERR = 5;
70const UShort NO_DATA_ALLOWED_ERR = 6;
73const UShort NO_MODIFICATION_ALLOWED_ERR = 7;
76const UShort NOT_FOUND_ERR = 8;
79const UShort NOT_SUPPORTED_ERR = 9;
82const UShort INUSE_ATTRIBUTE_ERR = 10;
85const UShort INVALID_STATE_ERR = 11;
87const UShort SYNTAX_ERR = 12;
89const UShort INVALID_MODIFICATION_ERR = 13;
92const UShort NAMESPACE_ERR = 14;
95const UShort INVALID_ACCESS_ERR = 15;
98const UShort NOT_IMPLEMENTED_ERR = 2500;
127 void encoding(
const String& encoding);
131 DOMWriterPrv* _impl()
const;
133 void _checkValid()
const;
182 String _implementationName()
const;
185 static void initialize();
186 static void terminate();
188 ImplementationPrv* m_p;
189 ImplementationPrv* _impl()
const;
190 void _checkValid()
const;
196ARCANE_CORE_EXPORT
bool operator==(
const Node& n1,
const Node& n2);
197ARCANE_CORE_EXPORT
bool operator!=(
const Node& n1,
const Node& n2);
214 static const UShort ELEMENT_NODE = 1;
216 static const UShort ATTRIBUTE_NODE = 2;
218 static const UShort TEXT_NODE = 3;
220 static const UShort CDATA_SECTION_NODE = 4;
222 static const UShort ENTITY_REFERENCE_NODE = 5;
224 static const UShort ENTITY_NODE = 6;
226 static const UShort PROCESSING_INSTRUCTION_NODE = 7;
228 static const UShort COMMENT_NODE = 8;
230 static const UShort DOCUMENT_NODE = 9;
232 static const UShort DOCUMENT_TYPE_NODE = 10;
234 static const UShort DOCUMENT_FRAGMENT_NODE = 11;
236 static const UShort NOTATION_NODE = 12;
249 void nodeValue(
const DOMString& value)
const;
254 UShort nodeType()
const;
259 Node parentNode()
const;
269 Node firstChild()
const;
274 Node lastChild()
const;
279 Node previousSibling()
const;
284 Node nextSibling()
const;
299 Node insertBefore(
const Node& new_child,
const Node& ref_child)
const;
300 Node replaceChild(
const Node& new_child,
const Node& old_child)
const;
301 Node removeChild(
const Node& old_child)
const;
302 Node appendChild(
const Node& new_child)
const;
303 bool hasChildNodes()
const;
304 Node cloneNode(
bool deep)
const;
310 void prefix(
const DOMString& new_prefix)
const;
315 void normalize()
const;
334 static const UShort TREE_POSITION_PRECEDING = 0x01;
336 static const UShort TREE_POSITION_FOLLOWING = 0x02;
338 static const UShort TREE_POSITION_ANCESTOR = 0x04;
340 static const UShort TREE_POSITION_DESCENDANT = 0x08;
343 static const UShort TREE_POSITION_SAME = 0x10;
349 static const UShort TREE_POSITION_EXACT_SAME = 0x20;
351 static const UShort TREE_POSITION_DISCONNECTED = 0x00;
357 void textContent(
const DOMString& value)
const;
368 bool isSameNode(
const Node& node)
const;
369 UShort compareTreePosition(
const Node& other)
const;
370 bool isEqualNode(
const Node& other)
const;
372 DOMString lookupNamespacePrefix(
const DOMString& namespace_uri,
bool use_default)
const;
373 bool isDefaultNamespace(
const DOMString& namespace_uri)
const;
376 DOMObject setUserData(
const DOMString& key,
const DOMObject& data,
378 DOMObject getUserData(
const DOMString& key)
const;
399 friend class IDOM_Node;
400 friend class IDOM_Document;
409 friend bool ARCANE_CORE_EXPORT operator==(
const Node& n1,
const Node& n2);
415 void _assign(
const Node&);
421 const Node& operator=(
const Node& from);
425 void _checkValid()
const;
427 NodePrv* _impl()
const;
428 friend NodePrv* toNodePrv(
const Node& node);
455 Element documentElement()
const;
474 Node importNode(
const Node& imported_node,
bool deep)
const;
484 void actualEncoding(
const DOMString&)
const;
495 bool standalone()
const;
496 void standalone(
bool)
const;
501 bool strictErrorChecking()
const;
502 void strictErrorChecking(
bool)
const;
520 void documentURI(
const DOMString&)
const;
525 Node adoptNode(
const Node& source)
const;
526 void normalizeDocument();
536 friend class IDOM_Document;
543 DocumentPrv* _impl()
const;
566 Node item(ULong index)
const;
567 ULong length()
const;
573 NodeListPrv* _impl()
const;
575 void _checkValid()
const;
597 ULong length()
const;
602 DOMString substringData(ULong offset,ULong count)
const;
603 void appendData(
const DOMString& arg)
const;
604 void insertData(ULong offset,
const DOMString& arg)
const;
605 void deleteData(ULong offset,ULong count)
const;
606 void replaceData(ULong offset,ULong count,
const DOMString& arg)
const;
613 CharacterDataPrv* _impl()
const;
627 bool specified()
const;
642 friend class IDOM_Attr;
643 friend class IDOM_Node;
650 AttrPrv* _impl()
const;
670 void removeAttribute(
const DOMString& name)
const;
672 Attr setAttributeNode(
const Attr& new_attr)
const;
673 Attr removeAttributeNode(
const Attr& old_attr)
const;
680 void removeAttributeNS(
const DOMString& namespace_uri,
const DOMString& local_name)
const;
682 Attr setAttributeNodeNS(
const Attr& new_attr)
const;
684 bool hasAttribute(
const DOMString& name)
const;
685 bool hasAttributeNS(
const DOMString& namespace_uri,
const DOMString& local_name)
const;
693 friend class IDOM_Element;
696 ElementPrv* _impl()
const;
708 Text splitText(ULong offset)
const;
712 bool isWhiteSpaceInElementContent()
const;
727 TextPrv* _impl()
const;
741 CommentPrv* _impl()
const;
751 CDATASectionPrv* _impl()
const;
791 DocumentTypePrv* _impl()
const;
811 NotationPrv* _impl()
const;
838 void actualEncoding(
const DOMString&)
const;
853 EntityPrv* _impl()
const;
866 EntityReferencePrv* _impl()
const;
891 ProcessingInstructionPrv* _impl()
const;
902 ULong length()
const;
907 Node setNamedItem(
const Node& arg)
const;
909 Node item(ULong index)
const;
914 Node setNamedItemNS(
const Node& arg)
const;
920 friend class IDOM_Node;
921 friend class IDOM_Element;
929 NamedNodeMapPrv* m_p;
930 NamedNodeMapPrv* _impl()
const;
958 void handle(UShort operation,
const DOMString& key,
const DOMObject& data,
959 const Node& src,
const Node& dest)
const;
980 UShort severity()
const;
990 DOMObject relatedException()
const;
1005 DOMErrorPrv* _impl()
const;
1007 void _checkValid()
const;
1018 bool handleError(
const DOMError& error)
const;
1030 long lineNumber()
const;
1034 long columnNumber()
const;
1038 long offset()
const;
1042 Node errorNode()
const;
1057 DOMLocatorPrv* _impl()
const;
1059 void _checkValid()
const;
1074const unsigned short INVALID_EXPRESSION_ERR = 1;
1079const unsigned short TYPE_ERR = 2;
1088 unsigned short code;
1102 const Node& context_node,
1108 const Node& context_node,
1170 UShort resultType()
const;
1175 double numberValue()
const;
1185 bool booleanValue()
const;
1190 Node singleNodeValue()
const;
1207 Node nextNode()
const;
1215 ULong length()
const;
1220 Node item(ULong index)
const;
Gestionnaire d'un document DOM.
static const UShort SEVERITY_ERROR
The severity of the error described by the DOMError is error.
static const UShort SEVERITY_WARNING
The severity of the error described by the DOMError is warning.
static const UShort SEVERITY_FATAL_ERROR
The severity of the error described by the DOMError is fatal error.
UShort code
The code of the exception.
NodePrv * m_p
Implémentation de la classe.
static const UShort IMPORTED
The node is imported.
static const UShort CLONED
The node is cloned.
static const UShort DELETED
The node is deleted.
static const UShort XPATH_NAMESPACE_NODE
The node is a Namespace.
static const UShort NUMBER_TYPE
The result is a number as defined by XPath 1.0.
static const UShort SINGLE_NODE_TYPE
static const UShort STRING_TYPE
The result is a string as defined by XPath 1.0.
static const UShort ANY_TYPE
static const UShort BOOLEAN_TYPE
The result is a boolean as defined by XPath 1.0.
static const UShort NODE_SET_TYPE
The result is a node set as defined by XPath 1.0.
Classe de base des vecteurs 1D de données.
Vue constante d'un tableau de type T.
Interface du gestionnaire de traces.
Chaîne de caractères unicode.
Vecteur 1D de données avec sémantique par valeur (style STL).
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
Span< const std::byte > ByteConstSpan
Vue en lecture seule d'un tableau à une dimension de caractères.