Skip to content

Commit 920e11d

Browse files
committed
Merge branch 'main' into 2.1.x
2 parents fec7899 + d2dce4d commit 920e11d

File tree

191 files changed

+2110
-1225
lines changed

Some content is hidden

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

191 files changed

+2110
-1225
lines changed

core/sds-aspect-meta-model-interface/src/main/java/io/openmanufacturing/sds/aspectmodel/UnsupportedVersionException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ public UnsupportedVersionException() {
2121
}
2222

2323
public UnsupportedVersionException( final VersionNumber versionNumber ) {
24-
super( "Cannot find version " + versionNumber );
24+
super( "Meta model version " + versionNumber + " is not supported");
2525
}
2626

2727
public UnsupportedVersionException( final String versionNumber ) {
28-
super( "Cannot find version " + versionNumber );
28+
super( "Meta model version " + versionNumber + " is not supported");
2929
}
3030
}

core/sds-aspect-meta-model-interface/src/main/java/io/openmanufacturing/sds/aspectmodel/resolver/services/VersionedModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public Model getModel() {
4646
return model;
4747
}
4848

49-
public VersionNumber getVersion() {
49+
public VersionNumber getMetaModelVersion() {
5050
return version;
5151
}
5252

core/sds-aspect-meta-model-java/src/main/java/io/openmanufacturing/sds/metamodel/Code.java renamed to core/sds-aspect-meta-model-java/src/main/java/io/openmanufacturing/sds/characteristic/Code.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* Copyright (c) 2021 Robert Bosch Manufacturing Solutions GmbH
2+
* Copyright (c) 2022 Robert Bosch Manufacturing Solutions GmbH
33
*
44
* See the AUTHORS file(s) distributed with this work for additional
5-
* information regarding authorship.
5+
* information regarding authorship.
66
*
77
* This Source Code Form is subject to the terms of the Mozilla Public
88
* License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -11,7 +11,9 @@
1111
* SPDX-License-Identifier: MPL-2.0
1212
*/
1313

14-
package io.openmanufacturing.sds.metamodel;
14+
package io.openmanufacturing.sds.characteristic;
15+
16+
import io.openmanufacturing.sds.metamodel.Characteristic;
1517

1618
/**
1719
* Describes a Property which contains any kind of code.
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021 Robert Bosch Manufacturing Solutions GmbH
2+
* Copyright (c) 2022 Robert Bosch Manufacturing Solutions GmbH
33
*
44
* See the AUTHORS file(s) distributed with this work for additional
55
* information regarding authorship.
@@ -11,19 +11,19 @@
1111
* SPDX-License-Identifier: MPL-2.0
1212
*/
1313

14-
package io.openmanufacturing.sds.metamodel;
14+
package io.openmanufacturing.sds.characteristic;
1515

1616
import java.util.Optional;
1717

18+
import io.openmanufacturing.sds.metamodel.Characteristic;
19+
import io.openmanufacturing.sds.metamodel.CollectionValue;
20+
1821
/**
1922
* A group of values which may be either of a simple or complex type. The values may be duplicated and are not ordered.
2023
*
2124
* @since BAMM 1.0.0
2225
*/
2326
public interface Collection extends Characteristic {
24-
enum CollectionType {
25-
COLLECTION, SET, SORTEDSET, LIST
26-
}
2727

2828
/**
2929
* @return a {@link boolean} which determines whether the elements in the collection are ordered.
@@ -44,5 +44,5 @@ default Optional<Characteristic> getElementCharacteristic() {
4444
return Optional.empty();
4545
}
4646

47-
CollectionType getCollectionType();
47+
CollectionValue.CollectionType getCollectionType();
4848
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* Copyright (c) 2021 Robert Bosch Manufacturing Solutions GmbH
2+
* Copyright (c) 2022 Robert Bosch Manufacturing Solutions GmbH
33
*
44
* See the AUTHORS file(s) distributed with this work for additional
5-
* information regarding authorship.
5+
* information regarding authorship.
66
*
77
* This Source Code Form is subject to the terms of the Mozilla Public
88
* License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -11,7 +11,7 @@
1111
* SPDX-License-Identifier: MPL-2.0
1212
*/
1313

14-
package io.openmanufacturing.sds.metamodel;
14+
package io.openmanufacturing.sds.characteristic;
1515

1616
/**
1717
* A time duration according to ISO 8601.

core/sds-aspect-meta-model-java/src/main/java/io/openmanufacturing/sds/metamodel/Either.java renamed to core/sds-aspect-meta-model-java/src/main/java/io/openmanufacturing/sds/characteristic/Either.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* Copyright (c) 2021 Robert Bosch Manufacturing Solutions GmbH
2+
* Copyright (c) 2022 Robert Bosch Manufacturing Solutions GmbH
33
*
44
* See the AUTHORS file(s) distributed with this work for additional
5-
* information regarding authorship.
5+
* information regarding authorship.
66
*
77
* This Source Code Form is subject to the terms of the Mozilla Public
88
* License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -11,7 +11,9 @@
1111
* SPDX-License-Identifier: MPL-2.0
1212
*/
1313

14-
package io.openmanufacturing.sds.metamodel;
14+
package io.openmanufacturing.sds.characteristic;
15+
16+
import io.openmanufacturing.sds.metamodel.Characteristic;
1517

1618
/**
1719
* Describes a Property whose value can have one of two possible types (a disjoint union).
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* Copyright (c) 2021 Robert Bosch Manufacturing Solutions GmbH
2+
* Copyright (c) 2022 Robert Bosch Manufacturing Solutions GmbH
33
*
44
* See the AUTHORS file(s) distributed with this work for additional
5-
* information regarding authorship.
5+
* information regarding authorship.
66
*
77
* This Source Code Form is subject to the terms of the Mozilla Public
88
* License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -11,10 +11,14 @@
1111
* SPDX-License-Identifier: MPL-2.0
1212
*/
1313

14-
package io.openmanufacturing.sds.metamodel;
14+
package io.openmanufacturing.sds.characteristic;
1515

1616
import java.util.List;
1717

18+
import io.openmanufacturing.sds.metamodel.Characteristic;
19+
import io.openmanufacturing.sds.metamodel.Type;
20+
import io.openmanufacturing.sds.metamodel.Value;
21+
1822
/**
1923
* A list of possible values.
2024
*

core/sds-aspect-meta-model-java/src/main/java/io/openmanufacturing/sds/metamodel/List.java renamed to core/sds-aspect-meta-model-java/src/main/java/io/openmanufacturing/sds/characteristic/List.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* Copyright (c) 2021 Robert Bosch Manufacturing Solutions GmbH
2+
* Copyright (c) 2022 Robert Bosch Manufacturing Solutions GmbH
33
*
44
* See the AUTHORS file(s) distributed with this work for additional
5-
* information regarding authorship.
5+
* information regarding authorship.
66
*
77
* This Source Code Form is subject to the terms of the Mozilla Public
88
* License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -11,7 +11,7 @@
1111
* SPDX-License-Identifier: MPL-2.0
1212
*/
1313

14-
package io.openmanufacturing.sds.metamodel;
14+
package io.openmanufacturing.sds.characteristic;
1515

1616
/**
1717
* A collection which may contain duplicates and is ordered.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* Copyright (c) 2021 Robert Bosch Manufacturing Solutions GmbH
2+
* Copyright (c) 2022 Robert Bosch Manufacturing Solutions GmbH
33
*
44
* See the AUTHORS file(s) distributed with this work for additional
5-
* information regarding authorship.
5+
* information regarding authorship.
66
*
77
* This Source Code Form is subject to the terms of the Mozilla Public
88
* License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -11,7 +11,7 @@
1111
* SPDX-License-Identifier: MPL-2.0
1212
*/
1313

14-
package io.openmanufacturing.sds.metamodel;
14+
package io.openmanufacturing.sds.characteristic;
1515

1616
/**
1717
* A value which can be measured and has a unit.
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* Copyright (c) 2021 Robert Bosch Manufacturing Solutions GmbH
2+
* Copyright (c) 2022 Robert Bosch Manufacturing Solutions GmbH
33
*
44
* See the AUTHORS file(s) distributed with this work for additional
5-
* information regarding authorship.
5+
* information regarding authorship.
66
*
77
* This Source Code Form is subject to the terms of the Mozilla Public
88
* License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -11,10 +11,13 @@
1111
* SPDX-License-Identifier: MPL-2.0
1212
*/
1313

14-
package io.openmanufacturing.sds.metamodel;
14+
package io.openmanufacturing.sds.characteristic;
1515

1616
import java.util.Optional;
1717

18+
import io.openmanufacturing.sds.metamodel.Characteristic;
19+
import io.openmanufacturing.sds.metamodel.Unit;
20+
1821
/**
1922
* A value which can be quantified and may have a unit.
2023
*

0 commit comments

Comments
 (0)