17#include "arcane/DomDeclaration.h"
18#include "arcane/utils/String.h"
25class IXmlDocumentHolder;
29ARCANE_BEGIN_NAMESPACE_DOM
37extern NodePrv* toNodePrv(
const Node& node);
42typedef String DOMString;
97const UShort NOT_IMPLEMENTED_ERR = 2500;
126 void encoding(
const String& encoding);
130 DOMWriterPrv* _impl()
const;
132 void _checkValid()
const;
181 String _implementationName()
const;
184 static void initialize();
185 static void terminate();
187 ImplementationPrv* m_p;
188 ImplementationPrv* _impl()
const;
189 void _checkValid()
const;
195ARCANE_CORE_EXPORT
bool operator==(
const Node& n1,
const Node& n2);
196ARCANE_CORE_EXPORT
bool operator!=(
const Node& n1,
const Node& n2);
213 static const UShort ELEMENT_NODE = 1;
215 static const UShort ATTRIBUTE_NODE = 2;
217 static const UShort TEXT_NODE = 3;
219 static const UShort CDATA_SECTION_NODE = 4;
221 static const UShort ENTITY_REFERENCE_NODE = 5;
223 static const UShort ENTITY_NODE = 6;
225 static const UShort PROCESSING_INSTRUCTION_NODE = 7;
227 static const UShort COMMENT_NODE = 8;
229 static const UShort DOCUMENT_NODE = 9;
231 static const UShort DOCUMENT_TYPE_NODE = 10;
233 static const UShort DOCUMENT_FRAGMENT_NODE = 11;
235 static const UShort NOTATION_NODE = 12;
248 void nodeValue(
const DOMString& value)
const;
253 UShort nodeType()
const;
258 Node parentNode()
const;
268 Node firstChild()
const;
273 Node lastChild()
const;
278 Node previousSibling()
const;
283 Node nextSibling()
const;
298 Node insertBefore(
const Node& new_child,
const Node& ref_child)
const;
299 Node replaceChild(
const Node& new_child,
const Node& old_child)
const;
300 Node removeChild(
const Node& old_child)
const;
301 Node appendChild(
const Node& new_child)
const;
302 bool hasChildNodes()
const;
303 Node cloneNode(
bool deep)
const;
309 void prefix(
const DOMString& new_prefix)
const;
314 void normalize()
const;
333 static const UShort TREE_POSITION_PRECEDING = 0x01;
335 static const UShort TREE_POSITION_FOLLOWING = 0x02;
337 static const UShort TREE_POSITION_ANCESTOR = 0x04;
339 static const UShort TREE_POSITION_DESCENDANT = 0x08;
342 static const UShort TREE_POSITION_SAME = 0x10;
348 static const UShort TREE_POSITION_EXACT_SAME = 0x20;
350 static const UShort TREE_POSITION_DISCONNECTED = 0x00;
356 void textContent(
const DOMString& value)
const;
367 bool isSameNode(
const Node& node)
const;
368 UShort compareTreePosition(
const Node& other)
const;
369 bool isEqualNode(
const Node& other)
const;
371 DOMString lookupNamespacePrefix(
const DOMString& namespace_uri,
bool use_default)
const;
372 bool isDefaultNamespace(
const DOMString& namespace_uri)
const;
375 DOMObject setUserData(
const DOMString& key,
const DOMObject& data,
377 DOMObject getUserData(
const DOMString& key)
const;
398 friend class IDOM_Node;
399 friend class IDOM_Document;
408 friend bool ARCANE_CORE_EXPORT operator==(
const Node& n1,
const Node& n2);
414 void _assign(
const Node&);
420 const Node& operator=(
const Node& from);
424 void _checkValid()
const;
426 NodePrv* _impl()
const;
427 friend NodePrv* toNodePrv(
const Node& node);
454 Element documentElement()
const;
473 Node importNode(
const Node& imported_node,
bool deep)
const;
483 void actualEncoding(
const DOMString&)
const;
494 bool standalone()
const;
495 void standalone(
bool)
const;
500 bool strictErrorChecking()
const;
501 void strictErrorChecking(
bool)
const;
519 void documentURI(
const DOMString&)
const;
524 Node adoptNode(
const Node& source)
const;
525 void normalizeDocument();
535 friend class IDOM_Document;
542 DocumentPrv* _impl()
const;
565 Node item(ULong index)
const;
566 ULong length()
const;
572 NodeListPrv* _impl()
const;
574 void _checkValid()
const;
596 ULong length()
const;
601 DOMString substringData(ULong offset,ULong count)
const;
602 void appendData(
const DOMString& arg)
const;
603 void insertData(ULong offset,
const DOMString& arg)
const;
604 void deleteData(ULong offset,ULong count)
const;
605 void replaceData(ULong offset,ULong count,
const DOMString& arg)
const;
612 CharacterDataPrv* _impl()
const;
626 bool specified()
const;
641 friend class IDOM_Attr;
642 friend class IDOM_Node;
651 AttrPrv* _impl()
const;
671 void removeAttribute(
const DOMString& name)
const;
673 Attr setAttributeNode(
const Attr& new_attr)
const;
674 Attr removeAttributeNode(
const Attr& old_attr)
const;
681 void removeAttributeNS(
const DOMString& namespace_uri,
const DOMString& local_name)
const;
683 Attr setAttributeNodeNS(
const Attr& new_attr)
const;
685 bool hasAttribute(
const DOMString& name)
const;
686 bool hasAttributeNS(
const DOMString& namespace_uri,
const DOMString& local_name)
const;
694 friend class IDOM_Element;
697 ElementPrv* _impl()
const;
709 Text splitText(ULong offset)
const;
713 bool isWhiteSpaceInElementContent()
const;
728 TextPrv* _impl()
const;
742 CommentPrv* _impl()
const;
752 CDATASectionPrv* _impl()
const;
791 friend class Arcane::dom::DOMImplementation;
792 DocumentTypePrv* _impl()
const;
812 NotationPrv* _impl()
const;
839 void actualEncoding(
const DOMString&)
const;
854 EntityPrv* _impl()
const;
867 EntityReferencePrv* _impl()
const;
892 ProcessingInstructionPrv* _impl()
const;
903 ULong length()
const;
908 Node setNamedItem(
const Node& arg)
const;
910 Node item(ULong index)
const;
915 Node setNamedItemNS(
const Node& arg)
const;
921 friend class IDOM_Node;
922 friend class IDOM_Element;
930 NamedNodeMapPrv* m_p;
931 NamedNodeMapPrv* _impl()
const;
952 static const UShort CLONED = 1;
954 static const UShort IMPORTED = 2;
956 static const UShort DELETED = 3;
959 void handle(UShort operation,
const DOMString& key,
const DOMObject& data,
960 const Node& src,
const Node& dest)
const;
972 static const UShort SEVERITY_WARNING = 0;
974 static const UShort SEVERITY_ERROR = 1;
976 static const UShort SEVERITY_FATAL_ERROR = 2;
981 UShort severity()
const;
991 DOMObject relatedException()
const;
1006 DOMErrorPrv* _impl()
const;
1008 void _checkValid()
const;
1019 bool handleError(
const DOMError& error)
const;
1031 long lineNumber()
const;
1035 long columnNumber()
const;
1039 long offset()
const;
1043 Node errorNode()
const;
1058 DOMLocatorPrv* _impl()
const;
1060 void _checkValid()
const;
1089 unsigned short code;
1103 const Node& context_node,
1109 const Node& context_node,
1144 static const UShort ANY_TYPE = 0;
1146 static const UShort NUMBER_TYPE = 1;
1148 static const UShort STRING_TYPE = 2;
1150 static const UShort BOOLEAN_TYPE = 3;
1152 static const UShort NODE_SET_TYPE = 4;
1166 static const UShort SINGLE_NODE_TYPE = 5;
1171 UShort resultType()
const;
1176 double numberValue()
const;
1186 bool booleanValue()
const;
1191 Node singleNodeValue()
const;
1208 Node nextNode()
const;
1216 ULong length()
const;
1221 Node item(ULong index)
const;
1235 static const UShort XPATH_NAMESPACE_NODE = 13;
1247ARCANE_END_NAMESPACE_DOM
UShort code
The code of the exception.
Gestionnaire d'un document DOM.
NodePrv * m_p
Implémentation de la classe.
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).
const UShort INUSE_ATTRIBUTE_ERR
const UShort INVALID_ACCESS_ERR
const UShort HIERARCHY_REQUEST_ERR
If any node is inserted somewhere it doesn't belong.
const unsigned short TYPE_ERR
const UShort INVALID_MODIFICATION_ERR
const UShort NOT_FOUND_ERR
const UShort NO_DATA_ALLOWED_ERR
If data is specified for a node which does not support data.
Span< const std::byte > ByteConstSpan
Vue en lecture seule d'un tableau à une dimension de caractères.
const UShort INVALID_STATE_ERR
const UShort NOT_SUPPORTED_ERR
const UShort INVALID_CHARACTER_ERR
const UShort WRONG_DOCUMENT_ERR
const UShort NO_MODIFICATION_ALLOWED_ERR
const UShort DOMSTRING_SIZE_ERR
const unsigned short INVALID_EXPRESSION_ERR
const UShort INDEX_SIZE_ERR
const UShort NAMESPACE_ERR