public final class CompileOptions
extends java.lang.Object
Compile options must be supplied to the Schematron compiler and affect the generated validator.
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 |
|---|---|
CompileOptions |
compact(boolean compact)
The latest version all.
|
java.lang.String |
defaultQueryBinding()
Indicates which query binding to use if not specified in the Schema.
|
CompileOptions |
defaultQueryBinding(java.lang.String defaultQueryBinding)
Schematron assumes `xslt` by default, but this method allows you to change this.
|
static CompileOptions |
defaults()
The default compile options.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
hasMetadata()
Indicates whether to include the `
|
boolean |
isCompact()
Indicates whether to only generate the compact SVRL output
|
boolean |
isStreamable() |
CompileOptions |
metadata(boolean metadata)
Whether to generate and include the `
|
CompileOptions |
streamable(boolean streamable)
Set whether the source is streamble.
|
java.util.Map<java.lang.String,java.lang.Object> |
toParameters() |
java.util.Map<java.lang.String,java.lang.Object> |
toParameters(java.lang.String phase)
Returns a new mutable parameter map containing the parameters corresponding to these
options.
|
java.lang.String |
toString() |
public static CompileOptions defaults()
They are:
defaultQueryBinding = "xslt"metadata = falsestreamable = falsecompact = falseIn compatibility mode, defaultQueryBinding = "xslt2"
public CompileOptions defaultQueryBinding(java.lang.String defaultQueryBinding)
defaultQueryBinding - The query binding to use if not specified in the Schema.public CompileOptions metadata(boolean metadata)
metadata - The Schematron metadata.public CompileOptions streamable(boolean streamable)
public CompileOptions compact(boolean compact)
The latest version all.
public java.lang.String defaultQueryBinding()
public boolean isCompact()
false by defaultpublic boolean hasMetadata()
false by defaultpublic boolean isStreamable()
false by defaultpublic java.util.Map<java.lang.String,java.lang.Object> toParameters()
public java.util.Map<java.lang.String,java.lang.Object> toParameters(java.lang.String phase)
phase - The phase to use for validationpublic 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