Skip to content

Commit d1650f7

Browse files
committed
Merge branch 'release/2022-08'
2 parents a18de6b + 74567cf commit d1650f7

File tree

541 files changed

+39980
-4131
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

541 files changed

+39980
-4131
lines changed

app/jackson/JpaIdentityDeserializer.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,18 @@ public T deserialize(JsonParser p, DeserializationContext ctxt) throws IOExcepti
5252
if (p.currentToken() != JsonToken.START_OBJECT) {
5353
throw new JsonParseException(p, "Expected START_OBJECT. Received " + p.getCurrentName() + ".");
5454
}
55+
T t = null;
5556
JsonToken token;
5657
while ((token = p.nextToken()) != null && token != JsonToken.END_OBJECT) {
57-
if (token == JsonToken.FIELD_NAME && isIdentityField(p.getCurrentName())) {
58-
if (p.nextToken() == null) {
58+
if (t == null && token == JsonToken.FIELD_NAME && isIdentityField(p.getCurrentName())) {
59+
token = p.nextToken();
60+
if (token == null) {
5961
throw new JsonParseException(p, "No value for identity field.");
6062
}
61-
return deserializeFromIdentity(p);
63+
t = deserializeFromIdentity(p);
6264
}
6365
}
64-
return null;
66+
return t;
6567
}
6668

6769
@Override

app/jackson/RecordSerialization.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,13 @@ protected boolean isIdentityField(String field) {
6666
}
6767

6868
@Override
69-
@SuppressWarnings("unchecked")
7069
protected R deserializeFromIdentity(JsonParser parser) throws IOException {
7170
UUID id = UUID.fromString(parser.getText());
72-
Record record = getEntityManager().find(getRecordClass(), id);
71+
R record = getEntityManager().find(getRecordClass(), id);
7372
if (record == null) {
7473
throw new IOException(new EntityNotFoundException("Record " + id + " not found."));
7574
}
76-
return (R) record;
75+
return record;
7776
}
7877
}
7978

