Skip to content

Commit

Permalink
Merge branch 'release/2022-03'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-gomes committed Apr 7, 2022
2 parents 97fe096 + a426861 commit 44041c1
Show file tree
Hide file tree
Showing 502 changed files with 10,204 additions and 11,484 deletions.
5 changes: 3 additions & 2 deletions app/org/omg/sysml/lifecycle/impl/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
@MetaValue(value = "AnalysisCaseDefinition", targetEntity = AnalysisCaseDefinitionImpl.class),
@MetaValue(value = "AnalysisCaseUsage", targetEntity = AnalysisCaseUsageImpl.class),
@MetaValue(value = "AnnotatingElement", targetEntity = AnnotatingElementImpl.class),
@MetaValue(value = "AnnotatingFeature", targetEntity = AnnotatingFeatureImpl.class),
@MetaValue(value = "Annotation", targetEntity = AnnotationImpl.class),
@MetaValue(value = "AssertConstraintUsage", targetEntity = AssertConstraintUsageImpl.class),
@MetaValue(value = "AssignmentActionUsage", targetEntity = AssignmentActionUsageImpl.class),
Expand Down Expand Up @@ -120,8 +119,10 @@
@MetaValue(value = "LoopActionUsage", targetEntity = LoopActionUsageImpl.class),
@MetaValue(value = "Membership", targetEntity = MembershipImpl.class),
@MetaValue(value = "MergeNode", targetEntity = MergeNodeImpl.class),
@MetaValue(value = "Metaclass", targetEntity = MetaclassImpl.class),
@MetaValue(value = "MetadataDefinition", targetEntity = MetadataDefinitionImpl.class),
@MetaValue(value = "MetadataFeature", targetEntity = MetadataFeatureImpl.class),
@MetaValue(value = "MetadataFeatureValue", targetEntity = MetadataFeatureValueImpl.class),
@MetaValue(value = "MetadataUsage", targetEntity = MetadataUsageImpl.class),
@MetaValue(value = "Multiplicity", targetEntity = MultiplicityImpl.class),
@MetaValue(value = "MultiplicityRange", targetEntity = MultiplicityRangeImpl.class),
@MetaValue(value = "Namespace", targetEntity = NamespaceImpl.class),
Expand Down
2 changes: 2 additions & 0 deletions app/org/omg/sysml/metamodel/Comment.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@
import java.util.Set;

public interface Comment extends AnnotatingElement, SysMLType {
String getLocale();

String getBody();
}
6 changes: 2 additions & 4 deletions app/org/omg/sysml/metamodel/Documentation.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
import java.util.List;
import java.util.Set;

