Package com.helger.jaxb.builder
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 readIMPLTYPE- 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
-
Field Summary
Fields inherited from class com.helger.jaxb.builder.AbstractJAXBBuilder
m_aDocType -
Constructor Summary
ConstructorsConstructorDescriptionJAXBReaderBuilder(IJAXBDocumentType aDocType) Deprecated, for removal: This API element is subject to removal in a future version.JAXBReaderBuilder(IJAXBDocumentType aDocType, Class<JAXBTYPE> aImplClass) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.xml.bind.UnmarshallerDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.final Consumer<? super jakarta.xml.bind.Unmarshaller>Deprecated, for removal: This API element is subject to removal in a future version.final jakarta.xml.bind.ValidationEventHandlerDeprecated, for removal: This API element is subject to removal in a future version.read(IJAXBUnmarshaller<JAXBTYPE> aHandler) Deprecated, for removal: This API element is subject to removal in a future version.Read a document using the passed handler.final IMPLTYPEsetUnmarshallerCustomizer(Consumer<? super jakarta.xml.bind.Unmarshaller> aUnmarshallerCustomizer) Deprecated, for removal: This API element is subject to removal in a future version.final IMPLTYPEsetValidationEventHandler(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.toString()Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class com.helger.jaxb.builder.AbstractJAXBBuilder
exceptionCallbacks, getClassLoader, getJAXBContext, getJAXBDocumentType, getSchema, isUseJAXBContextCache, isUseSchema, setUseJAXBContextCache, setUseSchemaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.commons.traits.IGenericImplTrait
thisAsTMethods inherited from interface com.helger.commons.lang.IHasClassLoader
hasClassLoader
-
Constructor Details
-
JAXBReaderBuilder
Deprecated, for removal: This API element is subject to removal in a future version. -
JAXBReaderBuilder
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getImplClass
Deprecated, for removal: This API element is subject to removal in a future version. -
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 benull.- Parameters:
aEventHandler- The event handler to be used. May benull.- Returns:
- this
-
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.JAXBExceptionDeprecated, 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:IJAXBReaderRead a document using the passed handler.- Specified by:
readin interfaceIJAXBReader<JAXBTYPE>- Parameters:
aHandler- The unmarshalling handler. May not benull.- Returns:
nullin case reading fails.
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
toStringin classAbstractJAXBBuilder<IMPLTYPE extends JAXBReaderBuilder<JAXBTYPE,IMPLTYPE>>
-