Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/UnsupportedJsonItem.cs @ 17473

Last change on this file since 17473 was 17473, checked in by dpiringe, 4 years ago

#3026:

  • refactored inheritance structure of json items, now the default JsonItem is an abstract class without properties Value and Range -> splitted up into new interfaces
  • updated view models for new json item structure
  • updated SingleLineArrayJsonWriter
File size: 1.0 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6using Newtonsoft.Json;
7
8namespace HeuristicLab.JsonInterface {
9  public class UnsupportedJsonItem : JsonItem {
10    public override string Name {
11      get => throw new NotSupportedException();
12      set => throw new NotSupportedException();
13    }
14
15    public override string Description {
16      get => throw new NotSupportedException();
17      set => throw new NotSupportedException();
18    }
19
20    public override string Path {
21      get => throw new NotSupportedException();
22    }
23
24    [JsonIgnore]
25    public override IList<IJsonItem> Children {
26      get => throw new NotSupportedException();
27      protected set => throw new NotSupportedException();
28    }
29
30    [JsonIgnore]
31    public override IJsonItem Parent {
32      get => throw new NotSupportedException();
33      set => throw new NotSupportedException();
34    }
35
36    protected override bool Validate() => true;
37  }
38}
Note: See TracBrowser for help on using the repository browser.