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 |
|---|---|
ClassLoader |
getClassLoader() |
protected JAXBContext |
getJAXBContext() |
IJAXBDocumentType |
getJAXBDocumentType() |
protected Schema |
getSchema() |
boolean |
isUseJAXBContextCache() |
boolean |
isUseSchema() |
IMPLTYPE |
setClassLoader(ClassLoader aClassLoader)
Deprecated.
|
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.@Nonnull @Deprecated @DevelopersNote(value="Deprecated since v9.0.0") public final IMPLTYPE setClassLoader(@Nullable ClassLoader aClassLoader)
aClassLoader - The class loader to be used. May be null.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.@Nullable protected final Schema getSchema()
null if no XSDs are present. Also null if@Nonnull @OverrideOnDemand protected JAXBContext getJAXBContext() throws JAXBException
JAXBExceptionCopyright © 2015–2018 Philip Helger. All rights reserved.