IMPLTYPE - The implementation class implementing this abstract class.@NotThreadSafe public abstract class AbstractJAXBBuilder<IMPLTYPE extends AbstractJAXBBuilder<IMPLTYPE>> extends Object implements com.helger.commons.traits.IGenericImplTrait<IMPLTYPE>, com.helger.commons.lang.IHasClassLoader
| Modifier and Type | Field and Description |
|---|---|
protected IJAXBDocumentType |
m_aDocType |
| Constructor and Description |
|---|
AbstractJAXBBuilder(IJAXBDocumentType aDocType) |
| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.callback.CallbackList<com.helger.commons.callback.exception.IExceptionCallback<JAXBException>> |
exceptionCallbacks() |
ClassLoader |
getClassLoader() |
protected JAXBContext |
getJAXBContext() |
IJAXBDocumentType |
getJAXBDocumentType() |
protected Schema |
getSchema() |
boolean |
isUseJAXBContextCache() |
boolean |
isUseSchema() |
IMPLTYPE |
setUseJAXBContextCache(boolean bUseJAXBContextCache)
Set usage of the
JAXBContextCache. |
IMPLTYPE |
setUseSchema(boolean bUseSchema)
Set usage of XML Schema.
|
String |
toString() |
protected final IJAXBDocumentType m_aDocType
public AbstractJAXBBuilder(@Nonnull IJAXBDocumentType aDocType)
@Nonnull public final IJAXBDocumentType getJAXBDocumentType()
null.@Nullable public final ClassLoader getClassLoader()
getClassLoader in interface com.helger.commons.lang.IHasClassLoadernull by default.public final boolean isUseJAXBContextCache()
true if the JAXBContextCache is used,
false if not. Default is true.@Nonnull public final IMPLTYPE setUseJAXBContextCache(boolean bUseJAXBContextCache)
JAXBContextCache. For performance reasons it's
recommended to use the cache.bUseJAXBContextCache - true to use the cache, false to create a
new JAXBContext every time.public final boolean isUseSchema()
true if the XML Schema should be used to validate on
unmarshalling, false if not. Default is
true.@Nonnull public final IMPLTYPE setUseSchema(boolean bUseSchema)
bUseSchema - true to use XML Schema, false to not do
it.@Nonnull @ReturnsMutableObject public final com.helger.commons.callback.CallbackList<com.helger.commons.callback.exception.IExceptionCallback<JAXBException>> exceptionCallbacks()
@Nullable protected final Schema getSchema()
null if no XSDs are present. Also null if@Nonnull @OverrideOnDemand protected JAXBContext getJAXBContext() throws JAXBException
JAXBExceptionCopyright © 2015–2021 Philip Helger. All rights reserved.