Skip to content

Commit dcf7d11

Browse files
committed
Working on #24.
1 parent 581c06f commit dcf7d11

File tree

4 files changed

+73
-0
lines changed

4 files changed

+73
-0
lines changed

tests/issues/src/main/resources/binding.xjb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
either expressed or implied, of the FreeBSD Project.
2929

3030
-->
31+
<!DOCTYPE jaxb:bindings [
32+
<!ENTITY gh24type SYSTEM "gh24type.xml">
33+
]>
3134
<jaxb:bindings
3235
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
3336
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
@@ -51,5 +54,6 @@
5154
<annox:annotate annox:class="java.lang.Deprecated" />
5255
</annox:annotate>
5356
</jaxb:bindings>
57+
&gh24type;
5458
</jaxb:bindings>
5559
</jaxb:bindings>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!--
2+
3+
Copyright © 2005-2015, Alexey Valikov
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
2. Redistributions in binary form must reproduce the above copyright notice,
12+
this list of conditions and the following disclaimer in the documentation
13+
and/or other materials provided with the distribution.
14+
15+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
19+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25+
26+
The views and conclusions contained in the software and documentation are those
27+
of the authors and should not be interpreted as representing official policies,
28+
either expressed or implied, of the FreeBSD Project.
29+
30+
-->
31+
<jaxb:bindings node="xsd:complexType[@name='gh24Type']">
32+
<annox:annotate>@javax.annotation.Generated({"jaxb2-annotate-plugin"})</annox:annotate>
33+
</jaxb:bindings>

tests/issues/src/main/resources/schema.xsd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,12 @@
5454
<xs:element name="x" minOccurs="0"/>
5555
</xs:sequence>
5656
</xs:complexType>
57+
58+
<xs:complexType name="gh24Type">
59+
<xs:simpleContent>
60+
<xs:extension base="xs:string">
61+
<xs:attribute name="attr" type="xs:normalizedString"/>
62+
</xs:extension>
63+
</xs:simpleContent>
64+
</xs:complexType>
5765
</xs:schema>

tests/issues/src/test/java/org/jvnet/jaxb2_commons/tests/issues/tests/RunPlugins.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
/**
2+
* Copyright © 2005-2015, Alexey Valikov
3+
* All rights reserved.
4+
*
5+
* Redistribution and use in source and binary forms, with or without
6+
* modification, are permitted provided that the following conditions are met:
7+
*
8+
* 1. Redistributions of source code must retain the above copyright notice, this
9+
* list of conditions and the following disclaimer.
10+
* 2. Redistributions in binary form must reproduce the above copyright notice,
11+
* this list of conditions and the following disclaimer in the documentation
12+
* and/or other materials provided with the distribution.
13+
*
14+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
15+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
18+
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19+
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20+
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
21+
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23+
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24+
*
25+
* The views and conclusions contained in the software and documentation are those
26+
* of the authors and should not be interpreted as representing official policies,
27+
* either expressed or implied, of the FreeBSD Project.
28+
*/
129
package org.jvnet.jaxb2_commons.tests.issues.tests;
230

331
import java.io.File;

0 commit comments

Comments
 (0)