Skip to content

Commit

Permalink
Merge branch 'release/2022-05-m1'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-gomes committed Jun 10, 2022
2 parents 68bd8ed + fbe34fd commit 6fc1fb6
Show file tree
Hide file tree
Showing 262 changed files with 3,347 additions and 183 deletions.
1 change: 1 addition & 0 deletions app/org/omg/sysml/lifecycle/impl/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
@MetaValue(value = "Feature", targetEntity = FeatureImpl.class),
@MetaValue(value = "FeatureChainExpression", targetEntity = FeatureChainExpressionImpl.class),
@MetaValue(value = "FeatureChaining", targetEntity = FeatureChainingImpl.class),
@MetaValue(value = "FeatureInverting", targetEntity = FeatureInvertingImpl.class),
@MetaValue(value = "FeatureMembership", targetEntity = FeatureMembershipImpl.class),
@MetaValue(value = "FeatureReferenceExpression", targetEntity = FeatureReferenceExpressionImpl.class),
@MetaValue(value = "FeatureTyping", targetEntity = FeatureTypingImpl.class),
Expand Down
2 changes: 1 addition & 1 deletion app/org/omg/sysml/metamodel/ConnectorAsUsage.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
import java.util.List;
import java.util.Set;

public interface ConnectorAsUsage extends Usage, Connector, SysMLType {
public interface ConnectorAsUsage extends Connector, Usage, SysMLType {

}
10 changes: 6 additions & 4 deletions app/org/omg/sysml/metamodel/Feature.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public interface Feature extends Type, SysMLType {

Boolean getIsComposite();

Boolean getIsPortion();
Boolean getIsEnd();

Type getEndOwningType();

Expand All @@ -53,15 +53,17 @@ public interface Feature extends Type, SysMLType {

List<? extends TypeFeaturing> getOwnedTypeFeaturing();

Boolean getIsDerived();

List<? extends Feature> getChainingFeature();

List<? extends FeatureChaining> getOwnedFeatureChaining();
Collection<? extends FeatureInverting> getOwnedFeatureInverting();

Boolean getIsDerived();
List<? extends FeatureChaining> getOwnedFeatureChaining();

Boolean getIsReadOnly();

Boolean getIsEnd();
Boolean getIsPortion();

FeatureDirectionKind getDirection();

Expand Down
35 changes: 35 additions & 0 deletions app/org/omg/sysml/metamodel/FeatureInverting.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* SysML v2 REST/HTTP Pilot Implementation
* Copyright (C) 2020 InterCAX LLC
* Copyright (C) 2020 California Institute of Technology ("Caltech")
* Copyright (C) 2021-2022 Twingineer LLC
*
* 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 FeatureInverting extends Relationship, SysMLType {
Feature getFeatureInverted();

Feature getInvertingFeature();

Feature getOwningFeature();
}
2 changes: 1 addition & 1 deletion app/org/omg/sysml/metamodel/FlowConnectionUsage.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
import java.util.List;
import java.util.Set;

public interface FlowConnectionUsage extends ConnectionUsage, ItemFlow, SysMLType {
public interface FlowConnectionUsage extends ItemFlow, ConnectionUsage, SysMLType {

}
2 changes: 1 addition & 1 deletion app/org/omg/sysml/metamodel/MetadataDefinition.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
import java.util.List;
import java.util.Set;

public interface MetadataDefinition extends Metaclass, ItemDefinition, SysMLType {
public interface MetadataDefinition extends ItemDefinition, Metaclass, SysMLType {

}
2 changes: 1 addition & 1 deletion app/org/omg/sysml/metamodel/MetadataUsage.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
import java.util.List;
import java.util.Set;

public interface MetadataUsage extends MetadataFeature, ItemUsage, SysMLType {
public interface MetadataUsage extends ItemUsage, MetadataFeature, SysMLType {
Metaclass getMetadataDefinition();
}
2 changes: 1 addition & 1 deletion app/org/omg/sysml/metamodel/SuccessionAsUsage.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
import java.util.List;
import java.util.Set;

public interface SuccessionAsUsage extends ConnectorAsUsage, Succession, SysMLType {
public interface SuccessionAsUsage extends Succession, ConnectorAsUsage, SysMLType {

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

public interface SuccessionFlowConnectionUsage extends SuccessionItemFlow, FlowConnectionUsage, SysMLType {
public interface SuccessionFlowConnectionUsage extends FlowConnectionUsage, SuccessionItemFlow, SysMLType {

}
26 changes: 26 additions & 0 deletions app/org/omg/sysml/metamodel/impl/AcceptActionUsageImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -1805,6 +1805,32 @@ public void setOwnedFeatureChaining(List<FeatureChaining> ownedFeatureChaining)



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

@JsonGetter
@JsonSerialize(contentUsing = DataSerializer.class)
// @javax.persistence.Transient
@ManyToAny(metaDef = "FeatureInvertingMetaDef", metaColumn = @javax.persistence.Column(name = "attribute_type"), fetch = FetchType.LAZY)
@JoinTable(name = "AcceptActionUsage_ownedFeatureInverting",
joinColumns = @JoinColumn(name = "class_id"),
inverseJoinColumns = @JoinColumn(name = "attribute_id"))
public Collection<FeatureInverting> getOwnedFeatureInverting() {
if (ownedFeatureInverting == null) {
ownedFeatureInverting = new ArrayList<>();
}
return ownedFeatureInverting;
}

@JsonSetter
@JsonDeserialize(contentUsing = DataDeserializer.class, contentAs = FeatureInvertingImpl.class)
public void setOwnedFeatureInverting(Collection<FeatureInverting> ownedFeatureInverting) {
this.ownedFeatureInverting = ownedFeatureInverting;
}



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("ownedFeatureMembership")
private List<FeatureMembership> ownedFeatureMembership;
Expand Down
26 changes: 26 additions & 0 deletions app/org/omg/sysml/metamodel/impl/ActionUsageImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -1805,6 +1805,32 @@ public void setOwnedFeatureChaining(List<FeatureChaining> ownedFeatureChaining)



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

@JsonGetter
@JsonSerialize(contentUsing = DataSerializer.class)
// @javax.persistence.Transient
@ManyToAny(metaDef = "FeatureInvertingMetaDef", metaColumn = @javax.persistence.Column(name = "attribute_type"), fetch = FetchType.LAZY)
@JoinTable(name = "ActionUsage_ownedFeatureInverting",
joinColumns = @JoinColumn(name = "class_id"),
inverseJoinColumns = @JoinColumn(name = "attribute_id"))
public Collection<FeatureInverting> getOwnedFeatureInverting() {
if (ownedFeatureInverting == null) {
ownedFeatureInverting = new ArrayList<>();
}
return ownedFeatureInverting;
}

@JsonSetter
@JsonDeserialize(contentUsing = DataDeserializer.class, contentAs = FeatureInvertingImpl.class)
public void setOwnedFeatureInverting(Collection<FeatureInverting> ownedFeatureInverting) {
this.ownedFeatureInverting = ownedFeatureInverting;
}



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("ownedFeatureMembership")
private List<FeatureMembership> ownedFeatureMembership;
Expand Down
26 changes: 26 additions & 0 deletions app/org/omg/sysml/metamodel/impl/AllocationUsageImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -1899,6 +1899,32 @@ public void setOwnedFeatureChaining(List<FeatureChaining> ownedFeatureChaining)



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

@JsonGetter
@JsonSerialize(contentUsing = DataSerializer.class)
// @javax.persistence.Transient
@ManyToAny(metaDef = "FeatureInvertingMetaDef", metaColumn = @javax.persistence.Column(name = "attribute_type"), fetch = FetchType.LAZY)
@JoinTable(name = "AllocationUsage_ownedFeatureInverting",
joinColumns = @JoinColumn(name = "class_id"),
inverseJoinColumns = @JoinColumn(name = "attribute_id"))
public Collection<FeatureInverting> getOwnedFeatureInverting() {
if (ownedFeatureInverting == null) {
ownedFeatureInverting = new ArrayList<>();
}
return ownedFeatureInverting;
}

@JsonSetter
@JsonDeserialize(contentUsing = DataDeserializer.class, contentAs = FeatureInvertingImpl.class)
public void setOwnedFeatureInverting(Collection<FeatureInverting> ownedFeatureInverting) {
this.ownedFeatureInverting = ownedFeatureInverting;
}



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("ownedFeatureMembership")
private List<FeatureMembership> ownedFeatureMembership;
Expand Down
26 changes: 26 additions & 0 deletions app/org/omg/sysml/metamodel/impl/AnalysisCaseUsageImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -1980,6 +1980,32 @@ public void setOwnedFeatureChaining(List<FeatureChaining> ownedFeatureChaining)



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

@JsonGetter
@JsonSerialize(contentUsing = DataSerializer.class)
// @javax.persistence.Transient
@ManyToAny(metaDef = "FeatureInvertingMetaDef", metaColumn = @javax.persistence.Column(name = "attribute_type"), fetch = FetchType.LAZY)
@JoinTable(name = "AnalysisCaseUsage_ownedFeatureInverting",
joinColumns = @JoinColumn(name = "class_id"),
inverseJoinColumns = @JoinColumn(name = "attribute_id"))
public Collection<FeatureInverting> getOwnedFeatureInverting() {
if (ownedFeatureInverting == null) {
ownedFeatureInverting = new ArrayList<>();
}
return ownedFeatureInverting;
}

@JsonSetter
@JsonDeserialize(contentUsing = DataDeserializer.class, contentAs = FeatureInvertingImpl.class)
public void setOwnedFeatureInverting(Collection<FeatureInverting> ownedFeatureInverting) {
this.ownedFeatureInverting = ownedFeatureInverting;
}



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("ownedFeatureMembership")
private List<FeatureMembership> ownedFeatureMembership;
Expand Down
2 changes: 2 additions & 0 deletions app/org/omg/sysml/metamodel/impl/AnnotationImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,13 @@ public void setOwner(Element owner) {



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("owningAnnotatedElement")
private Element owningAnnotatedElement;

@JsonGetter
@JsonSerialize(using = DataSerializer.class)
// @javax.persistence.Transient
@Any(metaDef = "ElementMetaDef", metaColumn = @javax.persistence.Column(name = "owningAnnotatedElement_type"), fetch = FetchType.LAZY)
@JoinColumn(name = "owningAnnotatedElement_id", table = "Annotation")
public Element getOwningAnnotatedElement() {
Expand Down
26 changes: 26 additions & 0 deletions app/org/omg/sysml/metamodel/impl/AssertConstraintUsageImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -1876,6 +1876,32 @@ public void setOwnedFeatureChaining(List<FeatureChaining> ownedFeatureChaining)



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

@JsonGetter
@JsonSerialize(contentUsing = DataSerializer.class)
// @javax.persistence.Transient
@ManyToAny(metaDef = "FeatureInvertingMetaDef", metaColumn = @javax.persistence.Column(name = "attribute_type"), fetch = FetchType.LAZY)
@JoinTable(name = "AssertConstraintUsage_ownedFeatureInverting",
joinColumns = @JoinColumn(name = "class_id"),
inverseJoinColumns = @JoinColumn(name = "attribute_id"))
public Collection<FeatureInverting> getOwnedFeatureInverting() {
if (ownedFeatureInverting == null) {
ownedFeatureInverting = new ArrayList<>();
}
return ownedFeatureInverting;
}

@JsonSetter
@JsonDeserialize(contentUsing = DataDeserializer.class, contentAs = FeatureInvertingImpl.class)
public void setOwnedFeatureInverting(Collection<FeatureInverting> ownedFeatureInverting) {
this.ownedFeatureInverting = ownedFeatureInverting;
}



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("ownedFeatureMembership")
private List<FeatureMembership> ownedFeatureMembership;
Expand Down
26 changes: 26 additions & 0 deletions app/org/omg/sysml/metamodel/impl/AssignmentActionUsageImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -1805,6 +1805,32 @@ public void setOwnedFeatureChaining(List<FeatureChaining> ownedFeatureChaining)



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

@JsonGetter
@JsonSerialize(contentUsing = DataSerializer.class)
// @javax.persistence.Transient
@ManyToAny(metaDef = "FeatureInvertingMetaDef", metaColumn = @javax.persistence.Column(name = "attribute_type"), fetch = FetchType.LAZY)
@JoinTable(name = "AssignmentActionUsage_ownedFeatureInverting",
joinColumns = @JoinColumn(name = "class_id"),
inverseJoinColumns = @JoinColumn(name = "attribute_id"))
public Collection<FeatureInverting> getOwnedFeatureInverting() {
if (ownedFeatureInverting == null) {
ownedFeatureInverting = new ArrayList<>();
}
return ownedFeatureInverting;
}

@JsonSetter
@JsonDeserialize(contentUsing = DataDeserializer.class, contentAs = FeatureInvertingImpl.class)
public void setOwnedFeatureInverting(Collection<FeatureInverting> ownedFeatureInverting) {
this.ownedFeatureInverting = ownedFeatureInverting;
}



// @info.archinnov.achilles.annotations.Transient
// @info.archinnov.achilles.annotations.Column("ownedFeatureMembership")
private List<FeatureMembership> ownedFeatureMembership;
Expand Down
26 changes: 26 additions & 0 deletions app/org/omg/sysml/metamodel/impl/AttributeUsageImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -1714,6 +1714,32 @@ public void setOwnedFeatureChaining(List<FeatureChaining> ownedFeatureChaining)



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

@JsonGetter
@JsonSerialize(contentUsing = DataSerializer.class)
// @javax.persistence.Transient
@ManyToAny(metaDef = "FeatureInvertingMetaDef", metaColumn = @javax.persistence.Column(name = "attribute_type"), fetch = FetchType.LAZY)
@JoinTable(name = "AttributeUsage_ownedFeatureInverting",
joinColumns = @JoinColumn(name = "class_id"),
inverseJoinColumns = @JoinColumn(name = "attribute_id"))
public Collection<FeatureInverting> getOwnedFeatureInverting() {
if (ownedFeatureInverting == null) {
ownedFeatureInverting = new ArrayList<>();
}
return ownedFeatureInverting;
}

@JsonSetter
@JsonDeserialize(contentUsing = DataDeserializer.class, contentAs = FeatureInvertingImpl.class)
public void setOwnedFeatureInverting(Collection<FeatureInverting> ownedFeatureInverting) {
this.ownedFeatureInverting = ownedFeatureInverting;
}



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

0 comments on commit 6fc1fb6

Please sign in to comment.