Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Commit 9dcc13f

Browse files
committed
Merge branch 'master'
2 parents 7626b81 + 23436a1 commit 9dcc13f

59 files changed

Lines changed: 256 additions & 1779 deletions

File tree

Some content is hidden

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

src/main/java/io/adminshell/aas/v3/model/DataSpecification.java

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/main/java/io/adminshell/aas/v3/model/EmbeddedDataSpecification.java

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,61 @@
99
import io.adminshell.aas.v3.model.impl.*;
1010

1111
/**
12-
* TODO.
12+
* Link to the included description of the Data Specification.
1313
*/
1414
@KnownSubtypes({
1515
@KnownSubtypes.Type(value = DefaultEmbeddedDataSpecification.class)
1616
})
1717
public interface EmbeddedDataSpecification {
1818

19+
/**
20+
* Global reference to the data specification template used by the element. Reference points to a
21+
* Data Specification.
22+
*
23+
* Reference must point to a Data Specification.
24+
*
25+
* More information under
26+
* https://admin-shell.io/aas/3/0/RC01/EmbeddedDataSpecification/dataSpecification
27+
*
28+
* @return Returns the Reference for the property dataSpecification.
29+
*/
30+
@IRI("https://admin-shell.io/aas/3/0/RC01/EmbeddedDataSpecification/dataSpecification")
31+
Reference getDataSpecification();
32+
33+
/**
34+
* Global reference to the data specification template used by the element. Reference points to a
35+
* Data Specification.
36+
*
37+
* Reference must point to a Data Specification.
38+
*
39+
* More information under
40+
* https://admin-shell.io/aas/3/0/RC01/EmbeddedDataSpecification/dataSpecification
41+
*
42+
* @param dataSpecification desired value for the property dataSpecification.
43+
*/
44+
void setDataSpecification(Reference dataSpecification);
45+
46+
/**
47+
* Property links to a Data Specification Content, which contains the formalized definitions
48+
* specifying this Data Specification.
49+
*
50+
* More information under
51+
* https://admin-shell.io/aas/3/0/RC01/EmbeddedDataSpecification/dataSpecificationContent
52+
*
53+
* @return Returns the DataSpecificationContent for the property dataSpecificationContent.
54+
*/
55+
@IRI("https://admin-shell.io/aas/3/0/RC01/EmbeddedDataSpecification/dataSpecificationContent")
56+
DataSpecificationContent getDataSpecificationContent();
57+
58+
/**
59+
* Property links to a Data Specification Content, which contains the formalized definitions
60+
* specifying this Data Specification.
61+
*
62+
* More information under
63+
* https://admin-shell.io/aas/3/0/RC01/EmbeddedDataSpecification/dataSpecificationContent
64+
*
65+
* @param dataSpecificationContent desired value for the property dataSpecificationContent.
66+
*/
67+
void setDataSpecificationContent(DataSpecificationContent dataSpecificationContent);
68+
1969
}

