Checks the validity of content between elements. More...
Public Member Functions | |
| XmlElementContentChecker (ICaseDocumentFragment *cd, ITraceMng *tm) | |
| void | check (XmlNode element) |
| Checks the validity of child elements of element. | |
Private Attributes | |
| ICaseDocumentFragment * | m_case_document |
| String | m_space_string |
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.
|
inline |
Definition at line 62 of file CaseOptionList.cc.
|
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().
|
private |
Definition at line 97 of file CaseOptionList.cc.
|
private |
Definition at line 98 of file CaseOptionList.cc.