< Summary

Information
Class: ValidateLib.TabularData.AnnotatedTabularDataModel.Cell
Assembly: validatelib.dll
File(s): C:\skola_karlovka\RP\code\csv-validator\CSV_Validator\ValidateLib\TabularData\AnnotatedTabularDataModel\Cell.cs
Line coverage
100%
Covered lines: 19
Uncovered lines: 0
Coverable lines: 19
Total lines: 41
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBlocks covered Blocks not covered
Cell(...)80

File(s)

C:\skola_karlovka\RP\code\csv-validator\CSV_Validator\ValidateLib\TabularData\AnnotatedTabularDataModel\Cell.cs

#LineLine coverage
 1using ValidateLib.ErrorsAndWarnings.Errors;
 2using ValidateLib.Metadata.Properties;
 3using ValidateLib.TabularData.Datatypes;
 4
 5namespace ValidateLib.TabularData.AnnotatedTabularDataModel
 6{
 7    public enum CellType
 8    {
 9        SIMPLE_VALUE,
 10        LIST,
 11        NULL
 12    }
 13    public class Cell
 14    {
 115        public URITemplateProperty? aboutURL { get; set; } = null;
 16        // null is when we exceed the number of columns defined by the metadata document
 117        public Column? column { get; set; }
 118        public bool ordered { get; set; } = false;
 119        public URITemplateProperty? propertyURL { get; set; } = null;
 120        public string stringValue { get; set; }
 121        public Table table { get; set; }
 122        public string textDirection { get; set; } = "auto";
 123        public BaseDT? value { get; set; } = null;
 124        public URITemplateProperty? valueURL { get; set; } = null;
 125        public List<Error> errors { get; set; } = new List<Error>();
 126        public Row row { get; set; }
 27
 28        // We need this for the nulls and structured columns
 129        public CellType cellType { get; set; }
 30        // This we keep for the malformed CSV that do not adhere to the 1NF and have structured data in one column
 131        public List<BaseDT> cellValues { get; set; } = new List<BaseDT>();
 32
 133        public Cell(Table table, Column? column, string stringValue, Row row)
 34        {
 135            this.table = table;
 136            this.column = column;
 137            this.stringValue = stringValue;
 138            this.row = row;
 139        }
 40    }
 41}