1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| Quintiq file version 2.0
| #parent: #root
| MethodOverride GetConfigurationErrors () declarative as owning Strings
| {
| TextBody:
| [*
| result := super.GetConfigurationErrors();
|
| branches := this.GetOutgoingLinks();
| nr := branches.Size();
|
| if( nr = 0 )
| {
| result.Add( Translations::LibOpt_ComponentConfiguration_Switch_NoBranches() );
| }
| else if( nr = 1 )
| {
| result.Add( Translations::LibOpt_ComponentConfiguration_Switch_SingleBranch() );
| }
|
| link_result := selectvalues( branches, Elements, link, link.HasConstraintViolations(), this.FormatLinkConfigurationErrors( link ) );
| result := result.Union( link_result );
|
| return & result;
| *]
| }
|
|