Class SlCheckHtmlFileReader
- Namespace
- MES.MQC.DataSourceLibrary.Adapters.Files
- Assembly
- MES.MQC.DataSourceLibrary.dll
public class SlCheckHtmlFileReader : FileReader
- Inheritance
-
SlCheckHtmlFileReader
- Inherited Members
Properties
DataSource
The Data Source of the Adapter. If a report file contains data from multiple data sources, this property has to be to "Unknown" and the DataSource of each AdapterData object has to be defined.
public override string DataSource { get; }
Property Value
Description
Description of the Adapter that is visible in the Adapter Dialog as a popover. If the adapter is an API Connector, the description is also shown in the Add/Edit DataSource dialog, when the API Connector is selected. Absolute links get transformed into HTML Link Tags, line breaks (\n) get transformed into HTML line breaks (<br>), HTML tags are not allowed.
public override string Description { get; }
Property Value
FileExtensions
File Extensions of the Adapter. This property has to be defined and must have at least one file extension. The Adapter is only used for FilePaths with the defined file extensions. The IsValid method is not called unless the file extension matches.
public override List<string> FileExtensions { get; }
Property Value
Name
Unique Name of the Adapter. Defaults to the ClassName (without Adapter / FileReader / ApiConnector suffix), can be overridden with a user defined Name.
public override string Name { get; }
Property Value
Methods
IsValid(FileReaderContext)
Check if file contains 'Run Summary'
protected override bool IsValid(FileReaderContext context)
Parameters
contextFileReaderContextContext of file
Returns
- bool
true if file is a valid SLCheck Model Advisor
Examples
<b>Run Summary</b></font><br />
Read(FileReaderContext)
Fetch Guideline infos by reading rows of 'table' element after 'Run Summary' each 'th' element in first row is variable and corresponding 'tr' in second row is value measure name is 'GuidelineCount'
protected override AdapterReadResult Read(FileReaderContext context)
Parameters
contextFileReaderContextContext of file
Returns
- AdapterReadResult
All Data is stored in an AdapterData Model object
Examples
<b>Run Summary</b></font><br /> <table class="AdvTableNoBorder" width="60%" border="0"> <tr> <th align="left" valign="top"><b>Pass</b></th> <th align="left" valign="top"><b>Fail</b></th> <th align="left" valign="top"><b>Warning</b></th> <th align="left" valign="top"><b>Not Run</b></th> <th align="left" valign="top"><b>Total</b></th> </tr> <tr> <td align="left" valign="top">  <img src="task_passed.png" /> 38</td> <td align="left" valign="top">  <img src="task_failed.png" /> 8</td> <td align="left" valign="top">  <img src="task_warning.png" /> 7</td> <td align="left" valign="top">  <img src="icon_task.png" /> 363</td> <td align="left" valign="top">416</td> </tr> </table >