public final class OutputOptions
extends java.lang.Object
Output options must be supplied to the Schematron validator and affect the generated SVRL output.
This class uses a fluent style and instances are immutable so that options can be reused without side-effects. *
Unless specified, Schematron uses the defaults() method.
For backward-compatibility with the previous version of this library, the defaults can be overriden to
use behave like the previous version. To run in compatibility mode, set the system property
org.pageseeder.schematron.compatibility to "1.0".
| Modifier and Type | Method and Description |
|---|---|
static OutputOptions |
defaults()
The default output options use UTF-8 encoding, do not indent the results and omit the XML declaration.
|
java.lang.String |
encoding() |
OutputOptions |
encoding(java.lang.String encoding)
Set the encoding to use
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
OutputOptions |
indent(boolean indent) |
boolean |
isIndent() |
boolean |
isOmitXmlDeclaration() |
OutputOptions |
omitXmlDeclaration(boolean omitXmlDeclaration) |
java.lang.String |
toString() |
boolean |
usePrefixInLocation() |
OutputOptions |
usePrefixInLocation(boolean usePrefixInLocation) |
public static OutputOptions defaults()
encoding = "utf-8"indent = falseomitXmlDeclaration = falseusePrefixInLocation = falseIn compatibility mode, omitXmlDeclaration = true and usePrefixInLocation = true
public OutputOptions encoding(java.lang.String encoding)
encoding - the charset to use for the outputjava.nio.charset.UnsupportedCharsetException - If the charset is not supportedpublic OutputOptions indent(boolean indent)
public OutputOptions omitXmlDeclaration(boolean omitXmlDeclaration)
public OutputOptions usePrefixInLocation(boolean usePrefixInLocation)
public java.lang.String encoding()
public boolean isIndent()
public boolean isOmitXmlDeclaration()
public boolean usePrefixInLocation()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object