src/main/java/io/adminshell/aas/v3/model/Entity.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ public interface Entity extends SubmodelElement {
6161
* Constraint AASd-014: Either the attribute globalAssetId or externalAssetId of an Entity must be
6262
* set if Entity/entityType is set to 'SelfManagedEntity'. They are not existing otherwise.
6363
*
64-
* More information under https://admin-shell.io/aas/3/0/RC01/Entity/externalAssetId
64+
* More information under https://admin-shell.io/aas/3/0/RC01/Entity/specificAssetId
6565
*
66-
* @return Returns the IdentifierKeyValuePair for the property externalAssetId.
66+
* @return Returns the IdentifierKeyValuePair for the property specificAssetId.
6767
*/
68-
@IRI("https://admin-shell.io/aas/3/0/RC01/Entity/externalAssetId")
69-
IdentifierKeyValuePair getExternalAssetId();
68+
@IRI("https://admin-shell.io/aas/3/0/RC01/Entity/specificAssetId")
69+
IdentifierKeyValuePair getSpecificAssetId();
7070

7171
/**
7272
* Reference to an identifier key value pair representing an external identifier of the asset
@@ -78,11 +78,11 @@ public interface Entity extends SubmodelElement {
7878
* Constraint AASd-014: Either the attribute globalAssetId or externalAssetId of an Entity must be
7979
* set if Entity/entityType is set to 'SelfManagedEntity'. They are not existing otherwise.
8080
*
81-
* More information under https://admin-shell.io/aas/3/0/RC01/Entity/externalAssetId
81+
* More information under https://admin-shell.io/aas/3/0/RC01/Entity/specificAssetId
8282
*
83-
* @param externalAssetId desired value for the property externalAssetId.
83+
* @param specificAssetId desired value for the property specificAssetId.
8484
*/
85-
void setExternalAssetId(IdentifierKeyValuePair externalAssetId);
85+
void setSpecificAssetId(IdentifierKeyValuePair specificAssetId);
8686

8787
/**
8888
* Describes whether the entity is a co-managed entity or a self-managed entity.

src/main/java/io/adminshell/aas/v3/model/HasDataSpecification.java

Lines changed: 2 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414
* template defines the additional attributes an element may or shall have. The data specifications
1515
* used are explicitly specified with their id. Constraint AASd-050: If the DataSpecificationContent
1616
* DataSpecificationIEC61360 is used for an element then the value of
17-
* hasDataSpecification/dataSpecification shall contain the global reference to the IRI of the
17+
* hasDataSpecification/dataSpecification shall contain the global reference to the Iri of the
1818
* corresponding data specification template
1919
* https://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/2/0.
2020
*/
2121
@KnownSubtypes({
22+
@KnownSubtypes.Type(value = DefaultHasDataSpecification.class),
2223
@KnownSubtypes.Type(value = Submodel.class),
2324
@KnownSubtypes.Type(value = AdministrativeInformation.class),
2425
@KnownSubtypes.Type(value = Asset.class),
@@ -29,56 +30,6 @@
2930
})
3031
public interface HasDataSpecification {
3132

32-
/**
33-
* Global reference to the data specification template used by the element. Reference points to a
34-
* Data Specification.
35-
*
36-
* Reference must point to a Data Specification.
37-
*
38-
* More information under
39-
* https://admin-shell.io/aas/3/0/RC01/EmbeddedDataSpecification/dataSpecification
40-
*
41-
* @return Returns the List of References for the property dataSpecifications.
42-
*/
43-
@IRI("https://admin-shell.io/aas/3/0/RC01/EmbeddedDataSpecification/dataSpecification")
44-
List<Reference> getDataSpecifications();
45-
46-
/**
47-
* Global reference to the data specification template used by the element. Reference points to a
48-
* Data Specification.
49-
*
50-
* Reference must point to a Data Specification.
51-
*
52-
* More information under
53-
* https://admin-shell.io/aas/3/0/RC01/EmbeddedDataSpecification/dataSpecification
54-
*
55-
* @param dataSpecifications desired value for the property dataSpecifications.
56-
*/
57-
void setDataSpecifications(List<Reference> dataSpecifications);
58-
59-
/**
60-
* Property links to a Data Specification Content, which contains the formalized definitions
61-
* specifying this Data Specification.
62-
*
63-
* More information under
64-
* https://admin-shell.io/aas/3/0/RC01/EmbeddedDataSpecification/dataSpecificationContent
65-
*
66-
* @return Returns the List of DataSpecificationContents for the property dataSpecificationContents.
67-
*/
68-
@IRI("https://admin-shell.io/aas/3/0/RC01/EmbeddedDataSpecification/dataSpecificationContent")
69-
List<DataSpecificationContent> getDataSpecificationContents();
70-
71-
/**
72-
* Property links to a Data Specification Content, which contains the formalized definitions
73-
* specifying this Data Specification.
74-
*
75-
* More information under
76-
* https://admin-shell.io/aas/3/0/RC01/EmbeddedDataSpecification/dataSpecificationContent
77-
*
78-
* @param dataSpecificationContents desired value for the property dataSpecificationContents.
79-
*/
80-
void setDataSpecificationContents(List<DataSpecificationContent> dataSpecificationContents);
81-
8233
/**
8334
* Link to the included description of the Data Specification.
8435
*

src/main/java/io/adminshell/aas/v3/model/Identifier.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public interface Identifier {
3636
void setIdentifier(String identifier);
3737

3838
/**
39-
* Type of the Identifier, e.g. IRI, IRDI etc. The supported Identifier types are defined in the
39+
* Type of the Identifier, e.g. Iri, Irdi etc. The supported Identifier types are defined in the
4040
* enumeration 'IdentifierType'.
4141
*
4242
* More information under https://admin-shell.io/aas/3/0/RC01/Identifier/idType
@@ -47,7 +47,7 @@ public interface Identifier {
4747
IdentifierType getIdType();
4848

4949
/**
50-
* Type of the Identifier, e.g. IRI, IRDI etc. The supported Identifier types are defined in the
50+
* Type of the Identifier, e.g. Iri, Irdi etc. The supported Identifier types are defined in the
5151
* enumeration 'IdentifierType'.
5252
*
5353
* More information under https://admin-shell.io/aas/3/0/RC01/Identifier/idType

src/main/java/io/adminshell/aas/v3/model/Key.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public interface Key {
7373
void setType(KeyElements type);
7474

7575
/**
76-
* The key value, for example an IRDI if the idType=IRDI.
76+
* The key value, for example an IRDI if the idType=Irdi.
7777
*
7878
* More information under https://admin-shell.io/aas/3/0/RC01/Key/value
7979
*
@@ -83,7 +83,7 @@ public interface Key {
8383
String getValue();
8484

8585
/**
86-
* The key value, for example an IRDI if the idType=IRDI.
86+
* The key value, for example an IRDI if the idType=Irdi.
8787
*
8888
* More information under https://admin-shell.io/aas/3/0/RC01/Key/value
8989
*

src/main/java/io/adminshell/aas/v3/model/KeyElements.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public enum KeyElements {
101101

102102
/**
103103
*/
104-
RELATIONSHIPT_ELEMENT,
104+
RELATIONSHIP_ELEMENT,
105105

106106
/**
107107
* Submodel Element is abstract, i.e. if a key uses 'SubmodelElement' the reference may be a

src/main/java/io/adminshell/aas/v3/model/KeyType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ public enum KeyType {
3636
/**
3737
* idShort of a referable element
3838
*/
39-
IDSHORT;
39+
ID_SHORT;
4040

4141
}

src/main/java/io/adminshell/aas/v3/model/LevelType.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@
1515
public enum LevelType {
1616

1717
/**
18-
* MAX according to IEC 61360 as an Identifier scheme for maximal levels.
18+
* Max according to IEC 61360 as an Identifier scheme for maximal levels.
1919
*/
2020
MAX,
2121

2222
/**
23-
* MIN according to IEC 61360 as an Identifier scheme for minimal levels.
23+
* Min according to IEC 61360 as an Identifier scheme for minimal levels.
2424
*/
2525
MIN,
2626

2727
/**
28-
* NOM according to IEC 61360 as an Identifier scheme for nominal levels.
28+
* Nom according to IEC 61360 as an Identifier scheme for nominal levels.
2929
*/
3030
NOM,
3131

3232
/**
33-
* TYP according to IEC 61360 as an Identifier scheme for typical levels.
33+
* Typ according to IEC 61360 as an Identifier scheme for typical levels.
3434
*/
3535
TYP;
3636

src/main/java/io/adminshell/aas/v3/model/LocalKeyType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ public enum LocalKeyType {
2121
/**
2222
* idShort of a referable element
2323
*/
24-
IDSHORT;
24+
ID_SHORT;
2525

2626
}

0 commit comments

Comments
 (0)