|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ihr.xbrl.mapper.MapEngine
public class MapEngine
This is the server side map engine. This MapEngine is responsible of providing an available mapper to the calling proces and to instantiate a new mapper if there is none available.
| Field Summary | |
|---|---|
static java.lang.String |
MAPPER_LAZY_OUTPUT_INSTACE
The MAPPER_LAZY_OUTPUT_INSTACE defines how the final produced instance document is going to be further processed. |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MAPPER_LAZY_OUTPUT_INSTACE
The default value of this property is "false"
| Constructor Detail |
|---|
public MapEngine(java.net.URI configFile)
throws com.rs.lic.LicenseVerificationException,
MapConfigurationFileException
configFile - URI of the configuration file for mappers
com.rs.lic.LicenseVerificationException
MapConfigurationFileException - never thrown as the number of mappers to initialize is 0
public 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 initialize
com.rs.lic.LicenseVerificationException
MapConfigurationFileException
MapConfigurationFileException - if there is a problem initializing the mappers
public 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 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.
com.rs.lic.LicenseVerificationException
MapConfigurationFileException - if there is a problem initializing the mappers
public 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 properties
com.rs.lic.LicenseVerificationException
MapConfigurationFileException - if there is a problem initializing the mappers| Method Detail |
|---|
public 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 value
MapException
public 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 file
MapException - if there is something wrong.
public Mapper getMasterMapper()
throws MapConfigurationFileException
MapConfigurationFileException
public Mapper getMasterMapper(DTSLoadingBarInterface bar)
throws MapConfigurationFileException
bar - DTSLoadingBarInterface for sending messages during the master creation process
MapConfigurationFileException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||