-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Constraint refactoring DO NOT MERGE!!!
- Loading branch information
Alexander van Delft
committed
Nov 17, 2023
1 parent
246a608
commit b5495ef
Showing
34 changed files
with
1,535 additions
and
455 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
// ------------------------------------------------------------------------------------------------- | ||
// <copyright file="Constraint.cs" company="RHEA System S.A."> | ||
// | ||
// Copyright 2022-2023 RHEA System S.A. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
// </copyright> | ||
// ------------------------------------------------------------------------------------------------ | ||
|
||
// ------------------------------------------------------------------------------------------------ | ||
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- | ||
// ------------------------------------------------------------------------------------------------ | ||
|
||
namespace Kalliope.DTO | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
using Kalliope.Common; | ||
|
||
/// <summary> | ||
/// A Data Transfer Object that represents a Constraint | ||
/// </summary> | ||
public abstract partial class Constraint : OrmNamedElement | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="Constraint"/> class. | ||
/// </summary> | ||
protected Constraint() | ||
{ | ||
this.Modality = ConstraintModality.Alethic; | ||
} | ||
|
||
|
||
/// <summary> | ||
/// Gets or sets the unique identifier of the contained <see cref="Definition"/> | ||
/// </summary> | ||
[Description("")] | ||
[Property(name: "Definition", aggregation: AggregationKind.Composite, multiplicity: "0..1", typeKind: TypeKind.Object, defaultValue: "", typeName: "Definition", allowOverride: false, isOverride: false, isDerived: false)] | ||
public string Definition { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the unique identifier of the referenced <see cref="ConstraintDuplicateNameError"/> | ||
/// </summary> | ||
[Description("")] | ||
[Property(name: "DuplicateNameError", aggregation: AggregationKind.None, multiplicity: "0..1", typeKind: TypeKind.Object, defaultValue: "", typeName: "ConstraintDuplicateNameError", allowOverride: false, isOverride: false, isDerived: false)] | ||
public string DuplicateNameError { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the unique identifier of the contained <see cref="ImplicationError"/> | ||
/// </summary> | ||
[Description("")] | ||
[Property(name: "ImplicationError", aggregation: AggregationKind.Composite, multiplicity: "0..1", typeKind: TypeKind.Object, defaultValue: "", typeName: "ImplicationError", allowOverride: false, isOverride: false, isDerived: false)] | ||
public string ImplicationError { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a Modality | ||
/// </summary> | ||
[Description("The constraint Modality. Alethic modality means the constraint is structurally enforced and data violating the constraint cannot be entered in the system. Deontic modality means that data violating the constraint can be recorded.")] | ||
[Property(name: "Modality", aggregation: AggregationKind.None, multiplicity: "1..1", typeKind: TypeKind.Enumeration, defaultValue: "Alethic", typeName: "ConstraintModality", allowOverride: false, isOverride: false, isDerived: false)] | ||
public ConstraintModality Modality { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the unique identifier of the contained <see cref="Note"/> | ||
/// </summary> | ||
[Description("")] | ||
[Property(name: "Note", aggregation: AggregationKind.Composite, multiplicity: "0..1", typeKind: TypeKind.Object, defaultValue: "", typeName: "Note", allowOverride: false, isOverride: false, isDerived: false)] | ||
public string Note { get; set; } | ||
|
||
} | ||
} | ||
|
||
// ------------------------------------------------------------------------------------------------ | ||
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- | ||
// ------------------------------------------------------------------------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
// ------------------------------------------------------------------------------------------------- | ||
// <copyright file="ConstraintRoleSequenceWithJoin.cs" company="RHEA System S.A."> | ||
// | ||
// Copyright 2022-2023 RHEA System S.A. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
// </copyright> | ||
// ------------------------------------------------------------------------------------------------ | ||
|
||
// ------------------------------------------------------------------------------------------------ | ||
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- | ||
// ------------------------------------------------------------------------------------------------ | ||
|
||
namespace Kalliope.DTO | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
using Kalliope.Common; | ||
|
||
/// <summary> | ||
/// A Data Transfer Object that represents a ConstraintRoleSequenceWithJoin | ||
/// </summary> | ||
[Container(typeName: "SetConstraintWithJoin", propertyName: "RoleSequence")] | ||
public partial class ConstraintRoleSequenceWithJoin : OrmNamedElement | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ConstraintRoleSequenceWithJoin"/> class. | ||
/// </summary> | ||
public ConstraintRoleSequenceWithJoin() | ||
{ | ||
this.Roles = new List<string>(); | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets the unique identifier of the container | ||
/// </summary> | ||
public string Container {get; set;} | ||
|
||
|
||
/// <summary> | ||
/// Gets or sets the unique identifier of the contained <see cref="ConstraintRoleSequenceJoinPath"/> | ||
/// </summary> | ||
[Description("")] | ||
[Property(name: "JoinPath", aggregation: AggregationKind.Composite, multiplicity: "0..1", typeKind: TypeKind.Object, defaultValue: "", typeName: "ConstraintRoleSequenceJoinPath", allowOverride: false, isOverride: false, isDerived: false)] | ||
public string JoinPath { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the unique identifier of the contained <see cref="JoinPathRequiredError"/> | ||
/// </summary> | ||
[Description("")] | ||
[Property(name: "JoinPathRequiredError", aggregation: AggregationKind.Composite, multiplicity: "0..1", typeKind: TypeKind.Object, defaultValue: "", typeName: "JoinPathRequiredError", allowOverride: false, isOverride: false, isDerived: false)] | ||
public string JoinPathRequiredError { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a list unique identifiers of the contained <see cref="RoleBase"/> instances | ||
/// </summary> | ||
[Description("")] | ||
[Property(name: "Roles", aggregation: AggregationKind.Composite, multiplicity: "0..*", typeKind: TypeKind.Object, defaultValue: "", typeName: "RoleBase", allowOverride: false, isOverride: false, isDerived: false)] | ||
public List<string> Roles { get; set; } | ||
|
||
} | ||
} | ||
|
||
// ------------------------------------------------------------------------------------------------ | ||
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- | ||
// ------------------------------------------------------------------------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
// ------------------------------------------------------------------------------------------------- | ||
// <copyright file="SetConstraintWithJoin.cs" company="RHEA System S.A."> | ||
// | ||
// Copyright 2022-2023 RHEA System S.A. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
// </copyright> | ||
// ------------------------------------------------------------------------------------------------ | ||
|
||
// ------------------------------------------------------------------------------------------------ | ||
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- | ||
// ------------------------------------------------------------------------------------------------ | ||
|
||
namespace Kalliope.DTO | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
using Kalliope.Common; | ||
|
||
/// <summary> | ||
/// A Data Transfer Object that represents a SetConstraintWithJoin | ||
/// </summary> | ||
[Container(typeName: "OrmModel", propertyName: "Constraints")] | ||
public abstract partial class SetConstraintWithJoin : Constraint | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="SetConstraintWithJoin"/> class. | ||
/// </summary> | ||
protected SetConstraintWithJoin() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets the unique identifier of the container | ||
/// </summary> | ||
public string Container {get; set;} | ||
|
||
|
||
/// <summary> | ||
/// Gets or sets the unique identifier of the contained <see cref="CompatibleRolePlayerTypeError"/> | ||
/// </summary> | ||
[Description("")] | ||
[Property(name: "CompatibleRolePlayerTypeError", aggregation: AggregationKind.Composite, multiplicity: "0..1", typeKind: TypeKind.Object, defaultValue: "", typeName: "CompatibleRolePlayerTypeError", allowOverride: false, isOverride: false, isDerived: false)] | ||
public string CompatibleRolePlayerTypeError { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the unique identifier of the referenced <see cref="ConstraintRoleSequenceWithJoin"/> | ||
/// </summary> | ||
[Description("")] | ||
[Property(name: "RoleSequence", aggregation: AggregationKind.None, multiplicity: "0..1", typeKind: TypeKind.Object, defaultValue: "", typeName: "ConstraintRoleSequenceWithJoin", allowOverride: false, isOverride: false, isDerived: false)] | ||
public string RoleSequence { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the unique identifier of the contained <see cref="TooFewRoleSequencesError"/> | ||
/// </summary> | ||
[Description("")] | ||
[Property(name: "TooFewRoleSequencesError", aggregation: AggregationKind.Composite, multiplicity: "0..1", typeKind: TypeKind.Object, defaultValue: "", typeName: "TooFewRoleSequencesError", allowOverride: false, isOverride: false, isDerived: false)] | ||
public string TooFewRoleSequencesError { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the unique identifier of the contained <see cref="TooManyRoleSequencesError"/> | ||
/// </summary> | ||
[Description("")] | ||
[Property(name: "TooManyRoleSequencesError", aggregation: AggregationKind.Composite, multiplicity: "0..1", typeKind: TypeKind.Object, defaultValue: "", typeName: "TooManyRoleSequencesError", allowOverride: false, isOverride: false, isDerived: false)] | ||
public string TooManyRoleSequencesError { get; set; } | ||
|
||
} | ||
} | ||
|
||
// ------------------------------------------------------------------------------------------------ | ||
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!-------- | ||
// ------------------------------------------------------------------------------------------------ |
Oops, something went wrong.