- Timestamp:
- 04/27/20 15:53:26 (5 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/ArrayJsonItem.cs
r17477 r17519 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.Linq; 1 using Newtonsoft.Json.Linq; 7 2 8 3 namespace HeuristicLab.JsonInterface { -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/BoolJsonItems.cs
r17481 r17519 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace HeuristicLab.JsonInterface { 1 namespace HeuristicLab.JsonInterface { 8 2 public class BoolJsonItem : ValueJsonItem<bool> { 9 3 protected override ValidationResult Validate() => ValidationResult.Successful(); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/ConcreteRestrictedArrayJsonItem.cs
r17481 r17519 1 using System; 2 using System.Collections.Generic; 1 using System.Collections.Generic; 3 2 using System.Linq; 4 using System.Text;5 using System.Threading.Tasks;6 7 3 namespace HeuristicLab.JsonInterface { 8 4 public abstract class ConcreteRestrictedArrayJsonItem<T> : ArrayJsonItem<T>, IConcreteRestrictedJsonItem<T> { … … 12 8 bool res = true; 13 9 IList<string> errors = new List<string>(); 10 if (ConcreteRestrictedItems == null) return ValidationResult.Successful(); 14 11 foreach(var x in Value) { 15 12 bool tmp = false; -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/ConcreteRestrictedValueJsonItem.cs
r17481 r17519 1 using System; 2 using System.Collections.Generic; 1 using System.Collections.Generic; 3 2 using System.Linq; 4 using System.Text;5 using System.Threading.Tasks;6 3 7 4 namespace HeuristicLab.JsonInterface { -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/DateTimeJsonItem.cs
r17481 r17519 1 1 using System; 2 using System.Collections.Generic;3 using System.Linq;4 using System.Text;5 using System.Threading.Tasks;6 2 using Newtonsoft.Json.Linq; 7 3 -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/DoubleJsonItems.cs
r17477 r17519 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.Linq; 1 using Newtonsoft.Json.Linq; 7 2 8 3 namespace HeuristicLab.JsonInterface { -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/EmptyJsonItem.cs
r17481 r17519 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace HeuristicLab.JsonInterface { 1 namespace HeuristicLab.JsonInterface { 8 2 public class EmptyJsonItem : JsonItem { 9 3 protected override ValidationResult Validate() => ValidationResult.Successful(); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/IntJsonItems.cs
r17477 r17519 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.Linq; 1 using Newtonsoft.Json.Linq; 7 2 8 3 namespace HeuristicLab.JsonInterface { -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/IntervalRestrictedArrayJsonItem.cs
r17481 r17519 1 1 using System; 2 2 using System.Collections.Generic; 3 using System.Linq;4 using System.Text;5 using System.Threading.Tasks;6 3 using Newtonsoft.Json.Linq; 7 4 -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/IntervalRestrictedMatrixJsonItem.cs
r17481 r17519 1 1 using System; 2 2 using System.Collections.Generic; 3 using System.Linq;4 using System.Text;5 using System.Threading.Tasks;6 3 using Newtonsoft.Json.Linq; 7 4 -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/IntervalRestrictedValueJsonItem.cs
r17481 r17519 1 1 using System; 2 using System.Collections.Generic;3 using System.Linq;4 using System.Text;5 using System.Threading.Tasks;6 2 using Newtonsoft.Json.Linq; 7 3 -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/JsonItem.cs
r17485 r17519 1 using System; 2 using System.Collections; 1 using System.Collections; 3 2 using System.Collections.Generic; 4 3 using System.Linq; … … 76 75 } 77 76 } 78 77 79 78 // TODO jsonIgnore dataType? 80 81 79 [JsonIgnore] 82 public virtual I List<IJsonItem> Children { get; protected set; }80 public virtual IEnumerable<IJsonItem> Children { get; protected set; } 83 81 84 82 [JsonIgnore] … … 104 102 if (Children == null) 105 103 Children = new List<IJsonItem>(); 106 foreach (var child in childs) { 107 Children.Add(child); 108 child.Parent = this; 104 if(Children is IList<IJsonItem> list) { 105 foreach (var child in childs) { 106 list.Add(child); 107 child.Parent = this; 108 } 109 109 } 110 110 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/LookupJsonItem.cs
r17481 r17519 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.Linq; 1 using Newtonsoft.Json.Linq; 7 2 8 3 namespace HeuristicLab.JsonInterface { -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/MatrixJsonItem.cs
r17477 r17519 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 1 using System.Collections.Generic; 6 2 using Newtonsoft.Json.Linq; 7 3 -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/RangedJsonItem.cs
r17481 r17519 1 1 using System; 2 2 using System.Collections.Generic; 3 using System.Linq;4 using System.Text;5 using System.Threading.Tasks;6 3 7 4 namespace HeuristicLab.JsonInterface { -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/ResultJsonItem.cs
r17481 r17519 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace HeuristicLab.JsonInterface { 1 namespace HeuristicLab.JsonInterface { 8 2 public class ResultJsonItem : JsonItem, IResultJsonItem { 9 3 protected override ValidationResult Validate() => ValidationResult.Successful(); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/StringJsonItem.cs
r17473 r17519 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace HeuristicLab.JsonInterface { 1 namespace HeuristicLab.JsonInterface { 8 2 public class StringJsonItem : ConcreteRestrictedValueJsonItem<string> { } 9 3 public class StringArrayJsonItem : ConcreteRestrictedArrayJsonItem<string> { } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/UnsupportedJsonItem.cs
r17481 r17519 1 1 using System; 2 2 using System.Collections.Generic; 3 using System.Linq;4 using System.Text;5 using System.Threading.Tasks;6 3 using Newtonsoft.Json; 7 4 … … 23 20 24 21 [JsonIgnore] 25 public override I List<IJsonItem> Children {22 public override IEnumerable<IJsonItem> Children { 26 23 get => throw new NotSupportedException(); 27 24 protected set => throw new NotSupportedException(); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/ValueJsonItem.cs
r17477 r17519 1 1 using System; 2 using System.Collections.Generic;3 using System.Linq;4 using System.Text;5 using System.Threading.Tasks;6 2 using Newtonsoft.Json.Linq; 7 3 -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Models/ValueLookupJsonItem.cs
r17483 r17519 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; 1 using System.Collections.Generic; 7 2 using Newtonsoft.Json.Linq; 8 3
Note: See TracChangeset
for help on using the changeset viewer.