public interface Documentation extends Annotation, SysMLType {
Element getOwningDocumentedElement();

Comment getDocumentingComment();
public interface Documentation extends Comment, SysMLType {
Element getDocumentedElement();
}
4 changes: 1 addition & 3 deletions app/org/omg/sysml/metamodel/Element.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,9 @@ public interface Element extends SysMLType {

List<? extends Documentation> getDocumentation();

List<? extends Comment> getDocumentationComment();

List<? extends Annotation> getOwnedAnnotation();

Collection<? extends TextualRepresentation> getOwnedTextualRepresentation();
List<? extends TextualRepresentation> getTextualRepresentation();

String getQualifiedName();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
import java.util.List;
import java.util.Set;

public interface MetadataFeatureValue extends FeatureValue, SysMLType {
Expression getMetadataValue();
public interface Metaclass extends Structure, SysMLType {

MetadataFeature getOwningMetadataFeature();
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
import java.util.List;
import java.util.Set;

public interface AnnotatingFeature extends AnnotatingElement, Feature, SysMLType {
DataType getMetadataType();
public interface MetadataDefinition extends Definition, ItemDefinition, Metaclass, SysMLType {

List<? extends MetadataFeature> getOwnedMetadata();
}
4 changes: 2 additions & 2 deletions app/org/omg/sysml/metamodel/MetadataFeature.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
import java.util.List;
import java.util.Set;

public interface MetadataFeature extends Feature, SysMLType {
MetadataFeatureValue getMetadataFeatureValue();
public interface MetadataFeature extends AnnotatingElement, Feature, SysMLType {
Metaclass getMetaclass();
}
30 changes: 30 additions & 0 deletions app/org/omg/sysml/metamodel/MetadataUsage.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* SysML v2 REST/HTTP Pilot Implementation
* Copyright (C) 2020 InterCAX LLC
* Copyright (C) 2020 California Institute of Technology ("Caltech")
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* @license LGPL-3.0-or-later <http://spdx.org/licenses/LGPL-3.0-or-later>
*/

package org.omg.sysml.metamodel;

import java.util.Collection;
import java.util.List;
import java.util.Set;

public interface MetadataUsage extends ItemUsage, MetadataFeature, Usage, SysMLType {
Metaclass getMetadataDefinition();
}
4 changes: 2 additions & 2 deletions app/org/omg/sysml/metamodel/TextualRepresentation.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
public interface TextualRepresentation extends AnnotatingElement, SysMLType {
String getLanguage();

String getBody();

Element getRepresentedElement();

String getBody();
}
78 changes: 26 additions & 52 deletions app/org/omg/sysml/metamodel/impl/AcceptActionUsageImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -292,32 +292,6 @@ public void setDocumentation(List<Documentation> documentation) {



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("documentationComment")
private List<Comment> documentationComment;

@JsonGetter
@JsonSerialize(contentUsing = DataSerializer.class)
// @javax.persistence.Transient
@ManyToAny(metaDef = "CommentMetaDef", metaColumn = @javax.persistence.Column(name = "attributeType"), fetch = FetchType.LAZY)
@JoinTable(name = "AcceptActionUsage_documentationComment",
joinColumns = @JoinColumn(name = "classId"),
inverseJoinColumns = @JoinColumn(name = "attributeId"))
public List<Comment> getDocumentationComment() {
if (documentationComment == null) {
documentationComment = new ArrayList<>();
}
return documentationComment;
}

@JsonSetter
@JsonDeserialize(contentUsing = DataDeserializer.class, contentAs = CommentImpl.class)
public void setDocumentationComment(List<Comment> documentationComment) {
this.documentationComment = documentationComment;
}



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("effectiveName")
private String effectiveName;
Expand Down Expand Up @@ -2056,32 +2030,6 @@ public void setOwnedSubsetting(Collection<Subsetting> ownedSubsetting) {



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("ownedTextualRepresentation")
private Collection<TextualRepresentation> ownedTextualRepresentation;

@JsonGetter
@JsonSerialize(contentUsing = DataSerializer.class)
// @javax.persistence.Transient
@ManyToAny(metaDef = "TextualRepresentationMetaDef", metaColumn = @javax.persistence.Column(name = "attributeType"), fetch = FetchType.LAZY)
@JoinTable(name = "AcceptActionUsage_ownedTextualRepresentation",
joinColumns = @JoinColumn(name = "classId"),
inverseJoinColumns = @JoinColumn(name = "attributeId"))
public Collection<TextualRepresentation> getOwnedTextualRepresentation() {
if (ownedTextualRepresentation == null) {
ownedTextualRepresentation = new ArrayList<>();
}
return ownedTextualRepresentation;
}

@JsonSetter
@JsonDeserialize(contentUsing = DataDeserializer.class, contentAs = TextualRepresentationImpl.class)
public void setOwnedTextualRepresentation(Collection<TextualRepresentation> ownedTextualRepresentation) {
this.ownedTextualRepresentation = ownedTextualRepresentation;
}



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("ownedTypeFeaturing")
private List<TypeFeaturing> ownedTypeFeaturing;
Expand Down Expand Up @@ -2444,6 +2392,32 @@ public void setReceiverArgument(Expression receiverArgument) {



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("textualRepresentation")
private List<TextualRepresentation> textualRepresentation;

@JsonGetter
@JsonSerialize(contentUsing = DataSerializer.class)
// @javax.persistence.Transient
@ManyToAny(metaDef = "TextualRepresentationMetaDef", metaColumn = @javax.persistence.Column(name = "attributeType"), fetch = FetchType.LAZY)
@JoinTable(name = "AcceptActionUsage_textualRepresentation",
joinColumns = @JoinColumn(name = "classId"),
inverseJoinColumns = @JoinColumn(name = "attributeId"))
public List<TextualRepresentation> getTextualRepresentation() {
if (textualRepresentation == null) {
textualRepresentation = new ArrayList<>();
}
return textualRepresentation;
}

@JsonSetter
@JsonDeserialize(contentUsing = DataDeserializer.class, contentAs = TextualRepresentationImpl.class)
public void setTextualRepresentation(List<TextualRepresentation> textualRepresentation) {
this.textualRepresentation = textualRepresentation;
}



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("type")
private List<Type> type;
Expand Down
78 changes: 26 additions & 52 deletions app/org/omg/sysml/metamodel/impl/ActionDefinitionImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -196,32 +196,6 @@ public void setDocumentation(List<Documentation> documentation) {



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("documentationComment")
private List<Comment> documentationComment;

@JsonGetter
@JsonSerialize(contentUsing = DataSerializer.class)
// @javax.persistence.Transient
@ManyToAny(metaDef = "CommentMetaDef", metaColumn = @javax.persistence.Column(name = "attributeType"), fetch = FetchType.LAZY)
@JoinTable(name = "ActionDefinition_documentationComment",
joinColumns = @JoinColumn(name = "classId"),
inverseJoinColumns = @JoinColumn(name = "attributeId"))
public List<Comment> getDocumentationComment() {
if (documentationComment == null) {
documentationComment = new ArrayList<>();
}
return documentationComment;
}

@JsonSetter
@JsonDeserialize(contentUsing = DataDeserializer.class, contentAs = CommentImpl.class)
public void setDocumentationComment(List<Comment> documentationComment) {
this.documentationComment = documentationComment;
}



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("effectiveName")
private String effectiveName;
Expand Down Expand Up @@ -1531,32 +1505,6 @@ public void setOwnedSubclassification(Collection<Subclassification> ownedSubclas



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("ownedTextualRepresentation")
private Collection<TextualRepresentation> ownedTextualRepresentation;

@JsonGetter
@JsonSerialize(contentUsing = DataSerializer.class)
// @javax.persistence.Transient
@ManyToAny(metaDef = "TextualRepresentationMetaDef", metaColumn = @javax.persistence.Column(name = "attributeType"), fetch = FetchType.LAZY)
@JoinTable(name = "ActionDefinition_ownedTextualRepresentation",
joinColumns = @JoinColumn(name = "classId"),
inverseJoinColumns = @JoinColumn(name = "attributeId"))
public Collection<TextualRepresentation> getOwnedTextualRepresentation() {
if (ownedTextualRepresentation == null) {
ownedTextualRepresentation = new ArrayList<>();
}
return ownedTextualRepresentation;
}

@JsonSetter
@JsonDeserialize(contentUsing = DataDeserializer.class, contentAs = TextualRepresentationImpl.class)
public void setOwnedTextualRepresentation(Collection<TextualRepresentation> ownedTextualRepresentation) {
this.ownedTextualRepresentation = ownedTextualRepresentation;
}



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("ownedTransition")
private Collection<TransitionUsage> ownedTransition;
Expand Down Expand Up @@ -1865,6 +1813,32 @@ public void setStep(Collection<Step> step) {



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("textualRepresentation")
private List<TextualRepresentation> textualRepresentation;

@JsonGetter
@JsonSerialize(contentUsing = DataSerializer.class)
// @javax.persistence.Transient
@ManyToAny(metaDef = "TextualRepresentationMetaDef", metaColumn = @javax.persistence.Column(name = "attributeType"), fetch = FetchType.LAZY)
@JoinTable(name = "ActionDefinition_textualRepresentation",
joinColumns = @JoinColumn(name = "classId"),
inverseJoinColumns = @JoinColumn(name = "attributeId"))
public List<TextualRepresentation> getTextualRepresentation() {
if (textualRepresentation == null) {
textualRepresentation = new ArrayList<>();
}
return textualRepresentation;
}

@JsonSetter
@JsonDeserialize(contentUsing = DataDeserializer.class, contentAs = TextualRepresentationImpl.class)
public void setTextualRepresentation(List<TextualRepresentation> textualRepresentation) {
this.textualRepresentation = textualRepresentation;
}



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("usage")
private List<Usage> usage;
Expand Down
Loading

0 comments on commit 44041c1

Please sign in to comment.