Skip to content

Commit 9ff90c1

Browse files
committed
Merge branch 'release/2022-11-rc2'
2 parents 32a24c1 + bc8b7e0 commit 9ff90c1

File tree

217 files changed

+624706
-616385
lines changed

Some content is hidden

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

217 files changed

+624706
-616385
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@
123123
@MetaValue(value = "LiteralString", targetEntity = LiteralStringImpl.class),
124124
@MetaValue(value = "LoopActionUsage", targetEntity = LoopActionUsageImpl.class),
125125
@MetaValue(value = "Membership", targetEntity = MembershipImpl.class),
126+
@MetaValue(value = "MembershipExpose", targetEntity = MembershipExposeImpl.class),
127+
@MetaValue(value = "MembershipImport", targetEntity = MembershipImportImpl.class),
126128
@MetaValue(value = "MergeNode", targetEntity = MergeNodeImpl.class),
127129
@MetaValue(value = "Metaclass", targetEntity = MetaclassImpl.class),
128130
@MetaValue(value = "MetadataAccessExpression", targetEntity = MetadataAccessExpressionImpl.class),
@@ -132,6 +134,8 @@
132134
@MetaValue(value = "Multiplicity", targetEntity = MultiplicityImpl.class),
133135
@MetaValue(value = "MultiplicityRange", targetEntity = MultiplicityRangeImpl.class),
134136
@MetaValue(value = "Namespace", targetEntity = NamespaceImpl.class),
137+
@MetaValue(value = "NamespaceExpose", targetEntity = NamespaceExposeImpl.class),
138+
@MetaValue(value = "NamespaceImport", targetEntity = NamespaceImportImpl.class),
135139
@MetaValue(value = "NullExpression", targetEntity = NullExpressionImpl.class),
136140
@MetaValue(value = "ObjectiveMembership", targetEntity = ObjectiveMembershipImpl.class),
137141
@MetaValue(value = "OccurrenceDefinition", targetEntity = OccurrenceDefinitionImpl.class),

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,13 @@
2727
import java.util.Set;
2828

