Class PSWriterSettings

java.lang.Object
com.helger.schematron.pure.exchange.PSWriterSettings
All Implemented Interfaces:
com.helger.commons.lang.ICloneable<PSWriterSettings>, IPSWriterSettings

public class PSWriterSettings extends Object implements com.helger.commons.lang.ICloneable<PSWriterSettings>, IPSWriterSettings
This class contains the settings to be used with PSWriter.
Author:
Philip Helger
  • Field Details

    • DEFAULT_SETTINGS

      public static final IPSWriterSettings DEFAULT_SETTINGS
      The default writer settings to be used when nothing else is specified. By default indent and align is disabled, to avoid that newlines are interpreted as part of the content.
  • Constructor Details

  • Method Details

    • setXMLWriterSettings

      @Nonnull public IPSWriterSettings setXMLWriterSettings(@Nonnull com.helger.xml.serialize.write.IXMLWriterSettings aXMLWriterSettings)
    • getXMLWriterSettings

      @Nonnull @ReturnsMutableCopy public com.helger.xml.serialize.write.XMLWriterSettings getXMLWriterSettings()
      Specified by:
      getXMLWriterSettings in interface IPSWriterSettings
      Returns:
      The current XML writer settings to be used. Never null .
    • getClone

      @Nonnull public PSWriterSettings getClone()
      Specified by:
      getClone in interface com.helger.commons.lang.ICloneable<PSWriterSettings>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • createNamespaceMapping

      @Nonnull @ReturnsMutableCopy public static com.helger.xml.namespace.MapBasedNamespaceContext createNamespaceMapping(@Nonnull PSSchema aSchema)
      Helper method to extract the namespace mapping from the provided Schematron.
      Parameters:
      aSchema - The schema to extract the namespace context from. May not be null.
      Returns:
      A non-null but maybe empty namespace context