Skip to content

Commit fdebe52

Browse files
committed
ST6RI-897 Moved redefinition of other defaults to constructors.
In subclasses of: - ExportImpl (isImportAll) - OperatorImpl (operator) - RequirementConstraintMembership (kind)
1 parent a327aa7 commit fdebe52

12 files changed

Lines changed: 80 additions & 139 deletions

org.omg.sysml/syntax-gen/org/omg/sysml/lang/sysml/impl/CollectExpressionImpl.java

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*******************************************************************************
22
* SysML 2 Pilot Implementation
3-
* Copyright (c) 2022 Model Driven Solutions, Inc.
3+
* Copyright (c) 2022, 2026 Model Driven Solutions, Inc.
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU Lesser General Public License as published by
@@ -17,8 +17,7 @@
1717
*
1818
* @license LGPL-3.0-or-later <http://spdx.org/licenses/LGPL-3.0-or-later>
1919
*******************************************************************************/
20-
/**
21-
*/
20+
2221
package org.omg.sysml.lang.sysml.impl;
2322

2423
import org.eclipse.emf.ecore.EClass;
@@ -35,15 +34,16 @@
3534
*/
3635
public class CollectExpressionImpl extends OperatorExpressionImpl implements CollectExpression {
3736

38-
private static final String COLLECT_FUNCTION = "collect";
37+
private static final String COLLECT_OPERATOR = "collect";
3938

4039
/**
4140
* <!-- begin-user-doc -->
4241
* <!-- end-user-doc -->
43-
* @generated
42+
* @generated NOT
4443
*/
4544
protected CollectExpressionImpl() {
4645
super();
46+
operator = OPERATOR_EDEFAULT = COLLECT_OPERATOR;
4747
}
4848

4949
/**
@@ -56,9 +56,4 @@ protected EClass eStaticClass() {
5656
return SysMLPackage.Literals.COLLECT_EXPRESSION;
5757
}
5858

59-
@Override
60-
public String getOperator() {
61-
return COLLECT_FUNCTION;
62-
}
63-
6459
} //CollectExpressionImpl

org.omg.sysml/syntax-gen/org/omg/sysml/lang/sysml/impl/ExposeImpl.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*******************************************************************************
22
* SysML 2 Pilot Implementation
3-
* Copyright (c) 2020-2021 Model Driven Solutions, Inc.
3+
* Copyright (c) 2020-2021, 2026 Model Driven Solutions, Inc.
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU Lesser General Public License as published by
@@ -53,14 +53,4 @@ protected EClass eStaticClass() {
5353
return SysMLPackage.Literals.EXPOSE;
5454
}
5555

56-
// Additional overrides
57-
58-
/**
59-
* @generated NOT
60-
*/
61-
@Override
62-
public boolean isImportAll() {
63-
return true;
64-
}
65-
6656
} //ExposeImpl

