public final class XIncProcConfiguration extends Object
XIncProcConfiguration
class holds configuration options for XIncProcEngine
.Modifier and Type | Field and Description |
---|---|
static String |
ALLOW_FIXUP_BASE_URIS
The constant ALLOW_FIXUP_BASE_URIS.
|
static String |
ALLOW_FIXUP_LANGUAGE
The constant ALLOW_FIXUP_LANGUAGE.
|
static String |
SUPPORTED_XINCLUDE_VERSION
The XInclude version supported by the XIncProcEngine
|
Modifier and Type | Method and Description |
---|---|
net.sf.saxon.s9api.Processor |
getProcessor()
Gets Saxon
Processor . |
String |
getSupportedVersion()
Gets supported XInclude version by the engine
|
boolean |
isBaseUrisFixup()
Is base uris fixup sets in configuration ?
Defaut value is true
|
boolean |
isLanguageFixup()
Is language fixupsets in configuration ?
Defaut value is true
|
static XIncProcConfiguration |
newXIncProcConfiguration()
New XIncProcConfiguration.
|
XIncProcEngine |
newXIncProcEngine()
new
XIncProcEngine . |
XPointerEngine |
newXPointerEngine()
New
XPointerEngine . |
void |
setConfigurationProperty(String name,
Object value)
Sets configuration property.
|
void |
setErrorListener(ErrorListener errorListener)
Sets an
ErrorListener . |
void |
setProcessor(net.sf.saxon.s9api.Processor processor)
Set Saxon
Processor . |
public static final String ALLOW_FIXUP_BASE_URIS
public static final String ALLOW_FIXUP_LANGUAGE
public static final String SUPPORTED_XINCLUDE_VERSION
public static XIncProcConfiguration newXIncProcConfiguration()
public XPointerEngine newXPointerEngine()
XPointerEngine
.
The best way to get a new xpointer engine.
Usage of this method should be prefered to direct instanciationpublic XIncProcEngine newXIncProcEngine()
XIncProcEngine
.
This is the only way to get instance of XIncProcEngine to use custom Saxon Processor
via the XIncProcConfigurationpublic void setConfigurationProperty(String name, Object value)
name
- the namevalue
- the valuepublic void setErrorListener(ErrorListener errorListener)
ErrorListener
.
The ErrorListener
set in the configuration will be used
by the XIncProcEngine
errorListener
- the error listenerpublic boolean isBaseUrisFixup()
public boolean isLanguageFixup()
public net.sf.saxon.s9api.Processor getProcessor()
Processor
.
A simple Saxon HE processor is created by default for the treatment.
Another Saxon processor could be set to replace the default one.public void setProcessor(net.sf.saxon.s9api.Processor processor)
Processor
.
The default Saxon HE processor could be replace here.processor
- a Saxon Processorpublic String getSupportedVersion()
Copyright © 2011–2019. All rights reserved.