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 Summary
FieldsModifier and TypeFieldDescriptionstatic final IPSWriterSettingsThe default writer settings to be used when nothing else is specified. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.helger.xml.namespace.MapBasedNamespaceContextcreateNamespaceMapping(PSSchema aSchema) Helper method to extract the namespace mapping from the provided Schematron.getClone()com.helger.xml.serialize.write.XMLWriterSettingssetXMLWriterSettings(com.helger.xml.serialize.write.IXMLWriterSettings aXMLWriterSettings) toString()
-
Field Details
-
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
-
PSWriterSettings
public PSWriterSettings() -
PSWriterSettings
-
-
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:
getXMLWriterSettingsin interfaceIPSWriterSettings- Returns:
- The current XML writer settings to be used. Never
null.
-
getClone
- Specified by:
getClonein interfacecom.helger.commons.lang.ICloneable<PSWriterSettings>
-
toString
-
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 benull.- Returns:
- A non-
nullbut maybe empty namespace context
-