| | 1 | | using ValidateLib.Metadata.Descriptors; |
| | 2 | | using ValidateLib.Metadata.Properties; |
| | 3 | |
|
| | 4 | | namespace ValidateLib.TabularData.AnnotatedTabularDataModel |
| | 5 | | { |
| | 6 | | public class Column |
| | 7 | | { |
| 1 | 8 | | public URITemplateProperty? aboutURL { get; set; } = null; |
| | 9 | | // This we will probably need to check the foreign and primary keys |
| | 10 | | // store only for these columns, otherwise it would cost a lot of memory space |
| | 11 | | // also store for the referencing columns so we can check |
| 1 | 12 | | public List<Cell> cells { get; set; } = new List<Cell>(); |
| 1 | 13 | | public DatatypeDescriptor datatype { get; set; } = new DatatypeDescriptor(); |
| 1 | 14 | | public string _default { get; set; } = ""; |
| 1 | 15 | | public string lang { get; set; } = "und"; |
| 1 | 16 | | public string name { get; set; } = ""; |
| 1 | 17 | | public List<string> _null { get; set; } = new List<string> { "" }; |
| 1 | 18 | | public int number { get; set; } |
| 1 | 19 | | public bool ordered { get; set; } = false; |
| 1 | 20 | | public URITemplateProperty? propertyURL { get; set; } = null; |
| 1 | 21 | | public bool required { get; set; } = false; |
| 1 | 22 | | public string? separator { get; set; } = null; |
| 1 | 23 | | public int sourceNumber { get; set; } |
| 1 | 24 | | public Table table { get; set; } |
| 1 | 25 | | public string textDirection { get; set; } = "auto"; |
| 1 | 26 | | public Dictionary<string, string[]> titles { get; set; } = new Dictionary<string, string[]>(); |
| 1 | 27 | | public URITemplateProperty? valueURL { get; set; } = null; |
| 1 | 28 | | public bool _virtual { get; set; } = false; |
| 1 | 29 | | public bool suppresOutput { get; set; } = false; |
| 1 | 30 | | public bool isPartOfPrimaryKey { get; set; } = false; |
| 1 | 31 | | public bool isPartOfForeignKey { get; set; } = false; |
| 1 | 32 | | public bool isPartOfKey() => isPartOfForeignKey || isPartOfPrimaryKey; |
| 1 | 33 | | public Column(Table table, int number, int sourceNumber) |
| | 34 | | { |
| 1 | 35 | | this.table = table; |
| 1 | 36 | | this.number = number; |
| 1 | 37 | | this.sourceNumber = sourceNumber; |
| 1 | 38 | | } |
| | 39 | | } |
| | 40 | | } |