1515import java .util .concurrent .ConcurrentHashMap ;
1616import java .util .logging .Level ;
1717
18- import javax .xml .bind .JAXBContext ;
19- import javax .xml .bind .JAXBException ;
20- import javax .xml .bind .ValidationEventHandler ;
21- import javax .xml .bind .util .JAXBSource ;
22- import javax .xml .parsers .DocumentBuilderFactory ;
18+ import jakarta .xml .bind .JAXBContext ;
19+ import jakarta .xml .bind .JAXBException ;
20+ import jakarta .xml .bind .ValidationEventHandler ;
21+ import jakarta .xml .bind .util .JAXBSource ;
2322
23+ import org .glassfish .jaxb .runtime .marshaller .NamespacePrefixMapper ;
2424import org .restlet .Context ;
2525import org .restlet .data .MediaType ;
2626import org .restlet .ext .jaxb .internal .Marshaller ;
2727import org .restlet .ext .jaxb .internal .Unmarshaller ;
2828import org .restlet .representation .Representation ;
2929import org .restlet .representation .WriterRepresentation ;
3030
31- import com .sun .xml .bind .marshaller .NamespacePrefixMapper ;
32-
3331/**
3432 * An XML representation based on JAXB that provides easy translation between
3533 * XML and JAXB element class trees.
@@ -111,8 +109,7 @@ public static synchronized JAXBContext getContext(String contextPath,
111109 private volatile boolean formattedOutput ;
112110
113111 /**
114- * Indicates whether or not document level events will be generated by the
115- * Marshaller.
112+ * Indicates whether the Marshaller will generate document level events.
116113 */
117114 private volatile boolean fragment ;
118115
@@ -135,8 +132,6 @@ public static synchronized JAXBContext getContext(String contextPath,
135132 * Indicates the desire for validating this type of XML representations
136133 * against a DTD. Note that for XML schema or Relax NG validation, use the
137134 * "schema" property instead.
138- *
139- * @see DocumentBuilderFactory#setValidating(boolean)
140135 */
141136 private volatile boolean validatingDtd ;
142137
@@ -145,10 +140,10 @@ public static synchronized JAXBContext getContext(String contextPath,
145140
146141 /**
147142 * Indicates the desire for processing <em>XInclude</em> if found in this
148- * type of XML representations. By default the value of this is set to
143+ * type of XML representations. By default, the value of this is set to
149144 * false.
150145 *
151- * @see DocumentBuilderFactory#setXIncludeAware(boolean)
146+ * @see javax.xml.parsers. DocumentBuilderFactory#setXIncludeAware(boolean)
152147 */
153148 private volatile boolean xIncludeAware ;
154149
@@ -441,10 +436,10 @@ public ValidationEventHandler getValidationEventHandler() {
441436 }
442437
443438 /**
444- * Indicates if the parser will expand entity reference nodes. By default
439+ * Indicates if the parser expands entity reference nodes. By default,
445440 * the value of this is set to true.
446441 *
447- * @return True if the parser will expand entity reference nodes.
442+ * @return True if the parser expands entity reference nodes.
448443 */
449444 public boolean isExpandingEntityRefs () {
450445 return expandingEntityRefs ;
@@ -461,11 +456,9 @@ public boolean isFormattedOutput() {
461456 }
462457
463458 /**
464- * Indicates whether or not document level events will be generated by the
465- * Marshaller.
459+ * Indicates whether the Marshaller will generate document level events.
466460 *
467- * @return True if the document level events will be generated by the
468- * Marshaller.
461+ * @return True if the Marshaller generates the document level events.
469462 */
470463 public boolean isFragment () {
471464 return fragment ;
@@ -492,7 +485,7 @@ public boolean isValidatingDtd() {
492485
493486 /**
494487 * Indicates the desire for processing <em>XInclude</em> if found in this
495- * type of XML representations. By default the value of this is set to
488+ * type of XML representations. By default, the value of this is set to
496489 * false.
497490 *
498491 * @return The current value of the xIncludeAware flag.
@@ -523,11 +516,11 @@ public void setContextPath(String contextPath) {
523516 }
524517
525518 /**
526- * Indicates if the parser will expand entity reference nodes. By default
519+ * Indicates if the parser expands entity reference nodes. By default,
527520 * the value of this is set to true.
528521 *
529522 * @param expandEntityRefs
530- * True if the parser will expand entity reference nodes.
523+ * True if the parser expands entity reference nodes.
531524 */
532525 public void setExpandingEntityRefs (boolean expandEntityRefs ) {
533526 this .expandingEntityRefs = expandEntityRefs ;
@@ -549,7 +542,7 @@ public void setFormattedOutput(boolean formattedOutput) {
549542 * Marshaller.
550543 *
551544 * @param fragment
552- * True if the document level events will be generated by the
545+ * True if the document level events are generated by the
553546 * Marshaller.
554547 */
555548 public void setFragment (boolean fragment ) {
@@ -634,7 +627,7 @@ public void setValidationEventHandler(
634627
635628 /**
636629 * Indicates the desire for processing <em>XInclude</em> if found in this
637- * type of XML representations. By default the value of this is set to
630+ * type of XML representations. By default, the value of this is set to
638631 * false.
639632 *
640633 * @param includeAware
@@ -651,7 +644,7 @@ public void setXIncludeAware(boolean includeAware) {
651644 * The writer to use when writing.
652645 *
653646 * @throws IOException
654- * If any error occurs attempting to write the stream.
647+ * If any error occurs, attempting to write the stream.
655648 */
656649 @ Override
657650 public void write (Writer writer ) throws IOException {
0 commit comments