You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[2011] Improve SysML validation to be more modular
Notes:
* Had to tweak JDT formatter setting
"org.eclipse.jdt.core.formatter.alignment_for_enum_constants" so we get
a newline for each enum literal even if it does not have Javadoc.
* Had to tweak JDT formatter setting
"org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer"
to be in-line with the formatting expected by Checkstyle.
Bug: #2011
Signed-off-by: Florent Latombe <florent.latombe@obeo.fr>
Copy file name to clipboardExpand all lines: CHANGELOG.adoc
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,16 @@ The following methods have been added:
23
23
- https://github.com/eclipse-syson/syson/issues/1988[#1988] [syson] Extract Elasticsearch container initialization in a dedicated abstract test class.
24
24
The property `SysONTestsProperties#ELASTICSEARCH` has been removed, tests that require Elasticsearch should extend `AbstractIntegrationTestsWithElasticsearch`.
25
25
26
+
- [validation] The following classes have been renamed, and some of them reworked:
27
+
28
+
** `org.eclipse.syson.sysml.validation.SysMLv2ValidationRules`: turned into enumeration `org.eclipse.syson.sysml.validation.rules.SysMLValidationRule`.
29
+
** `org.eclipse.syson.sysml.validation.SysMLv2ValidationService`: renamed into `org.eclipse.syson.sysml.validation.SysONSysMLValidationService`.
30
+
** `org.eclipse.syson.sysml.validation.SysMLv2Validator`: renamed into `org.eclipse.syson.sysml.validation.SysMLValidator`.
31
+
** `org.eclipse.syson.sysml.validation.ValidationRule`: renamed into `org.eclipse.syson.sysml.validation.rules.ValidationRule`, extracted its methods into interface `org.eclipse.syson.sysml.validation.rules.api.ISysMLValidationRule` and added `int getSeverity()` to represent the severity of the rule.
32
+
** `org.eclipse.syson.sysml.validation.SysONQueryServices`: renamed into `org.eclipse.syson.sysml.validation.rules.SysMLValidationRuleQueryServices`.
33
+
** `org.eclipse.syson.sysml.validation.SysMLv2ValidatorConfiguration`: renamed into `org.eclipse.syson.sysml.validation.SysMLValidatorRegistrationConfiguration` and now expects an injected `org.eclipse.syson.sysml.validation.rules.api.ISysMLValidationRulesProvider`, for which SysON provides default implementation `org.eclipse.syson.sysml.validation.rules.SysONValidationRulesProvider`.
34
+
35
+
26
36
=== Dependency update
27
37
28
38
- [releng] Update to https://github.com/eclipse-sirius/sirius-web[Sirius Web 2026.1.3]
@@ -88,6 +98,16 @@ Instead SysON will now use the inherited elements without redefining them first,
88
98
- https://github.com/eclipse-syson/syson/issues/1994[1994] [syson] Add support for excluding libraries in the _Search_ view.
89
99
The _Search in libraries_ toggle in the _Search_ view allows to include elements from user and standard libraries in the search.
90
100
This toggle is de-activated by default.
101
+
- https://github.com/eclipse-syson/syson/issues/2011[#2011] [validation] Improve SysML validation to be more modular:
102
+
Add interface `ISysMLValidationRulesProvider` in charge of providing the validation rules to execute on SysML models.
103
+
The default implementation, `SysONValidationRulesProvider` always provides all validation rules from the SysML specification.
104
+
Downstream applications can override this to choose (possibly dynamically) which rules get executed.
105
+
Add interface `ISysMLValidationRule` for the validation rules supported by our validation service, so downstream applications can easily execute their custom rules without having to implement their own service.
106
+
The SysML validation rules from the specification have been turned into literals of enumeration `SysMLValidationRule` that implements this interface.
107
+
Add a few simple unit tests to help maintain this enumeration.
108
+
Add possibility for validation rules to specify their severity ; the SysML rules from the specification remain as WARNINGs for now.
109
+
Tweak the diagnostic messages to help users understand where the erroneous element is in their editing context.
110
+
Make sure diagnostics are sorted according to their validated element and its containing document.
Copy file name to clipboardExpand all lines: backend/application/syson-sysml-validation/src/main/java/org/eclipse/syson/sysml/validation/SysMLValidatorRegistrationConfiguration.java
0 commit comments