Codebase list jaxb-api / af3e569
New upstream version 2.3.1 Emmanuel Bourg 5 years ago
22 changed file(s) with 750 addition(s) and 642 deletion(s). Raw diff Collapse all Expand all
0 /target/
0 /target/
1 /jaxb-api/target/
00 <?xml version="1.0" encoding="UTF-8"?>
1
2 <!--
3
4 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
5
6 Copyright (c) 2017-2018 Oracle and/or its affiliates. All rights reserved.
7
8 The contents of this file are subject to the terms of either the GNU
9 General Public License Version 2 only ("GPL") or the Common Development
10 and Distribution License("CDDL") (collectively, the "License"). You
11 may not use this file except in compliance with the License. You can
12 obtain a copy of the License at
13 https://oss.oracle.com/licenses/CDDL+GPL-1.1
14 or LICENSE.txt. See the License for the specific
15 language governing permissions and limitations under the License.
16
17 When distributing the software, include this License Header Notice in each
18 file and include the License file at LICENSE.txt.
19
20 GPL Classpath Exception:
21 Oracle designates this particular file as subject to the "Classpath"
22 exception as provided by Oracle in the GPL Version 2 section of the License
23 file that accompanied this code.
24
25 Modifications:
26 If applicable, add the following below the License Header, with the fields
27 enclosed by brackets [] replaced by your own identifying information:
28 "Portions Copyright [year] [name of copyright owner]"
29
30 Contributor(s):
31 If you wish your version of this file to be governed by only the CDDL or
32 only the GPL Version 2, indicate your decision by adding "[Contributor]
33 elects to include this software in this distribution under the [CDDL or GPL
34 Version 2] license." If you don't indicate a single choice of license, a
35 recipient has the option to distribute your version of this file under
36 either the CDDL, the GPL Version 2 or to extend the choice of license to
37 its licensees as provided above. However, if you add GPL Version 2 code
38 and therefore, elected the GPL Version 2 license, then the option applies
39 only if the new code is made subject to such option by the copyright
40 holder.
41
42 -->
43
144 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
245 <parent>
346 <artifactId>jaxb-api-parent</artifactId>
447 <groupId>javax.xml.bind</groupId>
5 <version>2.3.0</version>
48 <version>2.3.1</version>
649 </parent>
750 <modelVersion>4.0.0</modelVersion>
851
952 <artifactId>jaxb-api</artifactId>
1053 <packaging>jar</packaging>
1154
55 <dependencies>
56 <dependency>
57 <groupId>javax.activation</groupId>
58 <artifactId>javax.activation-api</artifactId>
59 </dependency>
60 </dependencies>
61
1262 <build>
1363
1464 <pluginManagement>
1565 <plugins>
1666 <plugin>
17 <groupId>org.apache.maven.plugins</groupId>
1867 <artifactId>maven-resources-plugin</artifactId>
19 <version>3.0.2</version>
68 <version>3.1.0</version>
2069 </plugin>
2170 <plugin>
2271 <groupId>org.glassfish.build</groupId>
3584 </plugin>
3685 <plugin>
3786 <artifactId>maven-enforcer-plugin</artifactId>
38 <version>3.0.0-M1</version>
3987 <configuration>
4088 <rules>
4189 <requireJavaVersion>
42 <version>[1.7,)</version>
90 <version>[1.8,)</version>
4391 </requireJavaVersion>
4492 <requireMavenVersion>
4593 <version>[3.0.3,)</version>
5199 <plugin>
52100 <groupId>org.codehaus.mojo</groupId>
53101 <artifactId>cobertura-maven-plugin</artifactId>
54 <version>2.5.1</version>
102 <version>2.7</version>
55103 <configuration>
56104 <formats>
57105 <format>xml</format>
66114 <plugin>
67115 <groupId>org.glassfish.copyright</groupId>
68116 <artifactId>glassfish-copyright-maven-plugin</artifactId>
69 <version>1.29</version>
117 <version>1.49</version>
70118 <configuration>
71119 <templateFile>${project.basedir}/copyright.txt</templateFile>
72120 <excludeFile>${project.basedir}/copyright-exclude</excludeFile>
81129 </configuration>
82130 </plugin>
83131 <plugin>
84 <groupId>org.apache.maven.plugins</groupId>
85132 <artifactId>maven-dependency-plugin</artifactId>
86 <version>2.3</version>
87 </plugin>
88 <plugin>
89 <groupId>org.apache.maven.plugins</groupId>
90 <artifactId>maven-surefire-plugin</artifactId>
91 <version>2.19.1</version>
92 <configuration>
93 <argLine>
94 -Xbootclasspath/p:${basedir}/target/classes
95 </argLine>
96 </configuration>
97 </plugin>
98 <plugin>
99 <groupId>org.apache.maven.plugins</groupId>
133 <version>3.1.1</version>
134 </plugin>
135 <plugin>
100136 <artifactId>maven-jar-plugin</artifactId>
101 <version>2.4</version>
137 <version>3.1.0</version>
102138 <configuration>
103139 <archive>
104140 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
116152 <plugin>
117153 <groupId>org.codehaus.mojo</groupId>
118154 <artifactId>buildnumber-maven-plugin</artifactId>
119 <version>1.1</version>
155 <version>1.4</version>
120156 <configuration>
121157 <getRevisionOnlyOnce>true</getRevisionOnlyOnce>
122158 <timestampFormat>{0,date,yyyy-MM-dd'T'HH:mm:ssZ}</timestampFormat>
128164 <groupId>org.apache.felix</groupId>
129165 <artifactId>maven-bundle-plugin</artifactId>
130166 <extensions>true</extensions>
131 <version>3.3.0</version>
167 <version>3.5.1</version>
132168 <configuration>
133169 <archive>
134170 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
135171 </archive>
136172 <instructions>
173 <Require-Capability>osgi.ee;filter:="(&amp;(osgi.ee=JavaSE)(version>=1.8))"</Require-Capability>
137174 <Bundle-Version>${project.version}</Bundle-Version> <!-- 2.2.99.bnull -->
138175 <Extension-Name>${extension.name}</Extension-Name>
139176 <Implementation-Version>${spec.version}.${impl.version}</Implementation-Version>
140177 <Specification-Version>${project.version}</Specification-Version>
141178 <Export-Package>${extension.name}.*; version=${spec.version}</Export-Package>
142179 <Import-Package>
143 javax.activation,
180 javax.activation;version=!,
144181 javax.xml.bind;version="[${spec.version},3)",
145182 javax.xml.bind.annotation;version="[${spec.version},3)",
146183 javax.xml.bind.annotation.adapters;version="[${spec.version},3)",
172209 <plugin>
173210 <groupId>org.codehaus.mojo</groupId>
174211 <artifactId>findbugs-maven-plugin</artifactId>
175 <version>3.0.0</version>
212 <version>3.0.5</version>
176213 <configuration>
177214 <skip>${findbugs.skip}</skip>
178215 <threshold>${findbugs.threshold}</threshold>
192229 </dependencies>
193230 </plugin>
194231 <plugin>
195 <groupId>org.apache.maven.plugins</groupId>
196232 <artifactId>maven-javadoc-plugin</artifactId>
197 <version>3.0.0-M1</version>
198233 <configuration>
199234 <nodeprecated>false</nodeprecated>
200235 <use>false</use>
244279 <head>Implementation Note:</head>
245280 </tag>
246281 </tags>
247 <!-- TODO to be removed before 2.3 release-->
248 <additionalparam>-Xdoclint:none</additionalparam>
249 </configuration>
250 </plugin>
251 <plugin>
252 <groupId>org.apache.maven.plugins</groupId>
253 <artifactId>maven-source-plugin</artifactId>
254 <version>2.2.1</version>
255 </plugin>
256 <plugin>
257 <groupId>org.apache.maven.plugins</groupId>
282 </configuration>
283 </plugin>
284 <plugin>
258285 <artifactId>maven-release-plugin</artifactId>
259 <version>2.3.2</version>
260 </plugin>
261 <plugin>
262 <groupId>org.apache.maven.plugins</groupId>
263 <artifactId>maven-gpg-plugin</artifactId>
264 <version>1.1</version>
286 </plugin>
287 <plugin>
288 <artifactId>maven-compiler-plugin</artifactId>
289 <executions>
290 <execution>
291 <id>default-compile</id>
292 <configuration>
293 <release>8</release>
294 <excludes>
295 <exclude>module-info.java</exclude>
296 </excludes>
297 </configuration>
298 </execution>
299 <execution>
300 <id>module-info-compile</id>
301 <phase>test-compile</phase><!--Avoid JavaSE9 capability added by bundle-plugin-->
302 <goals>
303 <goal>compile</goal>
304 </goals>
305 <configuration>
306 <release>9</release>
307 <includes>
308 <include>module-info.java</include>
309 </includes>
310 </configuration>
311 </execution>
312 </executions>
265313 </plugin>
266314 </plugins>
267315 </pluginManagement>
268316
269317 <plugins>
270318 <plugin>
271 <groupId>org.apache.maven.plugins</groupId>
272319 <artifactId>maven-resources-plugin</artifactId>
273320 <executions>
274321 <execution>
299346 </executions>
300347 </plugin>
301348 <plugin>
302 <groupId>org.apache.maven.plugins</groupId>
303349 <artifactId>maven-dependency-plugin</artifactId>
304350 <executions>
305351 <execution>
336382 </execution>
337383 </executions>
338384 </plugin>
385
386 <plugin>
387 <artifactId>maven-antrun-plugin</artifactId>
388 <version>1.8</version>
389 <executions>
390 <execution>
391 <id>compile-java9</id>
392 <phase>compile</phase>
393 <configuration>
394 <tasks>
395 <mkdir dir="${project.build.outputDirectory}/META-INF/versions/9" />
396 <javac srcdir="${mrjar.sourceDirectory}" destdir="${project.build.outputDirectory}/META-INF/versions/9" classpath="${project.build.outputDirectory}" includeantruntime="false" source="9" target="9" />
397 </tasks>
398 </configuration>
399 <goals>
400 <goal>run</goal>
401 </goals>
402 </execution>
403 <execution>
404 <id>update-source-jar</id>
405 <phase>verify</phase>
406 <configuration>
407 <tasks>
408 <jar destfile="${project.build.directory}/jaxb-api-${project.version}-sources.jar" update="true">
409 <fileset dir="${project.build.directory}/mr-jar/" />
410 </jar>
411 </tasks>
412 </configuration>
413 <goals>
414 <goal>run</goal>
415 </goals>
416 </execution>
417 </executions>
418 </plugin>
339419 </plugins>
340420
341421 </build>
342422
343 <profiles>
344 <profile>
345 <id>jdk9</id>
346 <activation>
347 <jdk>9</jdk>
348 </activation>
349 <build>
350 <pluginManagement>
351 <plugins>
352 <plugin>
353 <groupId>org.codehaus.mojo</groupId>
354 <artifactId>build-helper-maven-plugin</artifactId>
355 <version>1.12</version>
356 </plugin>
357 <plugin>
358 <groupId>org.apache.maven.plugins</groupId>
359 <artifactId>maven-compiler-plugin</artifactId>
360 <executions>
361 <execution>
362 <id>default-compile</id>
363 <configuration>
364 <release>9</release>
365 <source>9</source>
366 <target>9</target>
367 <includes>
368 <include>module-info.java</include>
369 </includes>
370 </configuration>
371 </execution>
372 <execution>
373 <id>base-compile</id>
374 <goals>
375 <goal>compile</goal>
376 </goals>
377 <configuration>
378 <excludes>
379 <exclude>module-info.java</exclude>
380 </excludes>
381 </configuration>
382 </execution>
383 </executions>
384 </plugin>
385 <plugin>
386 <groupId>org.apache.felix</groupId>
387 <artifactId>maven-bundle-plugin</artifactId>
388 <configuration>
389 <instructions>
390 <_failok>true</_failok>
391 </instructions>
392 </configuration>
393 </plugin>
394 <plugin>
395 <groupId>org.apache.maven.plugins</groupId>
396 <artifactId>maven-javadoc-plugin</artifactId>
397 <version>3.0.0-M1</version>
398 <configuration>
399 <includeDependencySources>false</includeDependencySources>
400 </configuration>
401 </plugin>
402 </plugins>
403 </pluginManagement>
404 <plugins>
405 <plugin>
406 <groupId>org.codehaus.mojo</groupId>
407 <artifactId>build-helper-maven-plugin</artifactId>
408 <executions>
409 <execution>
410 <id>add-jdk9-source</id>
411 <phase>generate-sources</phase>
412 <goals>
413 <goal>add-source</goal>
414 </goals>
415 <configuration>
416 <sources>
417 <source>src/main/jdk9</source>
418 </sources>
419 </configuration>
420 </execution>
421 </executions>
422 </plugin>
423 <plugin>
424 <groupId>org.apache.maven.plugins</groupId>
425 <artifactId>maven-antrun-plugin</artifactId>
426 <executions>
427 <execution>
428 <id>compile-java9</id>
429 <phase>compile</phase>
430 <configuration>
431 <tasks>
432 <mkdir dir="${project.build.outputDirectory}/META-INF/versions/9" />
433 <javac srcdir="${mrjar.sourceDirectory}" destdir="${project.build.outputDirectory}/META-INF/versions/9" classpath="${project.build.outputDirectory}" includeantruntime="false" />
434 </tasks>
435 </configuration>
436 <goals>
437 <goal>run</goal>
438 </goals>
439 </execution>
440 <execution>
441 <id>update-source-jar</id>
442 <phase>verify</phase>
443 <configuration>
444 <tasks>
445 <jar destfile="${project.build.directory}/jaxb-api-${project.version}-sources.jar" update="true">
446 <fileset dir="${project.build.directory}/mr-jar/" />
447 </jar>
448 </tasks>
449 </configuration>
450 <goals>
451 <goal>run</goal>
452 </goals>
453 </execution>
454 </executions>
455 <configuration>
456 <skip>true</skip>
457 </configuration>
458 </plugin>
459 </plugins>
460 </build>
461 </profile>
462 <profile>
463 <!-- lukas: FIX-ME in java.net:parent -->
464 <id>jvnet-release</id>
465 <build>
466 <plugins>
467 <plugin>
468 <groupId>org.apache.maven.plugins</groupId>
469 <artifactId>maven-javadoc-plugin</artifactId>
470 <version>3.0.0-M1</version>
471 </plugin>
472 </plugins>
473 </build>
474 </profile>
475 </profiles>
476
477
478 </project>
423
424
425 </project>
00 /*
11 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
22 *
3 * Copyright (c) 2003-2017 Oracle and/or its affiliates. All rights reserved.
3 * Copyright (c) 2003-2018 Oracle and/or its affiliates. All rights reserved.
44 *
55 * The contents of this file are subject to the terms of either the GNU
66 * General Public License Version 2 only ("GPL") or the Common Development
5555 * and for each provides a description of what the permission allows
5656 * and a discussion of the risks of granting code the permission.
5757 *
58 * <table border=1 cellpadding=5 summary="Permission target name, what the permission allows, and associated risks">
58 * <table class="striped">
59 * <caption style="display:none">Permission target name, what the permission allows, and associated risks"</caption>
60 * <thead>
5961 * <tr>
60 * <th>Permission Target Name</th>
61 * <th>What the Permission Allows</th>
62 * <th>Risks of Allowing this Permission</th>
62 * <th scope="col">Permission Target Name</th>
63 * <th scope="col">What the Permission Allows</th>
64 * <th scope="col">Risks of Allowing this Permission</th>
6365 * </tr>
66 * </thead>
6467 *
68 * <tbody style="text-align:left">
6569 * <tr>
66 * <td>setDatatypeConverter</td>
70 * <th scope="row">setDatatypeConverter</th>
6771 * <td>
6872 * Allows the code to set VM-wide {@link DatatypeConverterInterface}
6973 * via {@link DatatypeConverter#setDatatypeConverter(DatatypeConverterInterface) the setDatatypeConverter method}
7781 * another application running in the same JVM.
7882 * </td>
7983 * </tr>
84 * </tbody>
8085 * </table>
8186 *
8287 * @see java.security.BasicPermission
387387 * If the {@link ValidationEventHandler ValidationEventHandler}
388388 * returns false from its {@code handleEvent} method or the
389389 * {@code Marshaller} is unable to marshal {@code jaxbElement} (or any
390 * object reachable from {@code jaxbElement}). See <a href="#elementMarshalling">
390 * object reachable from {@code jaxbElement}). See <a href="{@docRoot}/javax/xml/bind/Marshaller.html#elementMarshalling">
391391 * Marshalling a JAXB element</a>.
392392 * @throws IllegalArgumentException
393393 * If any of the method parameters are null
409409 * If the {@link ValidationEventHandler ValidationEventHandler}
410410 * returns false from its {@code handleEvent} method or the
411411 * {@code Marshaller} is unable to marshal {@code jaxbElement} (or any
412 * object reachable from {@code jaxbElement}). See <a href="#elementMarshalling">
412 * object reachable from {@code jaxbElement}). See <a href="{@docRoot}/javax/xml/bind/Marshaller.html#elementMarshalling">
413413 * Marshalling a JAXB element</a>.
414414 * @throws IllegalArgumentException
415415 * If any of the method parameters are null
431431 * If the {@link ValidationEventHandler ValidationEventHandler}
432432 * returns false from its {@code handleEvent} method or the
433433 * {@code Marshaller} is unable to marshal {@code jaxbElement} (or any
434 * object reachable from {@code jaxbElement}). See <a href="#elementMarshalling">
434 * object reachable from {@code jaxbElement}). See <a href="{@docRoot}/javax/xml/bind/Marshaller.html#elementMarshalling">
435435 * Marshalling a JAXB element</a>.
436436 * @throws IllegalArgumentException
437437 * If any of the method parameters are null
454454 * If the {@link ValidationEventHandler ValidationEventHandler}
455455 * returns false from its {@code handleEvent} method or the
456456 * {@code Marshaller} is unable to marshal {@code jaxbElement} (or any
457 * object reachable from {@code jaxbElement}). See <a href="#elementMarshalling">
457 * object reachable from {@code jaxbElement}). See <a href="{@docRoot}/javax/xml/bind/Marshaller.html#elementMarshalling">
458458 * Marshalling a JAXB element</a>.
459459 * @throws IllegalArgumentException
460460 * If any of the method parameters are null
476476 * If the {@link ValidationEventHandler ValidationEventHandler}
477477 * returns false from its {@code handleEvent} method or the
478478 * {@code Marshaller} is unable to marshal {@code jaxbElement} (or any
479 * object reachable from {@code jaxbElement}). See <a href="#elementMarshalling">
479 * object reachable from {@code jaxbElement}). See <a href="{@docRoot}/javax/xml/bind/Marshaller.html#elementMarshalling">
480480 * Marshalling a JAXB element</a>.
481481 * @throws IllegalArgumentException
482482 * If any of the method parameters are null
502502 * If the {@link ValidationEventHandler ValidationEventHandler}
503503 * returns false from its {@code handleEvent} method or the
504504 * {@code Marshaller} is unable to marshal {@code jaxbElement} (or any
505 * object reachable from {@code jaxbElement}). See <a href="#elementMarshalling">
505 * object reachable from {@code jaxbElement}). See <a href="{@docRoot}/javax/xml/bind/Marshaller.html#elementMarshalling">
506506 * Marshalling a JAXB element</a>.
507507 * @throws IllegalArgumentException
508508 * If any of the method parameters are null
525525 * If the {@link ValidationEventHandler ValidationEventHandler}
526526 * returns false from its {@code handleEvent} method or the
527527 * {@code Marshaller} is unable to marshal {@code jaxbElement} (or any
528 * object reachable from {@code jaxbElement}). See <a href="#elementMarshalling">
528 * object reachable from {@code jaxbElement}). See <a href="{@docRoot}/javax/xml/bind/Marshaller.html#elementMarshalling">
529529 * Marshalling a JAXB element</a>.
530530 * @throws IllegalArgumentException
531531 * If any of the method parameters are null
549549 * If the {@link ValidationEventHandler ValidationEventHandler}
550550 * returns false from its {@code handleEvent} method or the
551551 * {@code Marshaller} is unable to marshal {@code jaxbElement} (or any
552 * object reachable from {@code jaxbElement}). See <a href="#elementMarshalling">
552 * object reachable from {@code jaxbElement}). See <a href="{@docRoot}/javax/xml/bind/Marshaller.html#elementMarshalling">
553553 * Marshalling a JAXB element</a>.
554554 * @throws IllegalArgumentException
555555 * If any of the method parameters are null
589589 * {@code Marshaller}. This method can only be used to set one of
590590 * the standard JAXB defined properties above or a provider specific
591591 * property. Attempting to set an undefined property will result in
592 * a PropertyException being thrown. See <a href="#supportedProps">
592 * a PropertyException being thrown. See <a href="{@docRoot}/javax/xml/bind/Marshaller.html#supportedProps">
593593 * Supported Properties</a>.
594594 *
595595 * @param name the name of the property to be set. This value can either
610610 * {@code Marshaller}. This method can only be used to get one of
611611 * the standard JAXB defined properties above or a provider specific
612612 * property. Attempting to get an undefined property will result in
613 * a PropertyException being thrown. See <a href="#supportedProps">
613 * a PropertyException being thrown. See <a href="{@docRoot}/javax/xml/bind/Marshaller.html#supportedProps">
614614 * Supported Properties</a>.
615615 *
616616 * @param name the name of the property to retrieve
199199 * Unmarshalling can deserialize XML data that represents either an entire XML document
200200 * or a subtree of an XML document. Typically, it is sufficient to use the
201201 * unmarshalling methods described by
202 * <a href="#unmarshalGlobal">Unmarshal root element that is declared globally</a>.
202 * <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalGlobal">Unmarshal root element that is declared globally</a>.
203203 * These unmarshal methods utilize {@link JAXBContext}'s mapping of global XML element
204204 * declarations and type definitions to JAXB mapped classes to initiate the
205205 * unmarshalling of the root element of XML data. When the {@link JAXBContext}'s
206206 * mappings are not sufficient to unmarshal the root element of XML data,
207207 * the application can assist the unmarshalling process by using the
208 * <a href="#unmarshalByDeclaredType">unmarshal by declaredType methods</a>.
208 * <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalByDeclaredType">unmarshal by declaredType methods</a>.
209209 * These methods are useful for unmarshalling XML data where
210210 * the root element corresponds to a local element declaration in the schema.
211211 * </blockquote>
258258 * instance are set.
259259 *
260260 * <a name="unmarshalDeclaredTypeReturn"></a>
261 * <table summary="" border="2" rules="all" cellpadding="4">
261 * <table class="striped">
262 * <caption>Unmarshal By Declared Type returned JAXBElement</caption>
262263 * <thead>
263264 * <tr>
264 * <th align="center" colspan="2">
265 * Unmarshal By Declared Type returned JAXBElement
265 * <th scope="col">JAXBElement Property</th>
266 * <th scope="col">Value</th>
266267 * </tr>
267268 * <tr>
268 * <th>JAXBElement Property</th>
269 * <th>Value</th>
270 * </tr>
271 * <tr>
272 * <td>name</td>
273 * <td>{@code xml element name}</td>
269 * <th scope="col">name</th>
270 * <th scope="col">{@code xml element name}</th>
274271 * </tr>
275272 * </thead>
276273 * <tbody>
277274 * <tr>
278 * <td>value</td>
275 * <th scope="row">value</th>
279276 * <td>{@code instanceof declaredType}</td>
280277 * </tr>
281278 * <tr>
282 * <td>declaredType</td>
279 * <th scope="row">declaredType</th>
283280 * <td>unmarshal method {@code declaredType} parameter</td>
284281 * </tr>
285282 * <tr>
286 * <td>scope</td>
283 * <th scope="row">scope</th>
287284 * <td>{@code null} <i>(actual scope is unknown)</i></td>
288285 * </tr>
289286 * </tbody>
292289 *
293290 * <p>
294291 * The following is an example of
295 * <a href="#unmarshalByDeclaredType">unmarshal by declaredType method</a>.
292 * <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalByDeclaredType">unmarshal by declaredType method</a>.
296293 * <p>
297294 * Unmarshal by declaredType from a {@code org.w3c.dom.Node}:
298295 * <blockquote>
427424 * content tree.
428425 *
429426 * <p>
430 * Implements <a href="#unmarshalGlobal">Unmarshal Global Root Element</a>.
427 * Implements <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalGlobal">Unmarshal Global Root Element</a>.
431428 *
432429 * @param f the file to unmarshal XML data from
433430 * @return the newly created root object of the java content tree
438435 * If the {@link ValidationEventHandler ValidationEventHandler}
439436 * returns false from its {@code handleEvent} method or the
440437 * {@code Unmarshaller} is unable to perform the XML to Java
441 * binding. See <a href="#unmarshalEx">Unmarshalling XML Data</a>
438 * binding. See <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalEx">Unmarshalling XML Data</a>
442439 * @throws IllegalArgumentException
443440 * If the file parameter is null
444441 */
450447 * be incomplete when using this form of the unmarshal API.
451448 *
452449 * <p>
453 * Implements <a href="#unmarshalGlobal">Unmarshal Global Root Element</a>.
450 * Implements <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalGlobal">Unmarshal Global Root Element</a>.
454451 *
455452 * @param is the InputStream to unmarshal XML data from
456453 * @return the newly created root object of the java content tree
461458 * If the {@link ValidationEventHandler ValidationEventHandler}
462459 * returns false from its {@code handleEvent} method or the
463460 * {@code Unmarshaller} is unable to perform the XML to Java
464 * binding. See <a href="#unmarshalEx">Unmarshalling XML Data</a>
461 * binding. See <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalEx">Unmarshalling XML Data</a>
465462 * @throws IllegalArgumentException
466463 * If the InputStream parameter is null
467464 */
474471 * because a Reader does not provide the system ID.
475472 *
476473 * <p>
477 * Implements <a href="#unmarshalGlobal">Unmarshal Global Root Element</a>.
474 * Implements <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalGlobal">Unmarshal Global Root Element</a>.
478475 *
479476 * @param reader the Reader to unmarshal XML data from
480477 * @return the newly created root object of the java content tree
485482 * If the {@link ValidationEventHandler ValidationEventHandler}
486483 * returns false from its {@code handleEvent} method or the
487484 * {@code Unmarshaller} is unable to perform the XML to Java
488 * binding. See <a href="#unmarshalEx">Unmarshalling XML Data</a>
485 * binding. See <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalEx">Unmarshalling XML Data</a>
489486 * @throws IllegalArgumentException
490487 * If the InputStream parameter is null
491488 * @since 1.6, JAXB 2.0
497494 * content tree.
498495 *
499496 * <p>
500 * Implements <a href="#unmarshalGlobal">Unmarshal Global Root Element</a>.
497 * Implements <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalGlobal">Unmarshal Global Root Element</a>.
501498 *
502499 * @param url the url to unmarshal XML data from
503500 * @return the newly created root object of the java content tree
508505 * If the {@link ValidationEventHandler ValidationEventHandler}
509506 * returns false from its {@code handleEvent} method or the
510507 * {@code Unmarshaller} is unable to perform the XML to Java
511 * binding. See <a href="#unmarshalEx">Unmarshalling XML Data</a>
508 * binding. See <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalEx">Unmarshalling XML Data</a>
512509 * @throws IllegalArgumentException
513510 * If the URL parameter is null
514511 */
519516 * resulting content tree.
520517 *
521518 * <p>
522 * Implements <a href="#unmarshalGlobal">Unmarshal Global Root Element</a>.
519 * Implements <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalGlobal">Unmarshal Global Root Element</a>.
523520 *
524521 * @param source the input source to unmarshal XML data from
525522 * @return the newly created root object of the java content tree
530527 * If the {@link ValidationEventHandler ValidationEventHandler}
531528 * returns false from its {@code handleEvent} method or the
532529 * {@code Unmarshaller} is unable to perform the XML to Java
533 * binding. See <a href="#unmarshalEx">Unmarshalling XML Data</a>
530 * binding. See <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalEx">Unmarshalling XML Data</a>
534531 * @throws IllegalArgumentException
535532 * If the InputSource parameter is null
536533 */
541538 * content tree.
542539 *
543540 * <p>
544 * Implements <a href="#unmarshalGlobal">Unmarshal Global Root Element</a>.
541 * Implements <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalGlobal">Unmarshal Global Root Element</a>.
545542 *
546543 * @param node
547544 * the document/element to unmarshal XML data from.
554551 * If the {@link ValidationEventHandler ValidationEventHandler}
555552 * returns false from its {@code handleEvent} method or the
556553 * {@code Unmarshaller} is unable to perform the XML to Java
557 * binding. See <a href="#unmarshalEx">Unmarshalling XML Data</a>
554 * binding. See <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalEx">Unmarshalling XML Data</a>
558555 * @throws IllegalArgumentException
559556 * If the Node parameter is null
560557 * @see #unmarshal(org.w3c.dom.Node, Class)
566563 * and return the resulting content tree.
567564 *
568565 * <p>
569 * Implements <a href="#unmarshalByDeclaredType">Unmarshal by Declared Type</a>
566 * Implements <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalByDeclaredType">Unmarshal by Declared Type</a>
570567 *
571568 * @param node
572569 * the document/element to unmarshal XML data from.
574571 * @param declaredType
575572 * appropriate JAXB mapped class to hold {@code node}'s XML data.
576573 *
577 * @return <a href="#unmarshalDeclaredTypeReturn">JAXB Element</a> representation of {@code node}
574 * @return <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalDeclaredTypeReturn">JAXB Element</a> representation of {@code node}
578575 *
579576 * @throws JAXBException
580577 * If any unexpected errors occur while unmarshalling
582579 * If the {@link ValidationEventHandler ValidationEventHandler}
583580 * returns false from its {@code handleEvent} method or the
584581 * {@code Unmarshaller} is unable to perform the XML to Java
585 * binding. See <a href="#unmarshalEx">Unmarshalling XML Data</a>
582 * binding. See <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalEx">Unmarshalling XML Data</a>
586583 * @throws IllegalArgumentException
587584 * If any parameter is null
588585 * @since 1.6, JAXB 2.0
594591 * resulting content tree.
595592 *
596593 * <p>
597 * Implements <a href="#unmarshalGlobal">Unmarshal Global Root Element</a>.
594 * Implements <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalGlobal">Unmarshal Global Root Element</a>.
598595 *
599596 * <p>
600597 * <a name="saxParserPlugable"></a>
640637 * If the {@link ValidationEventHandler ValidationEventHandler}
641638 * returns false from its {@code handleEvent} method or the
642639 * {@code Unmarshaller} is unable to perform the XML to Java
643 * binding. See <a href="#unmarshalEx">Unmarshalling XML Data</a>
640 * binding. See <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalEx">Unmarshalling XML Data</a>
644641 * @throws IllegalArgumentException
645642 * If the Source parameter is null
646643 * @see #unmarshal(javax.xml.transform.Source, Class)
654651 * resulting content tree.
655652 *
656653 * <p>
657 * Implements <a href="#unmarshalByDeclaredType">Unmarshal by Declared Type</a>
658 *
659 * <p>
660 * See <a href="#saxParserPlugable">SAX 2.0 Parser Pluggability</a>
654 * Implements <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalByDeclaredType">Unmarshal by Declared Type</a>
655 *
656 * <p>
657 * See <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#saxParserPlugable">SAX 2.0 Parser Pluggability</a>
661658 *
662659 * @param source the XML Source to unmarshal XML data from (providers are
663660 * only required to support SAXSource, DOMSource, and StreamSource)
664661 * @param declaredType
665662 * appropriate JAXB mapped class to hold {@code source}'s xml root element
666 * @return Java content rooted by <a href="#unmarshalDeclaredTypeReturn">JAXB Element</a>
663 * @return Java content rooted by <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalDeclaredTypeReturn">JAXB Element</a>
667664 *
668665 * @throws JAXBException
669666 * If any unexpected errors occur while unmarshalling
671668 * If the {@link ValidationEventHandler ValidationEventHandler}
672669 * returns false from its {@code handleEvent} method or the
673670 * {@code Unmarshaller} is unable to perform the XML to Java
674 * binding. See <a href="#unmarshalEx">Unmarshalling XML Data</a>
671 * binding. See <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalEx">Unmarshalling XML Data</a>
675672 * @throws IllegalArgumentException
676673 * If any parameter is null
677674 * @since 1.6, JAXB 2.0
684681 * resulting content tree.
685682 *
686683 * <p>
687 * Implements <a href="#unmarshalGlobal">Unmarshal Global Root Element</a>.
684 * Implements <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalGlobal">Unmarshal Global Root Element</a>.
688685 *
689686 * <p>
690687 * This method assumes that the parser is on a START_DOCUMENT or
704701 * If the {@link ValidationEventHandler ValidationEventHandler}
705702 * returns false from its {@code handleEvent} method or the
706703 * {@code Unmarshaller} is unable to perform the XML to Java
707 * binding. See <a href="#unmarshalEx">Unmarshalling XML Data</a>
704 * binding. See <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalEx">Unmarshalling XML Data</a>
708705 * @throws IllegalArgumentException
709706 * If the {@code reader} parameter is null
710707 * @throws IllegalStateException
721718 * and return the resulting content tree.
722719 *
723720 * <p>
724 * This method implements <a href="#unmarshalByDeclaredType">unmarshal by declaredType</a>.
721 * This method implements <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalByDeclaredType">unmarshal by declaredType</a>.
725722 * <p>
726723 * This method assumes that the parser is on a START_DOCUMENT or
727724 * START_ELEMENT event. Unmarshalling will be done from this
734731 * @param declaredType
735732 * appropriate JAXB mapped class to hold {@code reader}'s START_ELEMENT XML data.
736733 *
737 * @return content tree rooted by <a href="#unmarshalDeclaredTypeReturn">JAXB Element representation</a>
734 * @return content tree rooted by <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalDeclaredTypeReturn">JAXB Element representation</a>
738735 *
739736 * @throws JAXBException
740737 * If any unexpected errors occur while unmarshalling
742739 * If the {@link ValidationEventHandler ValidationEventHandler}
743740 * returns false from its {@code handleEvent} method or the
744741 * {@code Unmarshaller} is unable to perform the XML to Java
745 * binding. See <a href="#unmarshalEx">Unmarshalling XML Data</a>
742 * binding. See <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalEx">Unmarshalling XML Data</a>
746743 * @throws IllegalArgumentException
747744 * If any parameter is null
748745 * @since 1.6, JAXB 2.0
754751 * resulting content tree.
755752 *
756753 * <p>
757 * This method is an <a href="#unmarshalGlobal">Unmarshal Global Root method</a>.
754 * This method is an <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalGlobal">Unmarshal Global Root method</a>.
758755 *
759756 * <p>
760757 * This method assumes that the parser is on a START_DOCUMENT or
774771 * If the {@link ValidationEventHandler ValidationEventHandler}
775772 * returns false from its {@code handleEvent} method or the
776773 * {@code Unmarshaller} is unable to perform the XML to Java
777 * binding. See <a href="#unmarshalEx">Unmarshalling XML Data</a>
774 * binding. See <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalEx">Unmarshalling XML Data</a>
778775 * @throws IllegalArgumentException
779776 * If the {@code reader} parameter is null
780777 * @throws IllegalStateException
791788 * and return the resulting content tree.
792789 *
793790 * <p>
794 * This method implements <a href="#unmarshalByDeclaredType">unmarshal by declaredType</a>.
791 * This method implements <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalByDeclaredType">unmarshal by declaredType</a>.
795792 *
796793 * <p>
797794 * This method assumes that the parser is on a START_DOCUMENT or
805802 * @param declaredType
806803 * appropriate JAXB mapped class to hold {@code reader}'s START_ELEMENT XML data.
807804 *
808 * @return content tree rooted by <a href="#unmarshalDeclaredTypeReturn">JAXB Element representation</a>
805 * @return content tree rooted by <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalDeclaredTypeReturn">JAXB Element representation</a>
809806 *
810807 * @throws JAXBException
811808 * If any unexpected errors occur while unmarshalling
813810 * If the {@link ValidationEventHandler ValidationEventHandler}
814811 * returns false from its {@code handleEvent} method or the
815812 * {@code Unmarshaller} is unable to perform the XML to Java
816 * binding. See <a href="#unmarshalEx">Unmarshalling XML Data</a>
813 * binding. See <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#unmarshalEx">Unmarshalling XML Data</a>
817814 * @throws IllegalArgumentException
818815 * If any parameter is null
819816 * @since 1.6, JAXB 2.0
926923 * {@code Unmarshaller}. This method can only be used to set one of
927924 * the standard JAXB defined properties above or a provider specific
928925 * property. Attempting to set an undefined property will result in
929 * a PropertyException being thrown. See <a href="#supportedProps">
926 * a PropertyException being thrown. See <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#supportedProps">
930927 * Supported Properties</a>.
931928 *
932929 * @param name the name of the property to be set. This value can either
947944 * {@code Unmarshaller}. This method can only be used to get one of
948945 * the standard JAXB defined properties above or a provider specific
949946 * property. Attempting to get an undefined property will result in
950 * a PropertyException being thrown. See <a href="#supportedProps">
947 * a PropertyException being thrown. See <a href="{@docRoot}/javax/xml/bind/Unmarshaller.html#supportedProps">
951948 * Supported Properties</a>.
952949 *
953950 * @param name the name of the property to retrieve
5050 * The namespace qualification values are used in the annotations
5151 * defined in this packge. The enumeration values are mapped as follows:
5252 *
53 * <table summary="" border="1" cellpadding="4" cellspacing="3">
53 * <table class="striped">
54 * <caption style="display:none">Mapping of enumeration values</caption>
55 * <thead>
56 * <tr>
57 * <th scope="col">Enum Value</th>
58 * <th scope="col">XML Schema Value</th>
59 * </tr>
60 * </thead>
61 *
5462 * <tbody>
5563 * <tr>
56 * <td><b>Enum Value</b></td>
57 * <td><b>XML Schema Value</b></td>
58 * </tr>
59 *
60 * <tr valign="top">
61 * <td>UNQUALIFIED</td>
64 * <th scope="row">UNQUALIFIED</th>
6265 * <td>unqualified</td>
6366 * </tr>
64 * <tr valign="top">
65 * <td>QUALIFIED</td>
67 * <tr>
68 * <th scope="row">QUALIFIED</th>
6669 * <td>qualified</td>
6770 * </tr>
68 * <tr valign="top">
69 * <td>UNSET</td>
71 * <tr>
72 * <th scope="row">UNSET</th>
7073 * <td>namespace qualification attribute is absent from the
7174 * XML Schema fragment</td>
7275 * </tr>
127127 * complex type or simple type. The notational symbols used in the table are:
128128 * <ul>
129129 * <li> {@literal ->} : represents a mapping </li>
130 * <li> [x]+ : one or more occurances of x </li>
130 * <li> [x]+ : one or more occurrences of x </li>
131131 * <li> [ {@code @XmlValue} property ]: JavaBean property annotated with
132132 * {@code @XmlValue}</li>
133133 * <li> X : don't care
134134 * </ul>
135135 * <blockquote>
136 * <table summary="" border="1" cellpadding="4" cellspacing="3">
136 * <table class="striped" summary="Mapping class to XML Schema simple type">
137 * <thead>
138 * <tr>
139 * <th scope="col">Target</th>
140 * <th scope="col">propOrder</th>
141 * <th scope="col">ClassBody</th>
142 * <th scope="col">ComplexType</th>
143 * <th scope="col">SimpleType</th>
144 * </tr>
145 * </thead>
146 *
137147 * <tbody>
138148 * <tr>
139 * <td><b>Target</b></td>
140 * <td><b>propOrder</b></td>
141 * <td><b>ClassBody</b></td>
142 * <td><b>ComplexType</b></td>
143 * <td><b>SimpleType</b></td>
144 * </tr>
145 *
146 * <tr valign="top">
147149 * <td>Class</td>
148150 * <td>{}</td>
149 * <td>[property]+ {@literal ->} elements</td>
151 * <th scope="row">[property]+ {@literal ->} elements</th>
150152 * <td>complexcontent<br>xs:all</td>
151153 * <td> </td>
152154 * </tr>
153155 *
154 * <tr valign="top">
156 * <tr>
155157 * <td>Class</td>
156158 * <td>non empty</td>
157 * <td>[property]+ {@literal ->} elements</td>
159 * <th scope="row">[property]+ {@literal ->} elements</th>
158160 * <td>complexcontent<br>xs:sequence</td>
159161 * <td> </td>
160162 * </tr>
161163 *
162 * <tr valign="top">
164 * <tr>
163165 * <td>Class</td>
164166 * <td>X</td>
165 * <td>no property {@literal ->} element</td>
167 * <th scope="row">no property {@literal ->} element</th>
166168 * <td>complexcontent<br>empty sequence</td>
167169 * <td> </td>
168170 * </tr>
169171 *
170 * <tr valign="top">
172 * <tr>
171173 * <td>Class</td>
172174 * <td>X</td>
173 * <td>1 [{@code @XmlValue} property] {@literal &&} <br> [property]+ {@literal ->} attributes</td>
175 * <th scope="row">1 [{@code @XmlValue} property] {@literal &&} <br> [property]+ {@literal ->} attributes</th>
174176 * <td>simplecontent</td>
175177 * <td> </td>
176178 * </tr>
177179 *
178 * <tr valign="top">
180 * <tr>
179181 * <td>Class</td>
180182 * <td>X</td>
181 * <td>1 [{@code @XmlValue} property] {@literal &&} <br> no properties {@literal ->} attribute</td>
183 * <th scope="row">1 [{@code @XmlValue} property] {@literal &&} <br> no properties {@literal ->} attribute</th>
182184 * <td> </td>
183185 * <td>simpletype</td>
184186 * </tr>
4040 /**
4141 * {@link javax.xml.bind.annotation.adapters.XmlAdapter} and its spec-defined
4242 * sub-classes to allow arbitrary Java classes to be used with JAXB.
43 * <p>
43 *
4444 * <h2>Package Specification</h2>
45 * <p>
45 *
4646 * <ul>
4747 * <li><a href="http://jcp.org/en/jsr/detail?id=222">JAXB Specification</a>
4848 * </ul>
49 * <p>
49 *
5050 * <h2>Related Documentation</h2>
51 * <p>
51 *
5252 * For overviews, tutorials, examples, guides, and tool documentation,
5353 * please see:
5454 * <ul>
5757 *
5858 * @see <a href="http://jaxb.java.net">JAXB Website</a>
5959 */
60 package javax.xml.bind.annotation.adapters;
60 package javax.xml.bind.annotation.adapters;
4444 * <p>The following table shows the JAXB mapping annotations
4545 * that can be associated with each program element. </p>
4646 * <p>
47 * <table border="1" cellpadding="4" cellspacing="3" summary="test0">
48 * <tbody>
49 * <tr>
50 * <td><b>Program Element</b></td>
51 * <td><b>JAXB annotation</b></td>
52 * </tr>
53 * <tr valign="top">
54 * <td><b>Package</b></td>
55 * <td>
56 * <table summary="test">
57 * <tr valign="top">
58 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlAccessorOrder.html">XmlAccessorOrder</a></b></td>
59 * </tr>
60 * <tr valign="top">
61 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlAccessorType.html">XmlAccessorType</a></b></td>
62 * </tr>
63 * <tr valign="top">
64 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlSchema.html">XmlSchema</a></b></td>
65 * </tr>
66 * <tr valign="top">
67 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlSchemaType.html">XmlSchemaType</a></b></td>
68 * </tr>
69 * <tr valign="top">
70 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlSchemaTypes.html">XmlSchemaTypes</a></b></td>
71 * </tr>
72 * <tr valign="top">
73 * <td><b><a HREF="../../../../javax/xml/bind/annotation/adapters/XmlJavaTypeAdapter.html">XmlJavaTypeAdapter</a></b></td>
74 * </tr>
75 * <tr valign="top">
76 * <td><b><a HREF="../../../../javax/xml/bind/annotation/adapters/XmlJavaTypeAdapters.html">XmlJavaTypeAdapters</a></b></td>
77 * </tr>
78 * </table>
79 * </td>
80 * </tr>
81 * <tr valign="top">
82 * <td><b>Class</b></td>
83 * <td>
84 * <table summary="test2">
85 * <tr valign="top">
86 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlAccessorOrder.html">XmlAccessorOrder</a></b></td>
87 * </tr>
88 * <tr valign="top">
89 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlAccessorType.html">XmlAccessorType</a></b></td>
90 * </tr>
91 * <tr valign="top">
92 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlInlineBinaryData.html">XmlInlineBinaryData</a></b></td>
93 * </tr>
94 * <tr valign="top">
95 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlRootElement.html">XmlRootElement</a></b></td>
96 * </tr>
97 * <tr valign="top">
98 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlType.html">XmlType</a></b></td>
99 * </tr>
100 * <tr valign="top">
101 * <td><b><a HREF="../../../../javax/xml/bind/annotation/adapters/XmlJavaTypeAdapter.html">XmlJavaTypeAdapter</a></b></td>
102 * </tr>
103 * </table>
104 * </td>
105 * </tr>
106 * <tr valign="top">
107 * <td><b>Enum type</b></td>
108 * <td>
109 * <table summary="test3">
110 * <tr valign="top">
111 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlEnum.html">XmlEnum</a></b></td>
112 * </tr>
113 * <tr valign="top">
114 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlEnumValue.html">XmlEnumValue (enum constant only)</a></b></td>
115 * </tr>
116 * <tr valign="top">
117 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlRootElement.html">XmlRootElement</a></b></td>
118 * </tr>
119 * <tr valign="top">
120 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlType.html">XmlType</a></b></td>
121 * </tr>
122 * <tr valign="top">
123 * <td><b><a HREF="../../../../javax/xml/bind/annotation/adapters/XmlJavaTypeAdapter.html">XmlJavaTypeAdapter</a></b></td>
124 * </tr>
125 * </table>
126 * </td>
127 * </tr>
128 * <tr valign="top">
129 * <td><b>JavaBean Property/field</b></td>
130 * <td>
131 * <table summary="test4">
132 * <tr valign="top">
133 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlElement.html">XmlElement</a></b></td>
134 * </tr>
135 * <tr valign="top">
136 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlElements.html">XmlElements</a></b></td>
137 * </tr>
138 * <tr valign="top">
139 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlElementRef.html">XmlElementRef</a></b></td>
140 * </tr>
141 * <tr valign="top">
142 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlElementRefs.html">XmlElementRefs</a></b></td>
143 * </tr>
144 * <tr valign="top">
145 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlElementWrapper.html">XmlElementWrapper</a></b></td>
146 * </tr>
147 * <tr valign="top">
148 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlAnyElement.html">XmlAnyElement</a></b></td>
149 * </tr>
150 * <tr valign="top">
151 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlAttribute.html">XmlAttribute</a></b></td>
152 * </tr>
153 * <tr valign="top">
154 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlAnyAttribute.html">XmlAnyAttribute</a></b></td>
155 * </tr>
156 * <tr valign="top">
157 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlTransient.html">XmlTransient</a></b></td>
158 * </tr>
159 * <tr valign="top">
160 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlValue.html">XmlValue</a></b></td>
161 * </tr>
162 * <tr valign="top">
163 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlID.html">XmlID</a></b></td>
164 * </tr>
165 * <tr valign="top">
166 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlIDREF.html">XmlIDREF</a></b></td>
167 * </tr>
168 * <tr valign="top">
169 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlList.html">XmlList</a></b></td>
170 * </tr>
171 * <tr valign="top">
172 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlMixed.html">XmlMixed</a></b></td>
173 * </tr>
174 * <tr valign="top">
175 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlMimeType.html">XmlMimeType</a></b></td>
176 * </tr>
177 * <tr valign="top">
178 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlAttachmentRef.html">XmlAttachmentRef</a></b></td>
179 * </tr>
180 * <tr valign="top">
181 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlInlineBinaryData.html">XmlInlineBinaryData</a></b></td>
182 * </tr>
183 * <tr valign="top">
184 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlElementDecl.html">XmlElementDecl (only on method)</a></b></td>
185 * </tr>
186 * <tr valign="top">
187 * <td><b><a HREF="../../../../javax/xml/bind/annotation/adapters/XmlJavaTypeAdapter.html">XmlJavaTypeAdapter</a></b></td>
188 * </tr>
189 * </table>
190 * </td>
191 * </tr>
192 * <tr valign="top">
193 * <td><b>Parameter</b></td>
194 * <td>
195 * <table summary="test5">
196 * <tr valign="top">
197 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlList.html">XmlList</a></b></td>
198 * </tr>
199 * <tr valign="top">
200 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlAttachmentRef.html">XmlAttachmentRef</a></b></td>
201 * </tr>
202 * <tr valign="top">
203 * <td><b><a HREF="../../../../javax/xml/bind/annotation/XmlMimeType.html">XmlMimeType</a></b></td>
204 * </tr>
205 * <tr valign="top">
206 * <td><b><a HREF="../../../../javax/xml/bind/annotation/adapters/XmlJavaTypeAdapter.html">XmlJavaTypeAdapter</a></b></td>
207 * </tr>
208 * </table>
209 * </td>
210 * </tr>
47 * <table class="striped" summary="Annotations for customizing Java program elements to XML Schema mapping">
48 * <thead>
49 * <tr>
50 * <th scope="col">Program Element</th>
51 * <th scope="col">JAXB annotation</th>
52 * </tr>
53 * </thead>
54 * <tbody style="text-align:left">
55 * <tr>
56 * <th scope="row" style="vertical-align:top">Package</th>
57 * <td>
58 * <ul style="list-style-type:none">
59 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlAccessorOrder.html">XmlAccessorOrder</a></li>
60 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlAccessorType.html">XmlAccessorType</a></li>
61 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlSchema.html">XmlSchema</a></li>
62 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlSchemaType.html">XmlSchemaType</a></li>
63 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlSchemaTypes.html">XmlSchemaTypes</a></li>
64 * <li><a HREF="../../../../javax/xml/bind/annotation/adapters/XmlJavaTypeAdapter.html">XmlJavaTypeAdapter</a></li>
65 * <li><a HREF="../../../../javax/xml/bind/annotation/adapters/XmlJavaTypeAdapters.html">XmlJavaTypeAdapters</a></li>
66 * </ul>
67 * </td>
68 * </tr>
69 * <tr>
70 * <th scope="row" style="vertical-align:top">Class</th>
71 * <td>
72 * <ul style="list-style-type:none">
73 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlAccessorOrder.html">XmlAccessorOrder</a></li>
74 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlAccessorType.html">XmlAccessorType</a></li>
75 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlInlineBinaryData.html">XmlInlineBinaryData</a></li>
76 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlRootElement.html">XmlRootElement</a></li>
77 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlType.html">XmlType</a></li>
78 * <li><a HREF="../../../../javax/xml/bind/annotation/adapters/XmlJavaTypeAdapter.html">XmlJavaTypeAdapter</a></li>
79 * </ul>
80 * </td>
81 * </tr>
82 * <tr>
83 * <th scope="row" style="vertical-align:top">Enum type</th>
84 * <td>
85 * <ul style="list-style-type:none">
86 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlEnum.html">XmlEnum</a></li>
87 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlEnumValue.html">XmlEnumValue (enum constant only)</a></li>
88 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlRootElement.html">XmlRootElement</a></li>
89 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlType.html">XmlType</a></li>
90 * <li><a HREF="../../../../javax/xml/bind/annotation/adapters/XmlJavaTypeAdapter.html">XmlJavaTypeAdapter</a></li>
91 * </ul>
92 * </td>
93 * </tr>
94 * <tr>
95 * <th scope="row" style="vertical-align:top">JavaBean Property/field</th>
96 * <td>
97 * <ul style="list-style-type:none">
98 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlElement.html">XmlElement</a></li>
99 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlElements.html">XmlElements</a></li>
100 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlElementRef.html">XmlElementRef</a></li>
101 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlElementRefs.html">XmlElementRefs</a></li>
102 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlElementWrapper.html">XmlElementWrapper</a></li>
103 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlAnyElement.html">XmlAnyElement</a></li>
104 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlAttribute.html">XmlAttribute</a></li>
105 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlAnyAttribute.html">XmlAnyAttribute</a></li>
106 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlTransient.html">XmlTransient</a></li>
107 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlValue.html">XmlValue</a></li>
108 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlID.html">XmlID</a></li>
109 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlIDREF.html">XmlIDREF</a></li>
110 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlList.html">XmlList</a></li>
111 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlMixed.html">XmlMixed</a></li>
112 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlMimeType.html">XmlMimeType</a></li>
113 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlAttachmentRef.html">XmlAttachmentRef</a></li>
114 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlInlineBinaryData.html">XmlInlineBinaryData</a></li>
115 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlElementDecl.html">XmlElementDecl (only on method)</a></li>
116 * <li><a HREF="../../../../javax/xml/bind/annotation/adapters/XmlJavaTypeAdapter.html">XmlJavaTypeAdapter</a></li>
117 * </ul>
118 * </td>
119 * </tr>
120 * <tr>
121 * <th scope="row" style="vertical-align:top">Parameter</th>
122 * <td>
123 * <ul style="list-style-type:none">
124 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlList.html">XmlList</a></li>
125 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlAttachmentRef.html">XmlAttachmentRef</a></li>
126 * <li><a HREF="../../../../javax/xml/bind/annotation/XmlMimeType.html">XmlMimeType</a></li>
127 * <li><a HREF="../../../../javax/xml/bind/annotation/adapters/XmlJavaTypeAdapter.html">XmlJavaTypeAdapter</a></li>
128 * </ul>
129 * </td>
130 * </tr>
211131 * </tbody>
212132 * </table>
213133 * <h3>Terminology</h3>
250170 * <p>The following namespace prefixes are used in the XML Schema
251171 * fragments in this package.
252172 * <p>
253 * <table border="1" cellpadding="4" cellspacing="3" summary="test6">
254 * <tbody>
255 * <tr>
256 * <td><b>Prefix</b></td>
257 * <td><b>Namespace</b></td>
258 * <td><b>Notes</b></td>
259 * </tr>
260 * <tr valign="top">
261 * <td>xs</td>
262 * <td>http://www.w3.org/2001/XMLSchema</td>
263 * <td>Namespace of XML Schema namespace</td>
264 * </tr>
265 * <tr valign="top">
266 * <td>ref</td>
267 * <td>http://ws-i.org/profiles/basic/1.1/xsd</td>
268 * <td>Namespace for swaref schema component</td>
269 * </tr>
270 * <tr valign="top">
271 * <td>xsi</td>
272 * <td>http://www.w3.org/2001/XMLSchema-instance</td>
273 * <td>XML Schema namespace for instances</td>
274 * </tr>
275 * </tbody>
173 * <table class="striped" summary="XML Schema fragments namespace prefixes">
174 * <thead>
175 * <tr>
176 * <th scope="col">Prefix</th>
177 * <th scope="col">Namespace</th>
178 * <th scope="col">Notes</th>
179 * </tr>
180 * </thead>
181 * <tbody>
182 * <tr>
183 * <th scope="row">xs</th>
184 * <td>http://www.w3.org/2001/XMLSchema</td>
185 * <td>Namespace of XML Schema namespace</td>
186 * </tr>
187 * <tr>
188 * <th scope="row">ref</th>
189 * <td>http://ws-i.org/profiles/basic/1.1/xsd</td>
190 * <td>Namespace for swaref schema component</td>
191 * </tr>
192 * <tr>
193 * <th scope="row">xsi</th>
194 * <td>http://www.w3.org/2001/XMLSchema-instance</td>
195 * <td>XML Schema namespace for instances</td>
196 * </tr>
197 * </tbody>
276198 * </table>
277199 *
278200 * @since 1.6, JAXB 2.0
279201 */
280 package javax.xml.bind.annotation;
202 package javax.xml.bind.annotation;
8686 *
8787 * <p>The returned {@code DataHandler} instance must be configured
8888 * to meet the following required mapping constaint.
89 * <table summary="" border="2" rules="all" cellpadding="4">
89 * <table class="striped">
90 * <caption>Required Mappings between MIME and Java Types</caption>
9091 * <thead>
9192 * <tr>
92 * <th align="center" colspan="2">
93 * Required Mappings between MIME and Java Types
93 * <th scope="col">MIME Type</th>
94 * <th scope="col">Java Type</th>
9495 * </tr>
9596 * <tr>
96 * <th>MIME Type</th>
97 * <th>Java Type</th>
98 * </tr>
99 * <tr>
100 * <th>{@code DataHandler.getContentType()}</th>
101 * <th>{@code instanceof DataHandler.getContent()}</th>
97 * <th scope="col">{@code DataHandler.getContentType()}</th>
98 * <th scope="col">{@code instanceof DataHandler.getContent()}</th>
10299 * </tr>
103100 * </thead>
104 * <tbody>
101 * <tbody style="text-align:left">
105102 * <tr>
106 * <td>image/gif</td>
103 * <th scope="row">image/gif</th>
107104 * <td>java.awt.Image</td>
108105 * </tr>
109106 * <tr>
110 * <td>image/jpeg</td>
107 * <th scope="row">image/jpeg</th>
111108 * <td>java.awt.Image</td>
112109 * </tr>
113110 * <tr>
114 * <td>text/xml or application/xml</td>
111 * <th scope="row">text/xml or application/xml</th>
115112 * <td>javax.xml.transform.Source</td>
116113 * </tr>
117114 * </tbody>
4040 /**
4141 * <B>JAXB Provider Use Only:</b> Provides partial default implementations for
4242 * some of the <code>javax.xml.bind</code> interfaces.
43 * <p>
43 *
4444 * <p>
4545 * JAXB Providers can extend these classes and implement the abstract
4646 * methods.
47 * <p>
47 *
4848 * <h2>Package Specification</h2>
49 * <p>
49 *
5050 * <ul>
5151 * <li><a href="https://jaxb.java.net/">JAXB Specification</a>
5252 * </ul>
53 * <p>
53 *
5454 * <h2>Related Documentation</h2>
5555 * <p>
5656 * For overviews, tutorials, examples, guides, and tool documentation,
6161 *
6262 * @see <a href="https://jaxb.java.net/">JAXB Website</a>
6363 */
64 package javax.xml.bind.helpers;
64 package javax.xml.bind.helpers;
3939
4040 /**
4141 * Useful client utility classes.
42 * <p>
42 *
4343 * <h2>Package Specification</h2>
44 * <p>
44 *
4545 * <ul>
4646 * <li><a href="https://jaxb.java.net/">JAXB Specification</a>
4747 * </ul>
48 * <p>
48 *
4949 * <h2>Related Documentation</h2>
5050 * <p>
5151 * For overviews, tutorials, examples, guides, and tool documentation,
5656 *
5757 * @see <a href="https://jaxb.java.net/">JAXB Website</a>
5858 */
59 package javax.xml.bind.util;
59 package javax.xml.bind.util;
0 /*
1 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
2 *
3 * Copyright (c) 2017-2018 Oracle and/or its affiliates. All rights reserved.
4 *
5 * The contents of this file are subject to the terms of either the GNU
6 * General Public License Version 2 only ("GPL") or the Common Development
7 * and Distribution License("CDDL") (collectively, the "License"). You
8 * may not use this file except in compliance with the License. You can
9 * obtain a copy of the License at
10 * https://oss.oracle.com/licenses/CDDL+GPL-1.1
11 * or LICENSE.txt. See the License for the specific
12 * language governing permissions and limitations under the License.
13 *
14 * When distributing the software, include this License Header Notice in each
15 * file and include the License file at LICENSE.txt.
16 *
17 * GPL Classpath Exception:
18 * Oracle designates this particular file as subject to the "Classpath"
19 * exception as provided by Oracle in the GPL Version 2 section of the License
20 * file that accompanied this code.
21 *
22 * Modifications:
23 * If applicable, add the following below the License Header, with the fields
24 * enclosed by brackets [] replaced by your own identifying information:
25 * "Portions Copyright [year] [name of copyright owner]"
26 *
27 * Contributor(s):
28 * If you wish your version of this file to be governed by only the CDDL or
29 * only the GPL Version 2, indicate your decision by adding "[Contributor]
30 * elects to include this software in this distribution under the [CDDL or GPL
31 * Version 2] license." If you don't indicate a single choice of license, a
32 * recipient has the option to distribute your version of this file under
33 * either the CDDL, the GPL Version 2 or to extend the choice of license to
34 * its licensees as provided above. However, if you add GPL Version 2 code
35 * and therefore, elected the GPL Version 2 license, then the option applies
36 * only if the new code is made subject to such option by the copyright
37 * holder.
38 */
39
40 module java.xml.bind {
41 requires transitive java.activation;
42 requires transitive java.xml;
43 requires java.logging;
44 requires java.desktop;
45
46 exports javax.xml.bind;
47 exports javax.xml.bind.annotation;
48 exports javax.xml.bind.annotation.adapters;
49 exports javax.xml.bind.attachment;
50 exports javax.xml.bind.helpers;
51 exports javax.xml.bind.util;
52
53 uses javax.xml.bind.JAXBContextFactory;
54 }
+0
-55
jaxb-api/src/main/jdk9/module-info.java less more
0 /*
1 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
2 *
3 * Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved.
4 *
5 * The contents of this file are subject to the terms of either the GNU
6 * General Public License Version 2 only ("GPL") or the Common Development
7 * and Distribution License("CDDL") (collectively, the "License"). You
8 * may not use this file except in compliance with the License. You can
9 * obtain a copy of the License at
10 * https://oss.oracle.com/licenses/CDDL+GPL-1.1
11 * or LICENSE.txt. See the License for the specific
12 * language governing permissions and limitations under the License.
13 *
14 * When distributing the software, include this License Header Notice in each
15 * file and include the License file at LICENSE.txt.
16 *
17 * GPL Classpath Exception:
18 * Oracle designates this particular file as subject to the "Classpath"
19 * exception as provided by Oracle in the GPL Version 2 section of the License
20 * file that accompanied this code.
21 *
22 * Modifications:
23 * If applicable, add the following below the License Header, with the fields
24 * enclosed by brackets [] replaced by your own identifying information:
25 * "Portions Copyright [year] [name of copyright owner]"
26 *
27 * Contributor(s):
28 * If you wish your version of this file to be governed by only the CDDL or
29 * only the GPL Version 2, indicate your decision by adding "[Contributor]
30 * elects to include this software in this distribution under the [CDDL or GPL
31 * Version 2] license." If you don't indicate a single choice of license, a
32 * recipient has the option to distribute your version of this file under
33 * either the CDDL, the GPL Version 2 or to extend the choice of license to
34 * its licensees as provided above. However, if you add GPL Version 2 code
35 * and therefore, elected the GPL Version 2 license, then the option applies
36 * only if the new code is made subject to such option by the copyright
37 * holder.
38 */
39
40 module java.xml.bind {
41 requires transitive java.activation;
42 requires transitive java.xml;
43 requires java.logging;
44 requires java.desktop;
45
46 exports javax.xml.bind;
47 exports javax.xml.bind.annotation;
48 exports javax.xml.bind.annotation.adapters;
49 exports javax.xml.bind.attachment;
50 exports javax.xml.bind.helpers;
51 exports javax.xml.bind.util;
52
53 uses javax.xml.bind.JAXBContextFactory;
54 }
141141 *
142142 * @throws JAXBException if ony of a classes package is not open to {@code java.xml.bind} module.
143143 */
144 static void delegateAddOpensToImplModule(Class[] classes, Class<?> factorySPI) throws JAXBException {
144 public static void delegateAddOpensToImplModule(Class[] classes, Class<?> factorySPI) throws JAXBException {
145145 final Module implModule = factorySPI.getModule();
146146
147147 Module jaxbModule = JAXBContext.class.getModule();
148148
149149 for (Class cls : classes) {
150 final Module classModule = cls.getModule();
151 final String packageName = cls.getPackageName();
152 //no need for unnamed
153 if (!classModule.isNamed()) {
150 Class jaxbClass = cls.isArray() ?
151 cls.getComponentType() : cls;
152
153 final Module classModule = jaxbClass.getModule();
154 final String packageName = jaxbClass.getPackageName();
155 //no need for unnamed and java.base types
156 if (!classModule.isNamed() || classModule.getName().equals("java.base")) {
154157 continue;
155158 }
156159 //report error if they are not open to java.xml.bind
157160 if (!classModule.isOpen(packageName, jaxbModule)) {
158161 throw new JAXBException(Messages.format(Messages.JAXB_CLASSES_NOT_OPEN,
159 packageName, cls.getName(), classModule.getName()));
162 packageName, jaxbClass.getName(), classModule.getName()));
160163 }
161164 //propagate openness to impl module
162165 classModule.addOpens(packageName, implModule);
00 <?xml version="1.0" encoding="UTF-8"?>
1
2 <!--
3
4 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
5
6 Copyright (c) 2017-2018 Oracle and/or its affiliates. All rights reserved.
7
8 The contents of this file are subject to the terms of either the GNU
9 General Public License Version 2 only ("GPL") or the Common Development
10 and Distribution License("CDDL") (collectively, the "License"). You
11 may not use this file except in compliance with the License. You can
12 obtain a copy of the License at
13 https://oss.oracle.com/licenses/CDDL+GPL-1.1
14 or LICENSE.txt. See the License for the specific
15 language governing permissions and limitations under the License.
16
17 When distributing the software, include this License Header Notice in each
18 file and include the License file at LICENSE.txt.
19
20 GPL Classpath Exception:
21 Oracle designates this particular file as subject to the "Classpath"
22 exception as provided by Oracle in the GPL Version 2 section of the License
23 file that accompanied this code.
24
25 Modifications:
26 If applicable, add the following below the License Header, with the fields
27 enclosed by brackets [] replaced by your own identifying information:
28 "Portions Copyright [year] [name of copyright owner]"
29
30 Contributor(s):
31 If you wish your version of this file to be governed by only the CDDL or
32 only the GPL Version 2, indicate your decision by adding "[Contributor]
33 elects to include this software in this distribution under the [CDDL or GPL
34 Version 2] license." If you don't indicate a single choice of license, a
35 recipient has the option to distribute your version of this file under
36 either the CDDL, the GPL Version 2 or to extend the choice of license to
37 its licensees as provided above. However, if you add GPL Version 2 code
38 and therefore, elected the GPL Version 2 license, then the option applies
39 only if the new code is made subject to such option by the copyright
40 holder.
41
42 -->
43
144 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
245 <parent>
346 <artifactId>jaxb-api-parent</artifactId>
447 <groupId>javax.xml.bind</groupId>
5 <version>2.3.0</version>
48 <version>2.3.1</version>
649 </parent>
750 <modelVersion>4.0.0</modelVersion>
851
2063 <artifactId>jaxb-api</artifactId>
2164 <version>${project.version}</version>
2265 </dependency>
66 <dependency>
67 <groupId>javax.activation</groupId>
68 <artifactId>javax.activation-api</artifactId>
69 </dependency>
2370 </dependencies>
2471
2572 <build>
2673 <plugins>
2774 <plugin>
28 <groupId>org.apache.maven.plugins</groupId>
75 <artifactId>maven-compiler-plugin</artifactId>
76 <configuration>
77 <release>9</release>
78 </configuration>
79 </plugin>
80 <plugin>
2981 <artifactId>maven-deploy-plugin</artifactId>
3082 <configuration>
3183 <skip>true</skip>
3284 </configuration>
3385 </plugin>
3486 <plugin>
35 <groupId>org.apache.maven.plugins</groupId>
3687 <artifactId>maven-source-plugin</artifactId>
37 <version>3.0.1</version>
3888 <configuration>
3989 <skip>true</skip>
4090 </configuration>
4191 </plugin>
4292 <plugin>
43 <groupId>org.apache.maven.plugins</groupId>
4493 <artifactId>maven-javadoc-plugin</artifactId>
4594 <configuration>
4695 <skip>true</skip>
4796 </configuration>
4897 </plugin>
4998 <plugin>
50 <groupId>org.apache.maven.plugins</groupId>
5199 <artifactId>maven-dependency-plugin</artifactId>
52 <version>3.0.0</version>
53100 <executions>
54101 <execution>
55 <!--Need to copy jaxb-api jar to use it at upgrade module path as multi-release jar file -->
56102 <id>copy</id>
57103 <phase>test-compile</phase>
58104 <goals>
65111 <artifactId>jaxb-api</artifactId>
66112 <version>${project.version}</version>
67113 <overWrite>true</overWrite>
68 <outputDirectory>${project.build.directory}</outputDirectory>
114 <outputDirectory>${project.build.directory}/mods</outputDirectory>
115 </artifactItem>
116 <artifactItem>
117 <groupId>javax.activation</groupId>
118 <artifactId>javax.activation-api</artifactId>
119 <version>${activation.version}</version>
120 <overWrite>true</overWrite>
121 <outputDirectory>${project.build.directory}/mods</outputDirectory>
69122 </artifactItem>
70123 </artifactItems>
71124 </configuration>
72125 </execution>
73126 </executions>
74127 </plugin>
128 <plugin>
129 <artifactId>maven-surefire-plugin</artifactId>
130 <configuration>
131 <argLine>
132 --add-modules java.xml.bind
133 --upgrade-module-path ${project.build.directory}/mods/jaxb-api-${project.version}.jar
134 --module-path ${project.build.directory}/mods/javax.activation-api-${activation.version}.jar
135 --add-reads java.xml.bind=ALL-UNNAMED
136 </argLine>
137 <systemPropertyVariables>
138 <java.util.logging.config.file>
139 src/test/resources/logging.properties
140 </java.util.logging.config.file>
141 </systemPropertyVariables>
142 </configuration>
143 </plugin>
75144 </plugins>
76145 </build>
77146
78 <profiles>
79 <profile>
80 <id>non-jdk9</id>
81 <activation>
82 <jdk>(,1.9)</jdk>
83 </activation>
84 <build>
85 <plugins>
86 <plugin>
87 <groupId>org.apache.maven.plugins</groupId>
88 <artifactId>maven-surefire-plugin</artifactId>
89 <configuration>
90 <argLine>
91 -Xbootclasspath/p:${project.build.directory}/jaxb-api-${project.version}.jar
92 </argLine>
93 <systemPropertyVariables>
94 <java.util.logging.config.file>
95 src/test/resources/logging.properties
96 </java.util.logging.config.file>
97 </systemPropertyVariables>
98 </configuration>
99 </plugin>
100 </plugins>
101 </build>
102 </profile>
103 <profile>
104 <id>jdk9</id>
105 <activation>
106 <jdk>9</jdk>
107 </activation>
108 <build>
109 <plugins>
110 <plugin>
111 <groupId>org.apache.maven.plugins</groupId>
112 <artifactId>maven-surefire-plugin</artifactId>
113 <configuration>
114 <argLine>
115 --add-modules java.xml.bind
116 --upgrade-module-path ${project.build.directory}/jaxb-api-${project.version}.jar
117 --add-reads java.xml.bind=ALL-UNNAMED
118 </argLine>
119 <systemPropertyVariables>
120 <java.util.logging.config.file>
121 src/test/resources/logging.properties
122 </java.util.logging.config.file>
123 </systemPropertyVariables>
124 </configuration>
125 </plugin>
126 </plugins>
127 </build>
128 </profile>
129 </profiles>
130147
131 </project>
148 </project>
0 /*
1 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
2 *
3 * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
4 *
5 * The contents of this file are subject to the terms of either the GNU
6 * General Public License Version 2 only ("GPL") or the Common Development
7 * and Distribution License("CDDL") (collectively, the "License"). You
8 * may not use this file except in compliance with the License. You can
9 * obtain a copy of the License at
10 * https://oss.oracle.com/licenses/CDDL+GPL-1.1
11 * or LICENSE.txt. See the License for the specific
12 * language governing permissions and limitations under the License.
13 *
14 * When distributing the software, include this License Header Notice in each
15 * file and include the License file at LICENSE.txt.
16 *
17 * GPL Classpath Exception:
18 * Oracle designates this particular file as subject to the "Classpath"
19 * exception as provided by Oracle in the GPL Version 2 section of the License
20 * file that accompanied this code.
21 *
22 * Modifications:
23 * If applicable, add the following below the License Header, with the fields
24 * enclosed by brackets [] replaced by your own identifying information:
25 * "Portions Copyright [year] [name of copyright owner]"
26 *
27 * Contributor(s):
28 * If you wish your version of this file to be governed by only the CDDL or
29 * only the GPL Version 2, indicate your decision by adding "[Contributor]
30 * elects to include this software in this distribution under the [CDDL or GPL
31 * Version 2] license." If you don't indicate a single choice of license, a
32 * recipient has the option to distribute your version of this file under
33 * either the CDDL, the GPL Version 2 or to extend the choice of license to
34 * its licensees as provided above. However, if you add GPL Version 2 code
35 * and therefore, elected the GPL Version 2 license, then the option applies
36 * only if the new code is made subject to such option by the copyright
37 * holder.
38 */
39
40 /**
41 * Placeholder for
42 */
43 module java.xml.bind.tests.src {}
00 /*
11 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
22 *
3 * Copyright (c) 2015-2017 Oracle and/or its affiliates. All rights reserved.
3 * Copyright (c) 2015-2018 Oracle and/or its affiliates. All rights reserved.
44 *
55 * The contents of this file are subject to the terms of either the GNU
66 * General Public License Version 2 only ("GPL") or the Common Development
0 /*
1 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
2 *
3 * Copyright (c) 2018-2018 Oracle and/or its affiliates. All rights reserved.
4 *
5 * The contents of this file are subject to the terms of either the GNU
6 * General Public License Version 2 only ("GPL") or the Common Development
7 * and Distribution License("CDDL") (collectively, the "License"). You
8 * may not use this file except in compliance with the License. You can
9 * obtain a copy of the License at
10 * https://oss.oracle.com/licenses/CDDL+GPL-1.1
11 * or LICENSE.txt. See the License for the specific
12 * language governing permissions and limitations under the License.
13 *
14 * When distributing the software, include this License Header Notice in each
15 * file and include the License file at LICENSE.txt.
16 *
17 * GPL Classpath Exception:
18 * Oracle designates this particular file as subject to the "Classpath"
19 * exception as provided by Oracle in the GPL Version 2 section of the License
20 * file that accompanied this code.
21 *
22 * Modifications:
23 * If applicable, add the following below the License Header, with the fields
24 * enclosed by brackets [] replaced by your own identifying information:
25 * "Portions Copyright [year] [name of copyright owner]"
26 *
27 * Contributor(s):
28 * If you wish your version of this file to be governed by only the CDDL or
29 * only the GPL Version 2, indicate your decision by adding "[Contributor]
30 * elects to include this software in this distribution under the [CDDL or GPL
31 * Version 2] license." If you don't indicate a single choice of license, a
32 * recipient has the option to distribute your version of this file under
33 * either the CDDL, the GPL Version 2 or to extend the choice of license to
34 * its licensees as provided above. However, if you add GPL Version 2 code
35 * and therefore, elected the GPL Version 2 license, then the option applies
36 * only if the new code is made subject to such option by the copyright
37 * holder.
38 */
39
40 /**
41 * Tests for jaxb API.
42 */
43 module java.xml.bind.tests {
44 requires java.xml.bind;
45 requires java.logging;
46 requires junit;
47 }
22
33 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
44
5 Copyright (c) 1997-2017 Oracle and/or its affiliates. All rights reserved.
5 Copyright (c) 1997-2018 Oracle and/or its affiliates. All rights reserved.
66
77 The contents of this file are subject to the terms of either the GNU
88 General Public License Version 2 only ("GPL") or the Common Development
4242
4343 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4444
45 <modelVersion>4.0.0</modelVersion>
46 <groupId>javax.xml.bind</groupId>
47 <artifactId>jaxb-api-parent</artifactId>
48 <version>2.3.1</version>
49
4550 <parent>
4651 <groupId>net.java</groupId>
4752 <artifactId>jvnet-parent</artifactId>
4853 <version>5</version>
4954 </parent>
5055
51 <modelVersion>4.0.0</modelVersion>
52 <groupId>javax.xml.bind</groupId>
53 <artifactId>jaxb-api-parent</artifactId>
54 <version>2.3.0</version>
5556 <modules>
5657 <module>jaxb-api</module>
5758 <module>jaxb-api-test</module>
7172 <connection>scm:git:git://github.com/javaee/jaxb-spec.git</connection>
7273 <developerConnection>scm:git:git@github.com:javaee/jaxb-spec.git</developerConnection>
7374 <url>https://github.com/javaee/jaxb-spec.git</url>
74 <tag>2.3.0</tag>
75 <tag>HEAD</tag>
7576 </scm>
7677
7778 <developers>
120121 <extension.name>javax.xml.bind</extension.name>
121122 <spec.version>2.3</spec.version>
122123 <impl.version>0</impl.version>
124 <activation.version>1.2.0</activation.version>
123125 </properties>
126
127 <dependencyManagement>
128 <dependencies>
129 <dependency>
130 <groupId>javax.activation</groupId>
131 <artifactId>javax.activation-api</artifactId>
132 <version>${activation.version}</version>
133 </dependency>
134 </dependencies>
135 </dependencyManagement>
124136
125137
126138 <build>
127139 <pluginManagement>
128140 <plugins>
129141 <plugin>
130 <groupId>org.apache.maven.plugins</groupId>
131142 <artifactId>maven-compiler-plugin</artifactId>
132 <version>3.6.0</version>
143 <version>3.7.0</version>
133144 <configuration>
134145 <source>1.7</source>
135146 <target>1.7</target>
138149 </compilerArgs>
139150 </configuration>
140151 </plugin>
152 <plugin>
153 <artifactId>maven-surefire-plugin</artifactId>
154 <version>2.20</version>
155 </plugin>
156 <plugin>
157 <artifactId>maven-release-plugin</artifactId>
158 <version>2.5.3</version>
159 </plugin>
160 <plugin>
161 <artifactId>maven-javadoc-plugin</artifactId>
162 <version>3.0.1</version>
163 </plugin>
164 <plugin>
165 <artifactId>maven-enforcer-plugin</artifactId>
166 <version>3.0.0-M2</version>
167 </plugin>
168 <plugin>
169 <artifactId>maven-source-plugin</artifactId>
170 <version>3.0.1</version>
171 </plugin>
172 <plugin>
173 <artifactId>maven-deploy-plugin</artifactId>
174 <version>2.8.2</version>
175 </plugin>
176 <plugin>
177 <artifactId>maven-dependency-plugin</artifactId>
178 <version>3.1.1</version>
179 </plugin>
180 <plugin>
181 <artifactId>maven-gpg-plugin</artifactId>
182 <version>1.6</version>
183 </plugin>
141184 </plugins>
142185 </pluginManagement>
143186
144187 </build>
145188
189 <profiles>
190 <profile>
191 <id>jvnet-release</id>
192 <build>
193 <plugins>
194 <plugin>
195 <groupId>org.apache.maven.plugins</groupId>
196 <artifactId>maven-javadoc-plugin</artifactId>
197 <configuration>
198 <additionalJOptions>
199 <additionalJOption>-Xdoclint:none</additionalJOption>
200 </additionalJOptions>
201 </configuration>
202 </plugin>
203 <plugin>
204 <groupId>org.apache.maven.plugins</groupId>
205 <artifactId>maven-enforcer-plugin</artifactId>
206 </plugin>
207 </plugins>
208 </build>
209 </profile>
210 </profiles>
211
146212 </project>
00 #!/bin/bash
1 #
2 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3 #
4 # Copyright (c) 2017-2018 Oracle and/or its affiliates. All rights reserved.
5 #
6 # The contents of this file are subject to the terms of either the GNU
7 # General Public License Version 2 only ("GPL") or the Common Development
8 # and Distribution License("CDDL") (collectively, the "License"). You
9 # may not use this file except in compliance with the License. You can
10 # obtain a copy of the License at
11 # https://oss.oracle.com/licenses/CDDL+GPL-1.1
12 # or LICENSE.txt. See the License for the specific
13 # language governing permissions and limitations under the License.
14 #
15 # When distributing the software, include this License Header Notice in each
16 # file and include the License file at LICENSE.txt.
17 #
18 # GPL Classpath Exception:
19 # Oracle designates this particular file as subject to the "Classpath"
20 # exception as provided by Oracle in the GPL Version 2 section of the License
21 # file that accompanied this code.
22 #
23 # Modifications:
24 # If applicable, add the following below the License Header, with the fields
25 # enclosed by brackets [] replaced by your own identifying information:
26 # "Portions Copyright [year] [name of copyright owner]"
27 #
28 # Contributor(s):
29 # If you wish your version of this file to be governed by only the CDDL or
30 # only the GPL Version 2, indicate your decision by adding "[Contributor]
31 # elects to include this software in this distribution under the [CDDL or GPL
32 # Version 2] license." If you don't indicate a single choice of license, a
33 # recipient has the option to distribute your version of this file under
34 # either the CDDL, the GPL Version 2 or to extend the choice of license to
35 # its licensees as provided above. However, if you add GPL Version 2 code
36 # and therefore, elected the GPL Version 2 license, then the option applies
37 # only if the new code is made subject to such option by the copyright
38 # holder.
39 #
40
141
242 # if option -n ... do not commit
343 COMMIT=Y
4 while getopts ":n" opt; do
44 RELEASE=false
45
46 while getopts ":nv:r" opt; do
547 case $opt in
648 n)
749 COMMIT=N
8 shift
50 ;;
51 v)
52 CUSTOM_VERSION=${OPTARG}
53 echo "Using custom version: ${CUSTOM_VERSION}"
54 ;;
55 r)
56 RELEASE=true
57 echo "Using release mode, to append buildnumber remove -r flag."
958 ;;
1059 \?)
1160 echo "Invalid option: -$OPTARG" >&2
1564 done
1665 echo "Script will commit changes: [$COMMIT] (pass option -n not to commit)"
1766
18 #if [ "$#" -eq 1 ]; then
19 # CURRENT_VERSION=$1
20 #fi
21 #
22 #if [ "$#" -eq 0 ]; then
23 # echo "No version specified, reading release version from pom file"
24 # CURRENT_VERSION=`cat pom.xml | grep '<version' -m 1 | cut -d ">" -f 2 | cut -d "<" -f 1 | cut -d "-" -f 1`
25 #fi
26 CURRENT_VERSION=2.3.0
27
28 echo "Major release version found: $CURRENT_VERSION"
67 CURRENT_VERSION=`cat pom.xml | grep '<version' -m 1 | cut -d ">" -f 2 | cut -d "<" -f 1 | cut -d "-" -f 1`
68 echo "Current version: ${CURRENT_VERSION}"
2969
3070 SCRIPT_DIR=$(cd $(dirname $0); pwd -P)
3171
4787 BUILD_NUMBER=b${DATESTAMP}
4888 DEVELOPER_VERSION=${CURRENT_VERSION}-SNAPSHOT
4989 RELEASE_QUALIFIER=${BUILD_NUMBER}
50 RELEASE_VERSION=${CURRENT_VERSION}-${RELEASE_QUALIFIER}
90
91 if [ -z "${CUSTOM_VERSION}" ]; then
92 echo "No version specified, reading release version from pom file"
93 RELEASE_VERSION=${CURRENT_VERSION}
94 else
95 RELEASE_VERSION=${CUSTOM_VERSION}
96 fi;
97
98 if [ "${RELEASE}" = true ]; then
99 echo "Release version: ${RELEASE_VERSION}"
100 else
101 RELEASE_VERSION="${RELEASE_VERSION}-${RELEASE_QUALIFIER}"
102 echo "Pre-release version: ${RELEASE_VERSION}"
103 fi;
104
105
106
51107 RELEASE_TAG=${RELEASE_VERSION}
52108
53109 cleanup()