Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::XmlElementContentChecker Class Reference

Checks the validity of content between elements. More...

Collaboration diagram for Arcane::XmlElementContentChecker:

Public Member Functions

 XmlElementContentChecker (ICaseDocumentFragment *cd, ITraceMng *tm)
void check (XmlNode element)
 Checks the validity of child elements of element.

Private Attributes

ICaseDocumentFragmentm_case_document
String m_space_string

Detailed Description

Checks the validity of content between elements.

This class allows checking that there are no character strings between elements.

For example, the following text is invalid: for a complex option 'toto' containing two options 'x' and 'y', the following text is considered invalid: <toto>ABCD<x>A</x><y></y></toto> because 'ABCD' will not be used, which can be misleading for the user. Only text nodes containing whitespace characters are tolerated between elements.

Definition at line 58 of file CaseOptionList.cc.

Constructor & Destructor Documentation

◆ XmlElementContentChecker()

Arcane::XmlElementContentChecker::XmlElementContentChecker ( ICaseDocumentFragment * cd,
ITraceMng * tm )
inline

Definition at line 62 of file CaseOptionList.cc.

Member Function Documentation

◆ check()

void Arcane::XmlElementContentChecker::check ( XmlNode element)
inline

Checks the validity of child elements of element.

Definition at line 70 of file CaseOptionList.cc.

References Arcane::CaseOptionError::addWarning(), Arcane::XmlNode::begin(), Arcane::StringBuilder::collapseWhiteSpace(), Arcane::XmlNode::ELEMENT, Arcane::XmlNode::end(), Arcane::XmlNode::TEXT, Arcane::StringBuilder::toString(), Arcane::XmlNode::type(), Arcane::XmlNode::value(), and Arcane::XmlNode::xpathFullName().

Here is the call graph for this function:

Member Data Documentation

◆ m_case_document

ICaseDocumentFragment* Arcane::XmlElementContentChecker::m_case_document
private

Definition at line 97 of file CaseOptionList.cc.

◆ m_space_string

String Arcane::XmlElementContentChecker::m_space_string
private

Definition at line 98 of file CaseOptionList.cc.


The documentation for this class was generated from the following file: