public abstract class AbstractCompiler
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected net.sf.saxon.s9api.DocumentBuilder |
builder |
protected net.sf.saxon.s9api.XsltCompiler |
compiler |
| Constructor and Description |
|---|
AbstractCompiler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
compileFile(Source source,
File targetFile)
Compiles a sourceFile to a targetFile.
|
protected void |
compileModule(net.sf.saxon.s9api.XdmNode document,
File targetFile)
Compiles a standard XSL module.
|
protected void |
compilePackage(net.sf.saxon.s9api.XdmNode document,
File targetFile)
Compiles a package, and adds to to the compiler.
|
protected net.sf.saxon.s9api.DocumentBuilder |
getBuilder()
Because we may need a DocumentBuilder elsewhere !
|
abstract File |
getCatalogFile()
The catalog file to use.
|
protected EntityResolver2 |
getEntityResolver()
Returns the EntityResolver to use
|
protected net.sf.saxon.s9api.Processor |
getProcessor()
Returns the Processor the plugin uses.
|
abstract top.marchand.maven.saxon.utils.SaxonOptions |
getSaxonOptions()
Returns the SaxonOptions associated to this plugin
|
protected URIResolver |
getUriResolver()
Because we may need a URIResolver elsewhere
|
protected net.sf.saxon.s9api.XsltCompiler |
getXsltCompiler()
Because we may need a compiler elsewhere
|
protected void |
initSaxon()
Initialize Saxon configuration
|
getLog, getPluginContext, setLog, setPluginContextprotected net.sf.saxon.s9api.DocumentBuilder builder
protected net.sf.saxon.s9api.XsltCompiler compiler
public abstract File getCatalogFile()
protected void compileFile(Source source, File targetFile) throws net.sf.saxon.s9api.SaxonApiException, FileNotFoundException
compilePackage(net.sf.saxon.s9api.XdmNode, java.io.File) is called,
else compileModule(net.sf.saxon.s9api.XdmNode, java.io.File) is called.source - The source file to compiletargetFile - The target file to generatenet.sf.saxon.s9api.SaxonApiException - In case of failureFileNotFoundException - In case of failureprotected void compileModule(net.sf.saxon.s9api.XdmNode document,
File targetFile)
throws net.sf.saxon.s9api.SaxonApiException,
FileNotFoundException
document - The source documenttargetFile - The file to generatenet.sf.saxon.s9api.SaxonApiException - In case of failureFileNotFoundException - In case of failureprotected void compilePackage(net.sf.saxon.s9api.XdmNode document,
File targetFile)
throws net.sf.saxon.s9api.SaxonApiException
document - The source documenttargetFile - The file to generatenet.sf.saxon.s9api.SaxonApiException - In case of failureprotected void initSaxon()
throws net.sf.saxon.trans.XPathException
net.sf.saxon.trans.XPathException - In case of problemprotected net.sf.saxon.s9api.Processor getProcessor()
protected net.sf.saxon.s9api.XsltCompiler getXsltCompiler()
protected URIResolver getUriResolver()
protected EntityResolver2 getEntityResolver()
protected net.sf.saxon.s9api.DocumentBuilder getBuilder()
public abstract top.marchand.maven.saxon.utils.SaxonOptions getSaxonOptions()
Copyright © 2017–2018. All rights reserved.