2929
public interface Import extends Relationship, SysMLType {
30-
Namespace getImportedNamespace();
31-
3230
Namespace getImportOwningNamespace();
3331

3432
VisibilityKind getVisibility();
3533

36-
String getImportedMemberName();
37-
3834
Boolean getIsRecursive();
3935

4036
Boolean getIsImportAll();
37+
38+
Element getImportedElement();
4139
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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 MembershipExpose extends Expose, MembershipImport, SysMLType {
30+
31+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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 MembershipImport extends Import, SysMLType {
30+
Membership getImportedMembership();
31+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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 NamespaceExpose extends Expose, NamespaceImport, SysMLType {
30+
31+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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 NamespaceImport extends Import, SysMLType {
30+
Namespace getImportedNamespace();
31+
}

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,9 @@ public interface ViewUsage extends PartUsage, SysMLType {
3131

3232
List<? extends ViewpointUsage> getSatisfiedViewpoint();
3333

34-
List<? extends Namespace> getExposedNamespace();
34+
List<? extends Element> getExposedElement();
3535

3636
RenderingUsage getViewRendering();
3737

3838
List<? extends Expression> getViewCondition();
39-
40-
List<? extends Element> getViewedElement();
4139
}

app/org/omg/sysml/metamodel/impl/ExposeImpl.java

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
@DiscriminatorValue(value = "Expose")
7070
@JsonTypeName(value = "Expose")
7171
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME)
72-
public class ExposeImpl extends SysMLTypeImpl implements Expose {
72+
public abstract class ExposeImpl extends SysMLTypeImpl implements Expose {
7373
// @info.archinnov.achilles.annotations.Column("aliasIds")
7474
private List<String> aliasIds;
7575

@@ -176,39 +176,23 @@ public void setImportOwningNamespace(Namespace importOwningNamespace) {
176176

177177

178178

179-
// @info.archinnov.achilles.annotations.Column("importedMemberName")
180-
private String importedMemberName;
181-
182-
@JsonGetter
183-
@Lob
184-
@org.hibernate.annotations.Type(type = "org.hibernate.type.TextType")
185-
@javax.persistence.Column(name = "importedMemberName", table = "Expose")
186-
public String getImportedMemberName() {
187-
return importedMemberName;
188-
}
189-
190-
@JsonSetter
191-
public void setImportedMemberName(String importedMemberName) {
192-
this.importedMemberName = importedMemberName;
193-
}
194-
195-
196-
197-
// @info.archinnov.achilles.annotations.Column("importedNamespace")
198-
private Namespace importedNamespace;
179+
// @info.archinnov.achilles.annotations.Transient
180+
// @info.archinnov.achilles.annotations.Column("importedElement")
181+
private Element importedElement;
199182

200183
@JsonGetter
201184
@JsonSerialize(using = DataSerializer.class)
202-
@Any(metaDef = "NamespaceMetaDef", metaColumn = @javax.persistence.Column(name = "importedNamespace_type"), fetch = FetchType.LAZY)
203-
@JoinColumn(name = "importedNamespace_id", table = "Expose")
204-
public Namespace getImportedNamespace() {
205-
return importedNamespace;
185+
// @javax.persistence.Transient
186+
@Any(metaDef = "ElementMetaDef", metaColumn = @javax.persistence.Column(name = "importedElement_type"), fetch = FetchType.LAZY)
187+
@JoinColumn(name = "importedElement_id", table = "Expose")
188+
public Element getImportedElement() {
189+
return importedElement;
206190
}
207191

208192
@JsonSetter
209-
@JsonDeserialize(using = DataDeserializer.class, as = NamespaceImpl.class)
210-
public void setImportedNamespace(Namespace importedNamespace) {
211-
this.importedNamespace = importedNamespace;
193+
@JsonDeserialize(using = DataDeserializer.class, as = ElementImpl.class)
194+
public void setImportedElement(Element importedElement) {
195+
this.importedElement = importedElement;
212196
}
213197

214198

app/org/omg/sysml/metamodel/impl/ImportImpl.java

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
@DiscriminatorValue(value = "Import")
7070
@JsonTypeName(value = "Import")
7171
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME)
72-
public class ImportImpl extends SysMLTypeImpl implements Import {
72+
public abstract class ImportImpl extends SysMLTypeImpl implements Import {
7373
// @info.archinnov.achilles.annotations.Column("aliasIds")
7474
private List<String> aliasIds;
7575

@@ -176,39 +176,23 @@ public void setImportOwningNamespace(Namespace importOwningNamespace) {
176176

177177

178178

179-
// @info.archinnov.achilles.annotations.Column("importedMemberName")
180-
private String importedMemberName;
181-
182-
@JsonGetter
183-
@Lob
184-
@org.hibernate.annotations.Type(type = "org.hibernate.type.TextType")
185-
@javax.persistence.Column(name = "importedMemberName", table = "Import")
186-
public String getImportedMemberName() {
187-
return importedMemberName;
188-
}
189-
190-
@JsonSetter
191-
public void setImportedMemberName(String importedMemberName) {
192-
this.importedMemberName = importedMemberName;
193-
}
194-
195-
196-
197-
// @info.archinnov.achilles.annotations.Column("importedNamespace")
198-
private Namespace importedNamespace;
179+
// @info.archinnov.achilles.annotations.Transient
180+
// @info.archinnov.achilles.annotations.Column("importedElement")
181+
private Element importedElement;
199182

200183
@JsonGetter
201184
@JsonSerialize(using = DataSerializer.class)
202-
@Any(metaDef = "NamespaceMetaDef", metaColumn = @javax.persistence.Column(name = "importedNamespace_type"), fetch = FetchType.LAZY)
203-
@JoinColumn(name = "importedNamespace_id", table = "Import")
204-
public Namespace getImportedNamespace() {
205-
return importedNamespace;
185+
// @javax.persistence.Transient
186+
@Any(metaDef = "ElementMetaDef", metaColumn = @javax.persistence.Column(name = "importedElement_type"), fetch = FetchType.LAZY)
187+
@JoinColumn(name = "importedElement_id", table = "Import")
188+
public Element getImportedElement() {
189+
return importedElement;
206190
}
207191

208192
@JsonSetter
209-
@JsonDeserialize(using = DataDeserializer.class, as = NamespaceImpl.class)
210-
public void setImportedNamespace(Namespace importedNamespace) {
211-
this.importedNamespace = importedNamespace;
193+
@JsonDeserialize(using = DataDeserializer.class, as = ElementImpl.class)
194+
public void setImportedElement(Element importedElement) {
195+
this.importedElement = importedElement;
212196
}
213197

214198

0 commit comments

Comments
 (0)