You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/sds-aspect-model-aas-generator/src/main/java/io/openmanufacturing/sds/aspectmodel/aas/AspectModelAASVisitor.java
+22-12Lines changed: 22 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -248,16 +248,17 @@ private Optional<SubmodelElement> mapText( final Property property, final Contex
248
248
// property will be excluded from generation.
249
249
recursiveProperty.remove( property );
250
250
if ( property.isOptional() ) {
251
-
LOG.warn( String.format( "Having a recursive Property %s which is optional. Will be excluded from AAS mapping.", property ) );
251
+
LOG.warn( String.format( "Having a recursive property %s which is optional. Will be excluded from AAS mapping.", property ) );
252
252
} else {
253
-
LOG.error( String.format( "Having a recursive Property: %s which is not optional is not valid. Check the model. Property will be excluded from AAS mapping.", property ) );
253
+
LOG.error( String.format( "Having a recursive property: %s which is not optional is not valid. Check the model. Property will be excluded from AAS mapping.", property ) );
254
+
LOG.error( String.format( "Having a recursive property: %s which is not optional is not valid. Check the model. Property will be excluded from AAS mapping.", property ) );
254
255
}
255
256
returndefaultResultForProperty;
256
257
}
257
258
recursiveProperty.add( property );
258
259
259
260
if ( property.getCharacteristic().isEmpty() || property.isAbstract() ) {
260
-
LOG.warn( String.format( "Having an Abstract Property. Will be excluded from AAS mapping." ) );
261
+
LOG.warn( "Having an abstract property. Will be excluded from AAS mapping." );
261
262
returnOptional.empty();
262
263
}
263
264
@@ -278,7 +279,7 @@ private SubmodelElement decideOnMapping( final Property property, final Context
Copy file name to clipboardExpand all lines: core/sds-aspect-model-aas-generator/src/test/java/io/openmanufacturing/sds/aspectmodel/aas/AspectModelAASGeneratorTest.java
assertTrue( elementCollection.getValue().stream().anyMatch( x -> testValues.contains( x.getIdShort() ) ), "Neither left nor right entity contained." );
0 commit comments