public class MapEngine
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MAPPER_IGNORE_FOOTNOTES
The MAPPER_IGNORE_FOOTNOTES property can be used to ignore footnotes when generating new XBRL reports.
|
static java.lang.String |
MAPPER_LAZY_OUTPUT_INSTACE
Deprecated.
|
static java.lang.String |
MAPPER_LAZY_OUTPUT_INSTANCE
The MAPPER_LAZY_OUTPUT_INSTANCE defines how the final produced instance document is going to be
further processed.
|
Constructor and Description |
---|
MapEngine(java.net.URI configFile)
Creates a mapping engine.
|
MapEngine(java.net.URI configFile,
int initialMappers)
Creates a mapping engine.
|
MapEngine(java.net.URI configFile,
int initialMappers,
DTSLoadingBarInterface bar,
boolean bCreateMasterMapper)
Creates a mapping engine.
|
MapEngine(java.net.URI configFile,
int initialMappers,
DTSLoadingBarInterface bar,
boolean bCreateMasterMapper,
java.util.Properties dtsProperties)
Creates a mapping engine.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear.
|
Mapper |
getMasterMapper()
Access to the master mapper.
|
Mapper |
getMasterMapper(DTSLoadingBarInterface bar)
Access to the master mapper.
|
XBRLInstance |
map(java.lang.Object[] inputs)
Executes the mapping defined in the configuration file.
|
XBRLInstance |
map(java.lang.Object[] inputs,
DTSLoadingBarInterface bar,
XBRLValidationReport mapReport)
Executes the mapping defined in the configuration file.
|
XBRLInstance |
map(java.lang.Object[] inputs,
XBRLValidationReport mapReport)
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.
|
public static final java.lang.String MAPPER_LAZY_OUTPUT_INSTANCE
The default value of this property is "false"
@Deprecated public static final java.lang.String MAPPER_LAZY_OUTPUT_INSTACE
public static final java.lang.String MAPPER_IGNORE_FOOTNOTES
The default value is "false"
public MapEngine(java.net.URI configFile) throws com.rs.lic.LicenseVerificationException, MapConfigurationFileException
This constructor does not initialize any number of mappers so it is faster than the constructor that initializes mappers.
configFile
- URI of the configuration file for mapperscom.rs.lic.LicenseVerificationException
- the license verification exceptionMapConfigurationFileException
- never thrown as the number of mappers to initialize is 0public MapEngine(java.net.URI configFile, int initialMappers) throws com.rs.lic.LicenseVerificationException, MapConfigurationFileException
This constructor initializes a number of mappers as inidicated in the initialMappers parameter.
The new mappers will be in the free state
configFile
- URI of the configuration file for mappersinitialMappers
- number of mappers to initializecom.rs.lic.LicenseVerificationException
- the license verification exceptionMapConfigurationFileException
- if there is a problem initializing the mapperspublic MapEngine(java.net.URI configFile, int initialMappers, DTSLoadingBarInterface bar, boolean bCreateMasterMapper) throws com.rs.lic.LicenseVerificationException, MapConfigurationFileException
This constructor initializes a number of mappers as inidicated in the initialMappers parameter.
The new mappers will be in the free state
configFile
- URI of the configuration file for mappersinitialMappers
- number of mappers to initializebar
- this is a class that will be updated with messages during the process. Can be nullbCreateMasterMapper
- is true if the master mapper shall be created during this call. If bar is not null, there will be messages sent to the bar during the creation of the master.com.rs.lic.LicenseVerificationException
- the license verification exceptionMapConfigurationFileException
- if there is a problem initializing the mapperspublic MapEngine(java.net.URI configFile, int initialMappers, DTSLoadingBarInterface bar, boolean bCreateMasterMapper, java.util.Properties dtsProperties) throws com.rs.lic.LicenseVerificationException, MapConfigurationFileException
This constructor initializes a number of mappers as inidicated in the initialMappers parameter.
The new mappers will be in the free state
configFile
- URI of the configuration file for mappersinitialMappers
- number of mappers to initializebar
- this is a class that will be updated with messages during the processbCreateMasterMapper
- is true if the master mapper shall be created during this call. If bar is not null, there will be messages sent to the bar during the creation of the master.dtsProperties
- properties for new DTSContainers inside the Mapper and mapper specific propertiescom.rs.lic.LicenseVerificationException
- the license verification exceptionMapConfigurationFileException
- if there is a problem initializing the mapperspublic XBRLInstance map(java.lang.Object[] inputs) throws MapException
The returned instance is not validated against the taxonomy and may not be valid if the taxonomy contains tuples. The validation of the generated report must be responsibility of the next step in the process
inputs
- array of parameters to be sent to the drivers. null is valid valueMapException
- the map exceptionpublic XBRLInstance map(java.lang.Object[] inputs, XBRLValidationReport mapReport) throws MapException
The returned instance is not validated against the taxonomy and may not be valid if the taxonomy contains tuples. The validation of the generated report must be responsibility of the next step in the process
If mapReport not is null, at the end it will contain all the problems encountered during the import. If mapReport is null, the process will stop when it encounters the first problem encountered during the import.
inputs
- array of parameters to be sent to the drivers. null is valid valuemapReport
- the optional mappper reportMapException
- the map exceptionpublic XBRLInstance map(java.lang.Object[] inputs, DTSLoadingBarInterface bar, XBRLValidationReport mapReport) throws MapException
The returned instance is not validated against the taxonomy and may not be valid if the taxonomy contains tuples. The validation of the generated report must be responsibility of the next step in the process
If mapReport not is null, at the end it will contain all the problems encountered during the import. If mapReport is null, the process will stop when it encounters the first problem encountered during the import.
inputs
- array of parameters to be sent to the drivers. null is valid valuebar
- instance of DTSLoadingBarInterface or null if not requiredmapReport
- the optional mappper reportMapException
- the map exceptionpublic void migrateConfigFile(XBRLInstance versioningReport, java.net.URI outputReportUri, java.net.URI newConfigFileUri) throws MapException
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 fileMapException
- if there is something wrong.public Mapper getMasterMapper() throws MapConfigurationFileException
MapConfigurationFileException
- the map configuration file exceptionpublic Mapper getMasterMapper(DTSLoadingBarInterface bar) throws MapConfigurationFileException
bar
- DTSLoadingBarInterface for sending messages during the master creation processMapConfigurationFileException
- the map configuration file exceptionpublic void clear() throws java.lang.Throwable
java.lang.Throwable
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa