Skip to content

Commit 4ddbc01

Browse files
Configure SIRI namespace
1 parent ee5cbd5 commit 4ddbc01

File tree

1 file changed

+26
-19
lines changed

1 file changed

+26
-19
lines changed

bindings.xjb

+26-19
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,32 @@
11
<jxb:bindings xmlns:jxb="https://jakarta.ee/xml/ns/jaxb"
2-
xmlns:xs="http://www.w3.org/2001/XMLSchema"
3-
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
4-
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
5-
jxb:version="3.0"
6-
jxb:extensionBindingPrefixes="xjc">
2+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
3+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
4+
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
5+
jxb:version="3.0"
6+
jxb:extensionBindingPrefixes="xjc">
77

8-
<jxb:bindings>
9-
<jxb:globalBindings underscoreBinding="asCharInWord">
10-
<xjc:javaType name="java.time.LocalDateTime" xmlType="xs:dateTime" adapter="org.rutebanken.util.LocalDateTimeISO8601XmlAdapter" />
11-
<xjc:javaType name="java.time.ZonedDateTime" xmlType="xs:dateTime" adapter="org.rutebanken.util.ZonedDateTimeISO8601XmlAdapter" />
12-
<xjc:javaType name="java.time.LocalTime" xmlType="xs:time" adapter="org.rutebanken.util.LocalTimeISO8601XmlAdapter" />
13-
<xjc:javaType name="java.time.LocalDateTime" xmlType="xs:date" adapter="org.rutebanken.util.LocalDateXmlAdapter" />
14-
<xjc:javaType name="java.time.Duration" xmlType="xs:duration" adapter="org.rutebanken.util.DurationXmlAdapter" />
8+
<jxb:bindings>
9+
<jxb:globalBindings underscoreBinding="asCharInWord">
10+
<xjc:javaType name="java.time.LocalDateTime" xmlType="xs:dateTime" adapter="org.rutebanken.util.LocalDateTimeISO8601XmlAdapter" />
11+
<xjc:javaType name="java.time.ZonedDateTime" xmlType="xs:dateTime" adapter="org.rutebanken.util.ZonedDateTimeISO8601XmlAdapter" />
12+
<xjc:javaType name="java.time.LocalTime" xmlType="xs:time" adapter="org.rutebanken.util.LocalTimeISO8601XmlAdapter" />
13+
<xjc:javaType name="java.time.LocalDateTime" xmlType="xs:date" adapter="org.rutebanken.util.LocalDateXmlAdapter" />
14+
<xjc:javaType name="java.time.Duration" xmlType="xs:duration" adapter="org.rutebanken.util.DurationXmlAdapter" />
1515
</jxb:globalBindings>
16-
</jxb:bindings>
16+
</jxb:bindings>
1717

18-
<!-- See the script bin/version_updater.sh It updates version in schema locations-->
18+
<!-- See the script bin/version_updater.sh It updates version in schema locations-->
1919

20-
<jxb:bindings schemaLocation="./src/main/resources/xsd/2.0/OJP.xsd">
21-
<jxb:schemaBindings>
22-
<jxb:package name="de.vdv.ojp20.model" />
23-
</jxb:schemaBindings>
24-
</jxb:bindings>
20+
<jxb:bindings schemaLocation="./src/main/resources/xsd/2.0/OJP.xsd">
21+
<jxb:schemaBindings>
22+
<jxb:package name="de.vdv.ojp20" />
23+
</jxb:schemaBindings>
24+
</jxb:bindings>
25+
<!-- the netex-java-model already defines the siri types in uk.org.siri which leads to clashes.
26+
therefore we put the generate siri types into a sub-package of de.vdv.ojp -->
27+
<jxb:bindings schemaLocation="./src/main/resources/xsd/2.0/siri/xsd/siri_model/siri_all.xsd">
28+
<jxb:schemaBindings>
29+
<jxb:package name="de.vdv.ojp20.siri" />
30+
</jxb:schemaBindings>
31+
</jxb:bindings>
2532
</jxb:bindings>

0 commit comments

Comments
 (0)