org.omg.sysml/syntax-gen/org/omg/sysml/lang/sysml/impl/FeatureChainExpressionImpl.java

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*******************************************************************************
22
* SysML 2 Pilot Implementation
3-
* Copyright (c) 2022-2023 Model Driven Solutions, Inc.
3+
* Copyright (c) 2022-2023, 2026 Model Driven Solutions, Inc.
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU Lesser General Public License as published by
@@ -47,7 +47,7 @@
4747
*/
4848
public class FeatureChainExpressionImpl extends OperatorExpressionImpl implements FeatureChainExpression {
4949

50-
private static final String FEATURE_CHAIN_FUNCTION = ".";
50+
private static final String FEATURE_CHAIN_OPERATOR = ".";
5151

5252
/**
5353
* The cached setting delegate for the '{@link #getTargetFeature() <em>Target Feature</em>}' reference.
@@ -62,10 +62,11 @@ public class FeatureChainExpressionImpl extends OperatorExpressionImpl implement
6262
/**
6363
* <!-- begin-user-doc -->
6464
* <!-- end-user-doc -->
65-
* @generated
65+
* @generated NOT
6666
*/
6767
protected FeatureChainExpressionImpl() {
6868
super();
69+
operator = OPERATOR_EDEFAULT = FEATURE_CHAIN_OPERATOR;
6970
}
7071

7172
/**
@@ -78,14 +79,6 @@ protected EClass eStaticClass() {
7879
return SysMLPackage.Literals.FEATURE_CHAIN_EXPRESSION;
7980
}
8081

81-
/**
82-
* @generated NOT
83-
*/
84-
@Override
85-
public String getOperator() {
86-
return FEATURE_CHAIN_FUNCTION;
87-
}
88-
8982
/**
9083
* <!-- begin-user-doc -->
9184
* <!-- end-user-doc -->

org.omg.sysml/syntax-gen/org/omg/sysml/lang/sysml/impl/FramedConcernMembershipImpl.java

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*******************************************************************************
22
* SysML 2 Pilot Implementation
3-
* Copyright (c) 2022 Model Driven Solutions, Inc.
3+
* Copyright (c) 2022, 2026 Model Driven Solutions, Inc.
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU Lesser General Public License as published by
@@ -17,8 +17,7 @@
1717
*
1818
* @license LGPL-3.0-or-later <http://spdx.org/licenses/LGPL-3.0-or-later>
1919
*******************************************************************************/
20-
/**
21-
*/
20+
2221
package org.omg.sysml.lang.sysml.impl;
2322

2423
import org.eclipse.emf.ecore.EClass;
@@ -66,10 +65,11 @@ public class FramedConcernMembershipImpl extends RequirementConstraintMembership
6665
/**
6766
* <!-- begin-user-doc -->
6867
* <!-- end-user-doc -->
69-
* @generated
68+
* @generated NOT
7069
*/
7170
protected FramedConcernMembershipImpl() {
7271
super();
72+
kind = KIND_EDEFAULT = RequirementConstraintKind.REQUIREMENT;
7373
}
7474

7575
/**
@@ -158,29 +158,6 @@ public boolean isSetReferencedConcern() {
158158
return basicGetReferencedConcern() != null;
159159
}
160160

161-
// Additional Overrides
162-
163-
/**
164-
* @generated NOT
165-
*/
166-
@Override
167-
public RequirementConstraintKind getKind() {
168-
return RequirementConstraintKind.REQUIREMENT;
169-
}
170-
171-
/**
172-
* <!-- begin-user-doc -->
173-
* Consider the "kind" property to never be explicitly "set".
174-
* <!-- end-user-doc -->
175-
* @generated NOT
176-
*/
177-
@Override
178-
public boolean eIsSet(int featureID) {
179-
return featureID != SysMLPackage.REQUIREMENT_CONSTRAINT_MEMBERSHIP__KIND && eIsSetGen(featureID);
180-
}
181-
182-
//
183-
184161
/**
185162
* <!-- begin-user-doc -->
186163
* <!-- end-user-doc -->
@@ -240,7 +217,7 @@ public void eUnset(int featureID) {
240217
* <!-- end-user-doc -->
241218
* @generated
242219
*/
243-
public boolean eIsSetGen(int featureID) {
220+
public boolean eIsSet(int featureID) {
244221
switch (featureID) {
245222
case SysMLPackage.FRAMED_CONCERN_MEMBERSHIP__OWNED_CONSTRAINT:
246223
return isSetOwnedConstraint();

org.omg.sysml/syntax-gen/org/omg/sysml/lang/sysml/impl/ImportImpl.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
* @license LGPL-3.0-or-later <http://spdx.org/licenses/LGPL-3.0-or-later>
1919
*
2020
*******************************************************************************/
21-
/**
22-
*/
21+
2322
package org.omg.sysml.lang.sysml.impl;
2423

2524
import java.lang.reflect.InvocationTargetException;
@@ -105,10 +104,10 @@ public abstract class ImportImpl extends RelationshipImpl implements Import {
105104
* <!-- begin-user-doc -->
106105
* <!-- end-user-doc -->
107106
* @see #isImportAll()
108-
* @generated
107+
* @generated NOT
109108
* @ordered
110109
*/
111-
protected static final boolean IS_IMPORT_ALL_EDEFAULT = false;
110+
protected boolean IS_IMPORT_ALL_EDEFAULT = false;
112111

113112
/**
114113
* The cached value of the '{@link #isImportAll() <em>Is Import All</em>}' attribute.

org.omg.sysml/syntax-gen/org/omg/sysml/lang/sysml/impl/IndexExpressionImpl.java

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*******************************************************************************
22
* SysML 2 Pilot Implementation
3-
* Copyright (c) 2025 Model Driven Solutions, Inc.
3+
* Copyright (c) 2025, 2026 Model Driven Solutions, Inc.
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU Lesser General Public License as published by
@@ -17,6 +17,7 @@
1717
*
1818
* @license LGPL-3.0-or-later <http://spdx.org/licenses/LGPL-3.0-or-later>
1919
*******************************************************************************/
20+
2021
package org.omg.sysml.lang.sysml.impl;
2122

2223
import org.eclipse.emf.ecore.EClass;
@@ -33,15 +34,16 @@
3334
*/
3435
public class IndexExpressionImpl extends OperatorExpressionImpl implements IndexExpression {
3536

36-
private static final String INDEX_FUNCTION = "#";
37+
private static final String INDEX_OPERATOR= "#";
3738

3839
/**
3940
* <!-- begin-user-doc -->
4041
* <!-- end-user-doc -->
41-
* @generated
42+
* @generated NOT
4243
*/
4344
protected IndexExpressionImpl() {
4445
super();
46+
operator = OPERATOR_EDEFAULT = INDEX_OPERATOR;
4547
}
4648

4749
/**
@@ -54,12 +56,4 @@ protected EClass eStaticClass() {
5456
return SysMLPackage.Literals.INDEX_EXPRESSION;
5557
}
5658

57-
/**
58-
* @generated NOT
59-
*/
60-
@Override
61-
public String getOperator() {
62-
return INDEX_FUNCTION;
63-
}
64-
6559
} //IndexExpressionImpl

org.omg.sysml/syntax-gen/org/omg/sysml/lang/sysml/impl/MembershipExposeImpl.java

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
1-
/**
2-
*/
1+
/*******************************************************************************
2+
* SysML 2 Pilot Implementation
3+
* Copyright (c) 2020-2024 Model Driven Solutions, Inc.
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU Lesser General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU Lesser General Public License for more details.
14+
*
15+
* You should have received a copy of theGNU Lesser General Public License
16+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
17+
*
18+
* @license LGPL-3.0-or-later <http://spdx.org/licenses/LGPL-3.0-or-later>
19+
*
20+
*******************************************************************************/
21+
322
package org.omg.sysml.lang.sysml.impl;
423

524
import org.eclipse.emf.ecore.EClass;
@@ -22,6 +41,7 @@ public class MembershipExposeImpl extends MembershipImportImpl implements Member
2241
*/
2342
protected MembershipExposeImpl() {
2443
super();
44+
isImportAll = IS_IMPORT_ALL_EDEFAULT = true;
2545
}
2646

2747
/**
@@ -34,14 +54,4 @@ protected EClass eStaticClass() {
3454
return SysMLPackage.Literals.MEMBERSHIP_EXPOSE;
3555
}
3656

37-
// Additional overrides
38-
39-
/**
40-
* @generated NOT
41-
*/
42-
@Override
43-
public boolean isImportAll() {
44-
return true;
45-
}
46-
4757
} //MembershipExposeImpl

org.omg.sysml/syntax-gen/org/omg/sysml/lang/sysml/impl/NamespaceExposeImpl.java

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
1-
/**
2-
*/
1+
/*******************************************************************************
2+
* SysML 2 Pilot Implementation
3+
* Copyright (c) 2020-2024 Model Driven Solutions, Inc.
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU Lesser General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU Lesser General Public License for more details.
14+
*
15+
* You should have received a copy of theGNU Lesser General Public License
16+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
17+
*
18+
* @license LGPL-3.0-or-later <http://spdx.org/licenses/LGPL-3.0-or-later>
19+
*
20+
*******************************************************************************/
21+
322
package org.omg.sysml.lang.sysml.impl;
423

524
import org.eclipse.emf.ecore.EClass;
@@ -22,6 +41,7 @@ public class NamespaceExposeImpl extends NamespaceImportImpl implements Namespac
2241
*/
2342
protected NamespaceExposeImpl() {
2443
super();
44+
isImportAll = IS_IMPORT_ALL_EDEFAULT = true;
2545
}
2646

2747
/**
@@ -34,14 +54,4 @@ protected EClass eStaticClass() {
3454
return SysMLPackage.Literals.NAMESPACE_EXPOSE;
3555
}
3656

37-
// Additional overrides
38-
39-
/**
40-
* @generated NOT
41-
*/
42-
@Override
43-
public boolean isImportAll() {
44-
return true;
45-
}
46-
4757
} //NamespaceExposeImpl

org.omg.sysml/syntax-gen/org/omg/sysml/lang/sysml/impl/OperatorExpressionImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*******************************************************************************
22
* SysML 2 Pilot Implementation
3-
* Copyright (c) 2020-2023, 2025 Model Driven Solutions, Inc.
3+
* Copyright (c) 2020-2023, 2025, 2026 Model Driven Solutions, Inc.
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU Lesser General Public License as published by
@@ -47,10 +47,10 @@ public class OperatorExpressionImpl extends InvocationExpressionImpl implements
4747
* The default value of the '{@link #getOperator() <em>Operator</em>}' attribute.
4848
* <!-- begin-user-doc --> <!-- end-user-doc -->
4949
* @see #getOperator()
50-
* @generated
50+
* @generated NOT
5151
* @ordered
5252
*/
53-
protected static final String OPERATOR_EDEFAULT = null;
53+
protected String OPERATOR_EDEFAULT = null;
5454

5555
/**
5656
* The cached value of the '{@link #getOperator() <em>Operator</em>}' attribute.

org.omg.sysml/syntax-gen/org/omg/sysml/lang/sysml/impl/RequirementConstraintMembershipImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public class RequirementConstraintMembershipImpl extends FeatureMembershipImpl i
5959
* @generated NOT
6060
* @ordered
6161
*/
62-
protected static final RequirementConstraintKind KIND_EDEFAULT = null;
62+
protected RequirementConstraintKind KIND_EDEFAULT = null;
6363

6464
/**
6565
* The cached value of the '{@link #getKind() <em>Kind</em>}' attribute.

0 commit comments

Comments
 (0)