Last change
on this file since 17406 was
17406,
checked in by dpiringe, 4 years ago
|
#3026
- added interfaces IJsonItem and IJsonItemValidator
- replaced every reference JsonItem with IJsonItem
|
File size:
1.2 KB
|
Rev | Line | |
---|
[17394] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Text;
|
---|
| 5 | using System.Threading.Tasks;
|
---|
| 6 | using Newtonsoft.Json;
|
---|
| 7 |
|
---|
| 8 | namespace 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 Path {
|
---|
| 16 | get => throw new NotSupportedException();
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | [JsonIgnore]
|
---|
[17406] | 20 | public override IList<IJsonItem> Children {
|
---|
[17394] | 21 | get => throw new NotSupportedException();
|
---|
| 22 | protected set => throw new NotSupportedException();
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | [JsonIgnore]
|
---|
[17406] | 26 | public override IJsonItem Parent {
|
---|
[17394] | 27 | get => throw new NotSupportedException();
|
---|
| 28 | set => throw new NotSupportedException();
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | public override object Value {
|
---|
| 32 | get => throw new NotSupportedException();
|
---|
| 33 | set => throw new NotSupportedException();
|
---|
| 34 | }
|
---|
| 35 |
|
---|
| 36 | public override IEnumerable<object> Range {
|
---|
| 37 | get => throw new NotSupportedException();
|
---|
| 38 | set => throw new NotSupportedException();
|
---|
| 39 | }
|
---|
| 40 |
|
---|
| 41 | public override string ActualName {
|
---|
| 42 | get => throw new NotSupportedException();
|
---|
| 43 | set => throw new NotSupportedException();
|
---|
| 44 | }
|
---|
| 45 | }
|
---|
| 46 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.