forked from bliksemlabs/ojp-java-model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbindings.xjb
32 lines (29 loc) · 1.66 KB
/
bindings.xjb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<jxb:bindings xmlns:jxb="https://jakarta.ee/xml/ns/jaxb"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
jxb:version="3.0"
jxb:extensionBindingPrefixes="xjc">
<jxb:bindings>
<jxb:globalBindings underscoreBinding="asCharInWord">
<xjc:javaType name="org.rutebanken.time.XmlDateTime" xmlType="xs:dateTime" adapter="org.rutebanken.util.XmlDateTimeAdapter" />
<!--<xjc:javaType name="java.time.ZonedDateTime" xmlType="xs:dateTime" adapter="org.rutebanken.util.ZonedDateTimeISO8601XmlAdapter" />-->
<xjc:javaType name="java.time.LocalTime" xmlType="xs:time" adapter="org.rutebanken.util.LocalTimeISO8601XmlAdapter" />
<xjc:javaType name="java.time.LocalDateTime" xmlType="xs:date" adapter="org.rutebanken.util.LocalDateXmlAdapter" />
<xjc:javaType name="java.time.Duration" xmlType="xs:duration" adapter="org.rutebanken.util.DurationXmlAdapter" />
</jxb:globalBindings>
</jxb:bindings>
<!-- See the script bin/version_updater.sh It updates version in schema locations-->
<jxb:bindings schemaLocation="./src/main/resources/xsd/2.0/OJP.xsd">
<jxb:schemaBindings>
<jxb:package name="de.vdv.ojp20" />
</jxb:schemaBindings>
</jxb:bindings>
<!-- the netex-java-model already defines the siri types in uk.org.siri which leads to clashes.
therefore we put the generate siri types into a sub-package of de.vdv.ojp -->
<jxb:bindings schemaLocation="./src/main/resources/xsd/2.0/siri/xsd/siri_model/siri_all.xsd">
<jxb:schemaBindings>
<jxb:package name="de.vdv.ojp20.siri" />
</jxb:schemaBindings>
</jxb:bindings>
</jxb:bindings>