Class JAXBReaderBuilder<JAXBTYPE,IMPLTYPE extends JAXBReaderBuilder<JAXBTYPE,IMPLTYPE>>

java.lang.Object
com.helger.jaxb.builder.AbstractJAXBBuilder<IMPLTYPE>
com.helger.jaxb.builder.JAXBReaderBuilder<JAXBTYPE,IMPLTYPE>
Type Parameters:
JAXBTYPE - The JAXB implementation class to be read
IMPLTYPE - The implementation class implementing this abstract class.
All Implemented Interfaces:
com.helger.commons.lang.IHasClassLoader, com.helger.commons.traits.IGenericImplTrait<IMPLTYPE>, IJAXBReader<JAXBTYPE>

@NotThreadSafe @Deprecated(forRemoval=true, since="11.0.0") public class JAXBReaderBuilder<JAXBTYPE,IMPLTYPE extends JAXBReaderBuilder<JAXBTYPE,IMPLTYPE>> extends AbstractJAXBBuilder<IMPLTYPE> implements IJAXBReader<JAXBTYPE>
Deprecated, for removal: This API element is subject to removal in a future version.
Since v11 - use the GenericJAXBMarshaller instead - it deals with all of the stuff in one class. Will be removed in v12
Builder class for reading JAXB documents.
Author:
Philip Helger
  • Constructor Details

    • JAXBReaderBuilder

      public JAXBReaderBuilder(@Nonnull IJAXBDocumentType aDocType)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • JAXBReaderBuilder

      public JAXBReaderBuilder(@Nonnull IJAXBDocumentType aDocType, @Nonnull Class<JAXBTYPE> aImplClass)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getImplClass

      @Nonnull protected final Class<JAXBTYPE> getImplClass()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getValidationEventHandler

      @Nullable public final jakarta.xml.bind.ValidationEventHandler getValidationEventHandler()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The special JAXB validation event handler to be used. By default JAXBBuilderDefaultSettings.getDefaultValidationEventHandler() is used.
    • setValidationEventHandler

      @Nonnull public final IMPLTYPE setValidationEventHandler(@Nullable jakarta.xml.bind.ValidationEventHandler aEventHandler)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the JAXB validation event handler to be used. May be null.
      Parameters:
      aEventHandler - The event handler to be used. May be null.
      Returns:
      this
    • getUnmarshallerCustomizer

      @Nullable public final Consumer<? super jakarta.xml.bind.Unmarshaller> getUnmarshallerCustomizer()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setUnmarshallerCustomizer

      @Nonnull public final IMPLTYPE setUnmarshallerCustomizer(@Nullable Consumer<? super jakarta.xml.bind.Unmarshaller> aUnmarshallerCustomizer)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • createUnmarshaller

      @Nonnull protected jakarta.xml.bind.Unmarshaller createUnmarshaller() throws jakarta.xml.bind.JAXBException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      jakarta.xml.bind.JAXBException
    • read

      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: IJAXBReader
      Read a document using the passed handler.
      Specified by:
      read in interface IJAXBReader<JAXBTYPE>
      Parameters:
      aHandler - The unmarshalling handler. May not be null.
      Returns:
      null in case reading fails.
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class AbstractJAXBBuilder<IMPLTYPE extends JAXBReaderBuilder<JAXBTYPE,IMPLTYPE>>