app/org/omg/sysml/lifecycle/impl/DataVersionImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void setIdentity(DataIdentity identity) {
6666

6767
@Transient
6868
@JsonProperty("@type")
69-
public static String getType() {
69+
public String getType() {
7070
return DataVersion.NAME;
7171
}
7272
}

app/org/omg/sysml/lifecycle/impl/package-info.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
@MetaValue(value = "DecisionNode", targetEntity = DecisionNodeImpl.class),
7272
@MetaValue(value = "Definition", targetEntity = DefinitionImpl.class),
7373
@MetaValue(value = "Dependency", targetEntity = DependencyImpl.class),
74+
@MetaValue(value = "Differencing", targetEntity = DifferencingImpl.class),
7475
@MetaValue(value = "Disjoining", targetEntity = DisjoiningImpl.class),
7576
@MetaValue(value = "Documentation", targetEntity = DocumentationImpl.class),
7677
@MetaValue(value = "Element", targetEntity = ElementImpl.class),
@@ -90,6 +91,8 @@
9091
@MetaValue(value = "FeatureReferenceExpression", targetEntity = FeatureReferenceExpressionImpl.class),
9192
@MetaValue(value = "FeatureTyping", targetEntity = FeatureTypingImpl.class),
9293
@MetaValue(value = "FeatureValue", targetEntity = FeatureValueImpl.class),
94+
@MetaValue(value = "Featuring", targetEntity = FeaturingImpl.class),
95+
@MetaValue(value = "FlowConnectionDefinition", targetEntity = FlowConnectionDefinitionImpl.class),
9396
@MetaValue(value = "FlowConnectionUsage", targetEntity = FlowConnectionUsageImpl.class),
9497
@MetaValue(value = "ForLoopActionUsage", targetEntity = ForLoopActionUsageImpl.class),
9598
@MetaValue(value = "ForkNode", targetEntity = ForkNodeImpl.class),
@@ -101,6 +104,7 @@
101104
@MetaValue(value = "Interaction", targetEntity = InteractionImpl.class),
102105
@MetaValue(value = "InterfaceDefinition", targetEntity = InterfaceDefinitionImpl.class),
103106
@MetaValue(value = "InterfaceUsage", targetEntity = InterfaceUsageImpl.class),
107+
@MetaValue(value = "Intersecting", targetEntity = IntersectingImpl.class),
104108
@MetaValue(value = "Invariant", targetEntity = InvariantImpl.class),
105109
@MetaValue(value = "InvocationExpression", targetEntity = InvocationExpressionImpl.class),
106110
@MetaValue(value = "ItemDefinition", targetEntity = ItemDefinitionImpl.class),
@@ -143,8 +147,8 @@
143147
@MetaValue(value = "PortUsage", targetEntity = PortUsageImpl.class),
144148
@MetaValue(value = "PortioningFeature", targetEntity = PortioningFeatureImpl.class),
145149
@MetaValue(value = "Predicate", targetEntity = PredicateImpl.class),
146-
@MetaValue(value = "PrefixComment", targetEntity = PrefixCommentImpl.class),
147150
@MetaValue(value = "Redefinition", targetEntity = RedefinitionImpl.class),
151+
@MetaValue(value = "ReferenceSubsetting", targetEntity = ReferenceSubsettingImpl.class),
148152
@MetaValue(value = "ReferenceUsage", targetEntity = ReferenceUsageImpl.class),
149153
@MetaValue(value = "Relationship", targetEntity = RelationshipImpl.class),
150154
@MetaValue(value = "RenderingDefinition", targetEntity = RenderingDefinitionImpl.class),
@@ -180,6 +184,7 @@
180184
@MetaValue(value = "TriggerInvocationExpression", targetEntity = TriggerInvocationExpressionImpl.class),
181185
@MetaValue(value = "Type", targetEntity = TypeImpl.class),
182186
@MetaValue(value = "TypeFeaturing", targetEntity = TypeFeaturingImpl.class),
187+
@MetaValue(value = "Unioning", targetEntity = UnioningImpl.class),
183188
@MetaValue(value = "Usage", targetEntity = UsageImpl.class),
184189
@MetaValue(value = "UseCaseDefinition", targetEntity = UseCaseDefinitionImpl.class),
185190
@MetaValue(value = "UseCaseUsage", targetEntity = UseCaseUsageImpl.class),

app/org/omg/sysml/metamodel/BindingConnectorAsUsage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
import java.util.List;
2727
import java.util.Set;
2828

29-
public interface BindingConnectorAsUsage extends BindingConnector, ConnectorAsUsage, SysMLType {
29+
public interface BindingConnectorAsUsage extends ConnectorAsUsage, BindingConnector, SysMLType {
3030

3131
}

app/org/omg/sysml/metamodel/Connector.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
public interface Connector extends Feature, Relationship, SysMLType {
3030
List<? extends Feature> getRelatedFeature();
3131

32-
Collection<? extends Association> getAssociation();
32+
List<? extends Association> getAssociation();
3333

3434
Boolean getIsDirected();
3535

36-
Collection<? extends Feature> getConnectorEnd();
36+
List<? extends Feature> getConnectorEnd();
3737

3838
Feature getSourceFeature();
3939

40-
Collection<? extends Feature> getTargetFeature();
40+
List<? extends Feature> getTargetFeature();
4141
}

app/org/omg/sysml/metamodel/ConnectorAsUsage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
import java.util.List;
2727
import java.util.Set;
2828

29-
public interface ConnectorAsUsage extends Connector, Usage, SysMLType {
29+
public interface ConnectorAsUsage extends Usage, Connector, SysMLType {
3030

3131
}

app/org/omg/sysml/metamodel/Definition.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,6 @@ public interface Definition extends Classifier, SysMLType {
8888
List<? extends UseCaseUsage> getOwnedUseCase();
8989

9090
Collection<? extends FlowConnectionUsage> getOwnedFlow();
91+
92+
List<? extends MetadataUsage> getOwnedMetadata();
9193
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* SysML v2 REST/HTTP Pilot Implementation
3+
* Copyright (C) 2020 InterCAX LLC
4+
* Copyright (C) 2020 California Institute of Technology ("Caltech")
5+
* Copyright (C) 2021-2022 Twingineer LLC
6+
*
7+
* This program is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU Lesser General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* This program is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU Lesser General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU Lesser General Public License
18+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19+
*
20+
* @license LGPL-3.0-or-later <http://spdx.org/licenses/LGPL-3.0-or-later>
21+
*/
22+
23+
package org.omg.sysml.metamodel;
24+
25+
import java.util.Collection;
26+
import java.util.List;
27+
import java.util.Set;
28+
29+
public interface Differencing extends Relationship, SysMLType {
30+
Type getTypeDifferenced();
31+
32+
Type getDifferencingType();
33+
}

app/org/omg/sysml/metamodel/Element.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ public interface Element extends SysMLType {
5151

5252
String getShortName();
5353

54-
String getEffectiveName();
55-
5654
String getName();
5755

56+
String getEffectiveName();
57+
5858
String getQualifiedName();
59+
60+
Boolean getIsImpliedIncluded();
5961
}

0 commit comments

Comments
 (0)