68
68
69
69
import com .google .common .collect .ImmutableMap ;
70
70
71
+ import io .openmanufacturing .sds .characteristic .Code ;
72
+ import io .openmanufacturing .sds .characteristic .Collection ;
73
+ import io .openmanufacturing .sds .characteristic .Duration ;
74
+ import io .openmanufacturing .sds .characteristic .Either ;
75
+ import io .openmanufacturing .sds .characteristic .Enumeration ;
76
+ import io .openmanufacturing .sds .characteristic .Measurement ;
77
+ import io .openmanufacturing .sds .characteristic .Quantifiable ;
78
+ import io .openmanufacturing .sds .characteristic .SingleEntity ;
79
+ import io .openmanufacturing .sds .characteristic .SortedSet ;
80
+ import io .openmanufacturing .sds .characteristic .State ;
81
+ import io .openmanufacturing .sds .characteristic .StructuredValue ;
82
+ import io .openmanufacturing .sds .characteristic .Trait ;
71
83
import io .openmanufacturing .sds .metamodel .Aspect ;
72
- import io .openmanufacturing .sds .metamodel .Base ;
73
84
import io .openmanufacturing .sds .metamodel .Characteristic ;
74
- import io .openmanufacturing .sds .metamodel .Code ;
75
- import io .openmanufacturing .sds .metamodel .Collection ;
76
- import io .openmanufacturing .sds .metamodel .Duration ;
77
- import io .openmanufacturing .sds .metamodel .Either ;
78
85
import io .openmanufacturing .sds .metamodel .Entity ;
79
- import io .openmanufacturing .sds .metamodel .Enumeration ;
80
- import io .openmanufacturing .sds .metamodel .IsDescribed ;
81
- import io .openmanufacturing .sds .metamodel .Measurement ;
86
+ import io .openmanufacturing .sds .metamodel .ModelElement ;
87
+ import io .openmanufacturing .sds .metamodel .NamedElement ;
82
88
import io .openmanufacturing .sds .metamodel .Property ;
83
- import io .openmanufacturing .sds .metamodel .Quantifiable ;
84
- import io .openmanufacturing .sds .metamodel .SingleEntity ;
85
- import io .openmanufacturing .sds .metamodel .SortedSet ;
86
- import io .openmanufacturing .sds .metamodel .State ;
87
- import io .openmanufacturing .sds .metamodel .StructuredValue ;
88
- import io .openmanufacturing .sds .metamodel .Trait ;
89
89
import io .openmanufacturing .sds .metamodel .Type ;
90
90
import io .openmanufacturing .sds .metamodel .visitor .AspectVisitor ;
91
91
@@ -171,7 +171,7 @@ private interface SubmodelElementBuilder {
171
171
private final Set <Property > recursiveProperty = new HashSet <>();
172
172
173
173
@ Override
174
- public Environment visitBase ( final Base base , final Context context ) {
174
+ public Environment visitBase ( final ModelElement base , final Context context ) {
175
175
176
176
return context .getEnvironment ();
177
177
}
@@ -295,7 +295,7 @@ private org.eclipse.digitaltwin.aas4j.v3.model.Property mapToAasProperty( final
295
295
.build ();
296
296
}
297
297
298
- private String extractIdentifier ( final IsDescribed element ) {
298
+ private String extractIdentifier ( final NamedElement element ) {
299
299
return determineIdentifierFor ( element );
300
300
}
301
301
@@ -365,7 +365,7 @@ private Reference buildReferenceToConceptDescription( final Property property )
365
365
return new DefaultReference .Builder ().keys ( key ).build ();
366
366
}
367
367
368
- private String determineIdentifierFor ( final IsDescribed isDescribed ) {
368
+ private String determineIdentifierFor ( final NamedElement isDescribed ) {
369
369
if ( isDescribed .getAspectModelUrn ().isPresent () ) {
370
370
return isDescribed .getAspectModelUrn ().get ().toString ();
371
371
} else {
@@ -497,7 +497,7 @@ public Environment visitCollection(
497
497
498
498
@ Override
499
499
public Environment visitList (
500
- final io .openmanufacturing .sds .metamodel .List list , final Context context ) {
500
+ final io .openmanufacturing .sds .characteristic .List list , final Context context ) {
501
501
final SubmodelElementBuilder builder =
502
502
( property ) ->
503
503
new DefaultSubmodelElementList .Builder ()
@@ -512,7 +512,7 @@ public Environment visitList(
512
512
513
513
@ Override
514
514
public Environment visitSet (
515
- final io .openmanufacturing .sds .metamodel .Set set , final Context context ) {
515
+ final io .openmanufacturing .sds .characteristic .Set set , final Context context ) {
516
516
final SubmodelElementBuilder builder =
517
517
( property ) ->
518
518
new DefaultSubmodelElementCollection .Builder () //TODO according to the standard document this should be SubmodelEleementStruct. However, this type is not available in AAS4J
0 commit comments