Package com.helger.jaxb.builder
Class AbstractJAXBBuilder<IMPLTYPE extends AbstractJAXBBuilder<IMPLTYPE>>
java.lang.Object
com.helger.jaxb.builder.AbstractJAXBBuilder<IMPLTYPE>
- Type Parameters:
IMPLTYPE- The implementation class implementing this abstract class.
- All Implemented Interfaces:
com.helger.commons.lang.IHasClassLoader,com.helger.commons.traits.IGenericImplTrait<IMPLTYPE>
- Direct Known Subclasses:
AbstractWritingJAXBBuilder,JAXBReaderBuilder
@NotThreadSafe
@Deprecated(forRemoval=true,
since="11.0.3")
public abstract class AbstractJAXBBuilder<IMPLTYPE extends AbstractJAXBBuilder<IMPLTYPE>>
extends Object
implements com.helger.commons.traits.IGenericImplTrait<IMPLTYPE>, com.helger.commons.lang.IHasClassLoader
Deprecated, for removal: This API element is subject to removal in a future version.
Abstract builder class for reading, writing and validating JAXB documents.
- Author:
- Philip Helger
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final IJAXBDocumentTypeDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractJAXBBuilder(IJAXBDocumentType aDocType) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionfinal com.helger.commons.callback.CallbackList<com.helger.commons.callback.exception.IExceptionCallback<jakarta.xml.bind.JAXBException>> Deprecated, for removal: This API element is subject to removal in a future version.final ClassLoaderDeprecated, for removal: This API element is subject to removal in a future version.protected jakarta.xml.bind.JAXBContextDeprecated, for removal: This API element is subject to removal in a future version.final IJAXBDocumentTypeDeprecated, for removal: This API element is subject to removal in a future version.protected final SchemaDeprecated, for removal: This API element is subject to removal in a future version.final booleanDeprecated, for removal: This API element is subject to removal in a future version.final booleanDeprecated, for removal: This API element is subject to removal in a future version.final IMPLTYPEsetUseJAXBContextCache(boolean bUseJAXBContextCache) Deprecated, for removal: This API element is subject to removal in a future version.Set usage of theJAXBContextCache.final IMPLTYPEsetUseSchema(boolean bUseSchema) Deprecated, for removal: This API element is subject to removal in a future version.Set usage of XML Schema.toString()Deprecated, for removal: This API element is subject to removal in a future version.Methods 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
-
Field Details
-
m_aDocType
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
AbstractJAXBBuilder
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getJAXBDocumentType
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- The document type as passed in the constructor. Never
null.
-
getClassLoader
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getClassLoaderin interfacecom.helger.commons.lang.IHasClassLoader- Returns:
- The special class loader to be used.
nullby default.
-
isUseJAXBContextCache
public final boolean isUseJAXBContextCache()Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
trueif theJAXBContextCacheis used,falseif not. Default istrue.
-
setUseJAXBContextCache
Deprecated, for removal: This API element is subject to removal in a future version.Set usage of theJAXBContextCache. For performance reasons it's recommended to use the cache.- Parameters:
bUseJAXBContextCache-trueto use the cache,falseto create a newJAXBContextevery time.- Returns:
- this
-
isUseSchema
public final boolean isUseSchema()Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
trueif the XML Schema should be used to validate on unmarshalling,falseif not. Default istrue.- Since:
- 9.0.3
-
setUseSchema
Deprecated, for removal: This API element is subject to removal in a future version.Set usage of XML Schema. By default it is enabled, but for rare cases it could make sense to disable validation e.g. because of performance reasons.- Parameters:
bUseSchema-trueto use XML Schema,falseto not do it.- Returns:
- this
- Since:
- 9.0.3
-
exceptionCallbacks
@Nonnull @ReturnsMutableObject public final com.helger.commons.callback.CallbackList<com.helger.commons.callback.exception.IExceptionCallback<jakarta.xml.bind.JAXBException>> exceptionCallbacks()Deprecated, for removal: This API element is subject to removal in a future version. -
getSchema
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- The XML schema to be used for validating instances. May be
nullif no XSDs are present. Alsonullif
-
getJAXBContext
@Nonnull @OverrideOnDemand protected jakarta.xml.bind.JAXBContext getJAXBContext() throws jakarta.xml.bind.JAXBExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Throws:
jakarta.xml.bind.JAXBException
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.
-