/** * Enable or disable the formatting of the output. * * @param bFormattedOutput * <code>true</code> to enable it, <code>false</code> to disable it. * @return this for chaining */ @Nonnull public final IMPLTYPE setFormattedOutput (final boolean bFormattedOutput) { m_bFormattedOutput = bFormattedOutput; return thisAsT (); }
final Marshaller aMarshaller = createMarshaller (); final Consumer <? super Marshaller> aCustomizer = getMarshallerCustomizer (); if (aCustomizer != null) aCustomizer.accept (aMarshaller); final JAXBElement <JAXBTYPE> aJAXBElement = createJAXBElement (aJAXBDocument); aMarshallerFunc.doMarshal (aMarshaller, aJAXBElement); return ESuccess.SUCCESS; exceptionCallbacks ().forEach (x -> x.onException (ex));
/** * Set the charset to be used for writing JAXB objects. * * @param aCharset * The charset to be used by default. May be <code>null</code>. * @return this for chaining */ @Nonnull public final IMPLTYPE setCharset (@Nullable final Charset aCharset) { m_aCharset = aCharset; return thisAsT (); }
/** * Set the namespace context (prefix to namespace URL mapping) to be used. * * @param aNSContext * The namespace context to be used. May be <code>null</code>. * @return this for chaining */ @Nonnull public final IMPLTYPE setNamespaceContext (@Nullable final INamespaceContext aNSContext) { m_aNSContext = aNSContext; return thisAsT (); }
/** * Set the JAXB validation event handler to be used. May be <code>null</code>. * * @param aEventHandler * The event handler to be used. May be <code>null</code>. * @return this for chaining */ @Nonnull public final IMPLTYPE setValidationEventHandler (@Nullable final ValidationEventHandler aEventHandler) { m_aEventHandler = aEventHandler; return thisAsT (); }
/** * Set the indent string to be used for writing JAXB objects. * * @param sIndentString * The indent string to be used. May be <code>null</code>. * @return this for chaining */ @Nonnull public final IMPLTYPE setIndentString (@Nullable final String sIndentString) { m_sIndentString = sIndentString; return thisAsT (); }
/** * Set the Schema Location to be used for writing JAXB objects. * * @param sSchemaLocation * The Schema Location to be used. May be <code>null</code>. * @return this for chaining * @since 8.6.0 */ @Nonnull public final IMPLTYPE setSchemaLocation (@Nullable final String sSchemaLocation) { m_sSchemaLocation = sSchemaLocation; return thisAsT (); }
/** * Set the no namespace Schema Location to be used for writing JAXB objects. * * @param sNoNamespaceSchemaLocation * The no namespace Schema Location to be used. May be * <code>null</code>. * @return this for chaining * @since 9.0.0 */ @Nonnull public final IMPLTYPE setNoNamespaceSchemaLocation (@Nullable final String sNoNamespaceSchemaLocation) { m_sNoNamespaceSchemaLocation = sNoNamespaceSchemaLocation; return thisAsT (); }