public class LoaderEngine
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | loaderSchemaURIThe loader schema uri. | 
| Constructor and Description | 
|---|
| LoaderEngine(java.net.URI configFile)Creates a loader engine and loads the configuration file for this engine. | 
| LoaderEngine(java.net.URI configFile,
            int initialLoaders,
            boolean bCreateMasterLoader,
            java.util.Properties loaderProperties)Creates a loader engine and loads the configuration file for this engine. | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | createLoaderFromMapper(java.lang.String mapperTemplateFile,
                      java.lang.String loaderTemplateFile,
                      java.lang.String transformerConfigFile,
                      java.lang.String driverClassName,
                      java.lang.String driverConfFile)Creates the loader from mapper. | 
| java.util.Iterator<DTSContainer> | getDTSs()Returns an iterator over all DTSs loaded in this engine. | 
| Loader | getLoader(DTSContainer dts)Returns a loader from the engine. | 
| Loader | getMasterLoader(DTSContainer dts)Access to the master loader. | 
| net.sf.saxon.s9api.Processor | getProcessor()Gets the processor. | 
| java.lang.Object[] | load(javax.xml.transform.Source xmlSource)Deprecated. 
 Sinde version 2.8.6 the load(Source, LoaderContext) method shall be used instead | 
| java.lang.Object[] | load(javax.xml.transform.Source xmlSource,
    LoaderContext lc)Executes the mapping defined in the configuration file. | 
| java.lang.Object[] | load(XBRLInstance instance,
    DTSContainer dts)Deprecated. 
 use the load(XBRLInstance instance,DTSContainer dts, LoaderContext lc) method
             instead because the LoaderContext parameter will hold additional results and
             is usable across multiple threads | 
| java.lang.Object[] | load(XBRLInstance instance,
    DTSContainer dts,
    LoaderContext lc)Executes the mapping defined in the configuration file. | 
| void | migrateConfigFile(XBRLInstance versioningReport,
                 java.net.URI outputReportUri,
                 java.net.URI newConfigFileUri)Migrates a configuration file from using a DTS to using a new DTS with information from
 an XBRL versioning report. | 
| LoaderContext | newLoaderContext()Factory method to create a LoaderContext instance. | 
| void | releaseLoader(Loader l,
             DTSContainer dts)Liberates a loader so it can be used by other threads. | 
| void | setURI(java.net.URI newURI)Changes or sets this URI new config file. | 
| void | writeConfigFile(DTSContainer theDts)Write config file. | 
public LoaderEngine(java.net.URI configFile)
             throws LoaderConfigurationFileException,
                    com.rs.lic.LicenseVerificationException
configFile - the config fileLoaderConfigurationFileException - the loader configuration file exceptioncom.rs.lic.LicenseVerificationException - the license verification exceptionpublic LoaderEngine(java.net.URI configFile,
                    int initialLoaders,
                    boolean bCreateMasterLoader,
                    java.util.Properties loaderProperties)
             throws LoaderConfigurationFileException,
                    com.rs.lic.LicenseVerificationException
configFile - the config fileinitialLoaders - the initial loadersbCreateMasterLoader - the b create master loaderloaderProperties - the loader propertiesLoaderConfigurationFileException - the loader configuration file exceptioncom.rs.lic.LicenseVerificationException - the license verification exceptionpublic net.sf.saxon.s9api.Processor getProcessor()
public java.util.Iterator<DTSContainer> getDTSs()
public Loader getLoader(DTSContainer dts) throws LoaderConfigurationFileException
dts - the dtsLoaderConfigurationFileException - the loader configuration file exceptionpublic Loader getMasterLoader(DTSContainer dts) throws LoaderException, LoaderConfigurationFileException
dts - the dtsLoaderException - the loader exceptionLoaderConfigurationFileException - the loader configuration file exceptionpublic void releaseLoader(Loader l, DTSContainer dts) throws LoaderException
l - the ldts - the dtsLoaderException - the loader exceptionpublic void setURI(java.net.URI newURI)
newURI - URIpublic java.lang.Object[] load(XBRLInstance instance, DTSContainer dts) throws LoaderException
instance - document input to be sent. No DTS Checking is performeddts - is the DTS of this loader that is compatible with the instance DTS container.LoaderException - the loader exceptionpublic java.lang.Object[] load(XBRLInstance instance, DTSContainer dts, LoaderContext lc) throws LoaderException
instance - document input to be sent. No DTS Checking is performeddts - is the DTS of this loader that is compatible with the instance DTS container.lc - the lcLoaderException - the loader exception@Deprecated
public java.lang.Object[] load(javax.xml.transform.Source xmlSource)
                                    throws LoaderException
xmlSource - input source of the instance documentLoaderException - the loader exceptionpublic java.lang.Object[] load(javax.xml.transform.Source xmlSource,
                               LoaderContext lc)
                        throws LoaderException
xmlSource - input source of the instance documentlc - an instance of the LoaderContext that will hold a copy of the loader result and 
        might contain additional information such as files extracted from fields in the
        XBRL documentLoaderException - the loader exceptionpublic void migrateConfigFile(XBRLInstance versioningReport, java.net.URI outputReportUri, java.net.URI newConfigFileUri) throws LoaderException
versioningReport - XBRLInstance the versioning report describing the changes between the two DTSsoutputReportUri - where the report about the migration process will be serailizednewConfigFileUri - the URI for the new configuration fileLoaderException - the loader exceptionpublic static void createLoaderFromMapper(java.lang.String mapperTemplateFile,
                                          java.lang.String loaderTemplateFile,
                                          java.lang.String transformerConfigFile,
                                          java.lang.String driverClassName,
                                          java.lang.String driverConfFile)
                                   throws MapConfigurationFileException
mapperTemplateFile - the mapper template fileloaderTemplateFile - the loader template filetransformerConfigFile - the transformer config filedriverClassName - the driver class namedriverConfFile - the driver conf fileMapConfigurationFileException - the map configuration file exceptionpublic void writeConfigFile(DTSContainer theDts) throws LoaderException
theDts - the the dtsLoaderException - the loader exceptionpublic LoaderContext newLoaderContext()
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa