Skip to content

Commit f050135

Browse files
committed
1 parent e285075 commit f050135

File tree

3 files changed

+135
-1
lines changed

3 files changed

+135
-1
lines changed

Diff for: issues/issue-83/bindings/bindings.xjb

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<jaxb:bindings version="1.0" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
2+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
3+
xmlns:jsonix="http://jsonix.highsource.org/customizations"
4+
jaxb:extensionBindingPrefixes="jsonix">
5+
6+
<jaxb:bindings schemaLocation="../schemas/ground.xsd" node="/xs:schema">
7+
<jsonix:module name="ground">
8+
<jsonix:mapping package="generated"/>
9+
<jsonix:mapping package="urban"/>
10+
<jsonix:mapping package="rural"/>
11+
</jsonix:module>
12+
</jaxb:bindings>
13+
14+
</jaxb:bindings>

Diff for: issues/issue-83/mappings/ground.js

+120
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
var ground_Module_Factory = function () {
2+
var generated = {
3+
name: 'generated',
4+
dependencies: ['rural', 'urban'],
5+
typeInfos: [{
6+
localName: 'Root.House',
7+
typeName: null,
8+
propertyInfos: [{
9+
name: 'id',
10+
elementName: {
11+
localPart: 'id'
12+
},
13+
typeInfo: 'Int'
14+
}, {
15+
name: 'localisation',
16+
elementName: {
17+
localPart: 'localisation'
18+
},
19+
typeInfo: 'urban.LocaType'
20+
}]
21+
}, {
22+
localName: 'Root.Garden',
23+
typeName: null,
24+
propertyInfos: [{
25+
name: 'id',
26+
elementName: {
27+
localPart: 'id'
28+
},
29+
typeInfo: 'Int'
30+
}, {
31+
name: 'localisation',
32+
elementName: {
33+
localPart: 'localisation'
34+
},
35+
typeInfo: 'rural.LocaType'
36+
}]
37+
}, {
38+
localName: 'Root',
39+
typeName: null,
40+
propertyInfos: [{
41+
name: 'house',
42+
elementName: {
43+
localPart: 'House'
44+
},
45+
typeInfo: '.Root.House'
46+
}, {
47+
name: 'garden',
48+
elementName: {
49+
localPart: 'Garden'
50+
},
51+
typeInfo: '.Root.Garden'
52+
}]
53+
}],
54+
elementInfos: [{
55+
elementName: {
56+
localPart: 'Root'
57+
},
58+
typeInfo: '.Root'
59+
}]
60+
};
61+
var urban = {
62+
name: 'urban',
63+
defaultElementNamespaceURI: 'urban',
64+
typeInfos: [{
65+
localName: 'LocaType',
66+
propertyInfos: [{
67+
name: 'name'
68+
}, {
69+
name: 'oldName'
70+
}, {
71+
name: 'streetName'
72+
}]
73+
}],
74+
elementInfos: [{
75+
elementName: 'localisation',
76+
typeInfo: '.LocaType'
77+
}]
78+
};
79+
var rural = {
80+
name: 'rural',
81+
defaultElementNamespaceURI: 'rural',
82+
typeInfos: [{
83+
localName: 'LocaType',
84+
propertyInfos: [{
85+
name: 'name'
86+
}, {
87+
name: 'swingCount',
88+
typeInfo: 'Int'
89+
}, {
90+
name: 'kennelCount',
91+
typeInfo: 'Int'
92+
}]
93+
}],
94+
elementInfos: [{
95+
elementName: 'localisation',
96+
typeInfo: '.LocaType'
97+
}]
98+
};
99+
return {
100+
generated: generated,
101+
urban: urban,
102+
rural: rural
103+
};
104+
};
105+
if (typeof define === 'function' && define.amd) {
106+
define([], ground_Module_Factory);
107+
}
108+
else {
109+
var ground_Module = ground_Module_Factory();
110+
if (typeof module !== 'undefined' && module.exports) {
111+
module.exports.generated = ground_Module.generated;
112+
module.exports.urban = ground_Module.urban;
113+
module.exports.rural = ground_Module.rural;
114+
}
115+
else {
116+
var generated = ground_Module.generated;
117+
var urban = ground_Module.urban;
118+
var rural = ground_Module.rural;
119+
}
120+
}

Diff for: issues/issue-83/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
},
1616
"scripts": {
1717
"test": "nodeunit tests/tests.js",
18-
"prepublish" : "java -jar node_modules/jsonix-schema-compiler/lib/jsonix-schema-compiler-full.jar -d mappings schemas -p ground"
18+
"prepublish" : "java -jar node_modules/jsonix-schema-compiler/lib/jsonix-schema-compiler-full.jar -d mappings schemas -b bindings"
1919
}
2020
}

0 commit comments

Comments
 (0)