JAXBTYPE - The JAXB implementation class to be readIMPLTYPE - The implementation class implementing this abstract class.@NotThreadSafe public class JAXBReaderBuilder<JAXBTYPE,IMPLTYPE extends JAXBReaderBuilder<JAXBTYPE,IMPLTYPE>> extends AbstractJAXBBuilder<IMPLTYPE> implements IJAXBReader<JAXBTYPE>
| Modifier and Type | Class and Description |
|---|---|
static class |
JAXBReaderBuilder.DefaultExceptionHandler |
IJAXBReader.IJAXBUnmarshaller<JAXBTYPE>m_aDocType| Constructor and Description |
|---|
JAXBReaderBuilder(IJAXBDocumentType aDocType) |
JAXBReaderBuilder(IJAXBDocumentType aDocType,
Class<JAXBTYPE> aImplClass) |
| Modifier and Type | Method and Description |
|---|---|
protected Unmarshaller |
createUnmarshaller() |
com.helger.commons.callback.CallbackList<com.helger.commons.callback.exception.IExceptionCallback<JAXBException>> |
exceptionCallbacks() |
protected Class<JAXBTYPE> |
getImplClass() |
Consumer<? super Unmarshaller> |
getUnmarshallerCustomizer() |
ValidationEventHandler |
getValidationEventHandler() |
boolean |
isReadSecure()
Check if secure reading is enabled.
|
JAXBTYPE |
read(IJAXBReader.IJAXBUnmarshaller<JAXBTYPE> aHandler)
Read a document using the passed handler.
|
IMPLTYPE |
setReadSecure(boolean bReadSecure) |
IMPLTYPE |
setUnmarshallerCustomizer(Consumer<? super Unmarshaller> aUnmarshallerCustomizer) |
IMPLTYPE |
setValidationEventHandler(ValidationEventHandler aEventHandler)
Set the JAXB validation event handler to be used.
|
String |
toString() |
getClassLoader, getJAXBContext, getJAXBDocumentType, getSchema, isUseJAXBContextCache, isUseSchema, setClassLoader, setUseJAXBContextCache, setUseSchemaclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic JAXBReaderBuilder(@Nonnull IJAXBDocumentType aDocType)
public JAXBReaderBuilder(@Nonnull IJAXBDocumentType aDocType, @Nonnull Class<JAXBTYPE> aImplClass)
@Nullable public ValidationEventHandler getValidationEventHandler()
JAXBBuilderDefaultSettings.getDefaultValidationEventHandler()
is used.@Nonnull public final IMPLTYPE setValidationEventHandler(@Nullable ValidationEventHandler aEventHandler)
null.aEventHandler - The event handler to be used. May be null.@Nonnull @ReturnsMutableObject public final com.helger.commons.callback.CallbackList<com.helger.commons.callback.exception.IExceptionCallback<JAXBException>> exceptionCallbacks()
@Nullable public Consumer<? super Unmarshaller> getUnmarshallerCustomizer()
@Nonnull public final IMPLTYPE setUnmarshallerCustomizer(@Nullable Consumer<? super Unmarshaller> aUnmarshallerCustomizer)
public final boolean isReadSecure()
IJAXBReaderisReadSecure in interface IJAXBReader<JAXBTYPE>true if secure reading is enabled.@Nonnull protected Unmarshaller createUnmarshaller() throws JAXBException
JAXBException@Nullable public JAXBTYPE read(@Nonnull IJAXBReader.IJAXBUnmarshaller<JAXBTYPE> aHandler)
IJAXBReaderread in interface IJAXBReader<JAXBTYPE>aHandler - The unmarshalling handler. May not be null.null in case reading fails.public String toString()
toString in class AbstractJAXBBuilder<IMPLTYPE extends JAXBReaderBuilder<JAXBTYPE,IMPLTYPE>>Copyright © 2015–2018 Philip Helger. All rights reserved.