File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed
tests/one/src/main/resources Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
2
<xs : schema xmlns : xs =" http://www.w3.org/2001/XMLSchema"
3
3
xmlns:jaxb=" http://java.sun.com/xml/ns/jaxb"
4
+ xmlns:annox=" http://annox.dev.java.net"
5
+ xmlns:xjc=" http://java.sun.com/xml/ns/jaxb/xjc"
6
+ jaxb:extensionBindingPrefixes=" annox xjc"
4
7
jaxb:version=" 1.0" >
5
8
6
9
<xs : annotation >
7
10
<xs : appinfo >
8
11
<jaxb : globalBindings choiceContentProperty =" true" generateIsSetMethod =" true" generateElementClass =" true" >
9
- <!-- xjc:noValidator />
10
- <xjc:noValidatingUnmarshaller /-->
12
+ <xjc : javaType name =" java.lang.Boolean" xmlType =" xs:boolean" adapter =" org.jvnet.jaxb2_commons.tests.one.CustomBooleanAdapter" />
11
13
</jaxb : globalBindings >
12
14
<jaxb : schemaBindings >
13
15
<jaxb : package name =" org.jvnet.jaxb2_commons.tests.one" />
21
23
<xs : element name =" annotatedAdaptedProperty" type =" xs:string" minOccurs =" 0" />
22
24
</xs : sequence >
23
25
</xs : complexType >
26
+
27
+ <xs : complexType name =" javaTypeExample" >
28
+ <xs : sequence >
29
+ <xs : element name =" customBooleanProperty" type =" xs:boolean" minOccurs =" 0" >
30
+ <xs : annotation >
31
+ <xs : appinfo >
32
+ <annox : annotate target =" field" >@javax.xml.bind.annotation.XmlElement(type=java.lang.Boolean.class)</annox : annotate >
33
+ <annox : annotate target =" field" >@javax.xml.bind.annotation.XmlSchemaType(name="boolean")</annox : annotate >
34
+ </xs : appinfo >
35
+ </xs : annotation >
36
+ </xs : element >
37
+ </xs : sequence >
38
+ </xs : complexType >
39
+
40
+
24
41
</xs : schema >
You can’t perform that action at this time.
0 commit comments