17
17
import org .apache .jena .rdf .model .Resource ;
18
18
import org .apache .jena .rdf .model .ResourceFactory ;
19
19
import org .apache .jena .vocabulary .XSD ;
20
- import org .eclipse .digitaltwin .aas4j .v3 .model .DataTypeDefXsd ;
20
+ import org .eclipse .digitaltwin .aas4j .v3 .model .DataTypeDefXSD ;
21
21
import org .eclipse .digitaltwin .aas4j .v3 .model .Key ;
22
22
import org .eclipse .digitaltwin .aas4j .v3 .model .KeyTypes ;
23
23
import org .eclipse .digitaltwin .aas4j .v3 .model .Reference ;
@@ -42,44 +42,42 @@ public interface PropertyMapper<T extends SubmodelElement> {
42
42
43
43
static final String UNKNOWN_EXAMPLE = UNKNOWN_TYPE ;
44
44
45
- static final LangStringMapper LANG_STRING_MAPPER = new LangStringMapper ();
46
-
47
45
/**
48
- * Maps Aspect types to DataTypeDefXsd Schema types, with no explicit mapping defaulting to
46
+ * Maps Aspect types to DataTypeDefXSD Schema types, with no explicit mapping defaulting to
49
47
* string
50
48
*/
51
- static final Map <Resource , DataTypeDefXsd > AAS_XSD_TYPE_MAP =
52
- ImmutableMap .<Resource , DataTypeDefXsd > builder ()
53
- .put ( XSD .anyURI , DataTypeDefXsd .ANY_URI )
54
- .put ( XSD .yearMonthDuration , DataTypeDefXsd . YEAR_MONTH_DURATION )
55
- .put ( XSD .xboolean , DataTypeDefXsd .BOOLEAN )
56
- .put ( XSD .xbyte , DataTypeDefXsd .BYTE )
57
- .put ( XSD .date , DataTypeDefXsd .DATE )
58
- .put ( XSD .dateTime , DataTypeDefXsd .DATE_TIME )
59
- .put ( XSD .dateTimeStamp , DataTypeDefXsd . DATE_TIME_STAMP )
60
- .put ( XSD .dayTimeDuration , DataTypeDefXsd . DAY_TIME_DURATION )
61
- .put ( XSD .decimal , DataTypeDefXsd .DECIMAL )
62
- .put ( XSD .xdouble , DataTypeDefXsd .DOUBLE )
63
- .put ( XSD .duration , DataTypeDefXsd .DURATION )
64
- .put ( XSD .xfloat , DataTypeDefXsd .FLOAT )
65
- .put ( XSD .gMonth , DataTypeDefXsd .GMONTH )
66
- .put ( XSD .gMonthDay , DataTypeDefXsd .GMONTH_DAY )
67
- .put ( XSD .gYear , DataTypeDefXsd .GYEAR )
68
- .put ( XSD .gYearMonth , DataTypeDefXsd .GYEAR_MONTH )
69
- .put ( XSD .hexBinary , DataTypeDefXsd .HEX_BINARY )
70
- .put ( XSD .xint , DataTypeDefXsd .INT )
71
- .put ( XSD .integer , DataTypeDefXsd .INTEGER )
72
- .put ( XSD .xlong , DataTypeDefXsd .LONG )
73
- .put ( XSD .negativeInteger , DataTypeDefXsd .NEGATIVE_INTEGER )
74
- .put ( XSD .nonNegativeInteger , DataTypeDefXsd .NON_NEGATIVE_INTEGER )
75
- .put ( XSD .positiveInteger , DataTypeDefXsd .POSITIVE_INTEGER )
76
- .put ( XSD .xshort , DataTypeDefXsd .SHORT )
77
- .put ( XSD .normalizedString , DataTypeDefXsd .STRING )
78
- .put ( XSD .time , DataTypeDefXsd .TIME )
79
- .put ( XSD .unsignedByte , DataTypeDefXsd .UNSIGNED_BYTE )
80
- .put ( XSD .unsignedInt , DataTypeDefXsd .UNSIGNED_INT )
81
- .put ( XSD .unsignedLong , DataTypeDefXsd .UNSIGNED_LONG )
82
- .put ( XSD .unsignedShort , DataTypeDefXsd .UNSIGNED_SHORT )
49
+ static final Map <Resource , DataTypeDefXSD > AAS_XSD_TYPE_MAP =
50
+ ImmutableMap .<Resource , DataTypeDefXSD > builder ()
51
+ .put ( XSD .anyURI , DataTypeDefXSD .ANY_URI )
52
+ .put ( XSD .yearMonthDuration , DataTypeDefXSD . DURATION )
53
+ .put ( XSD .xboolean , DataTypeDefXSD .BOOLEAN )
54
+ .put ( XSD .xbyte , DataTypeDefXSD .BYTE )
55
+ .put ( XSD .date , DataTypeDefXSD .DATE )
56
+ .put ( XSD .dateTime , DataTypeDefXSD .DATE_TIME )
57
+ .put ( XSD .dateTimeStamp , DataTypeDefXSD . DATE_TIME )
58
+ .put ( XSD .dayTimeDuration , DataTypeDefXSD . DURATION )
59
+ .put ( XSD .decimal , DataTypeDefXSD .DECIMAL )
60
+ .put ( XSD .xdouble , DataTypeDefXSD .DOUBLE )
61
+ .put ( XSD .duration , DataTypeDefXSD .DURATION )
62
+ .put ( XSD .xfloat , DataTypeDefXSD .FLOAT )
63
+ .put ( XSD .gMonth , DataTypeDefXSD .GMONTH )
64
+ .put ( XSD .gMonthDay , DataTypeDefXSD .GMONTH_DAY )
65
+ .put ( XSD .gYear , DataTypeDefXSD .GYEAR )
66
+ .put ( XSD .gYearMonth , DataTypeDefXSD .GYEAR_MONTH )
67
+ .put ( XSD .hexBinary , DataTypeDefXSD .HEX_BINARY )
68
+ .put ( XSD .xint , DataTypeDefXSD .INT )
69
+ .put ( XSD .integer , DataTypeDefXSD .INTEGER )
70
+ .put ( XSD .xlong , DataTypeDefXSD .LONG )
71
+ .put ( XSD .negativeInteger , DataTypeDefXSD .NEGATIVE_INTEGER )
72
+ .put ( XSD .nonNegativeInteger , DataTypeDefXSD .NON_NEGATIVE_INTEGER )
73
+ .put ( XSD .positiveInteger , DataTypeDefXSD .POSITIVE_INTEGER )
74
+ .put ( XSD .xshort , DataTypeDefXSD .SHORT )
75
+ .put ( XSD .normalizedString , DataTypeDefXSD .STRING )
76
+ .put ( XSD .time , DataTypeDefXSD .TIME )
77
+ .put ( XSD .unsignedByte , DataTypeDefXSD .UNSIGNED_BYTE )
78
+ .put ( XSD .unsignedInt , DataTypeDefXSD .UNSIGNED_INT )
79
+ .put ( XSD .unsignedLong , DataTypeDefXSD .UNSIGNED_LONG )
80
+ .put ( XSD .unsignedShort , DataTypeDefXSD .UNSIGNED_SHORT )
83
81
.build ();
84
82
85
83
/**
@@ -105,14 +103,14 @@ default boolean canHandle( final Property property ) {
105
103
}
106
104
107
105
/**
108
- * Maps the given URN to a {@link DataTypeDefXsd } schema type.
106
+ * Maps the given URN to a {@link DataTypeDefXSD } schema type.
109
107
*
110
108
* @param urn the URN to map
111
- * @return the {@code DataTypeDefXsd } for the given URN
109
+ * @return the {@code DataTypeDefXSD } for the given URN
112
110
*/
113
- default DataTypeDefXsd mapAASXSDataType ( final String urn ) {
111
+ default DataTypeDefXSD mapAASXSDataType ( final String urn ) {
114
112
final Resource resource = ResourceFactory .createResource ( urn );
115
- return AAS_XSD_TYPE_MAP .getOrDefault ( resource , DataTypeDefXsd .STRING );
113
+ return AAS_XSD_TYPE_MAP .getOrDefault ( resource , DataTypeDefXSD .STRING );
116
114
}
117
115
118
116
/**
0 commit comments