public class DefaultMappingsRegistry extends AbstractMappingsRegistry
MappingsRegistry
.
Default implementation loading EDIFACT models based on the specified list of model files
which could be provided either via constructor or via addModelReferences(String, URI)
method.content
Constructor and Description |
---|
DefaultMappingsRegistry(EdifactModel... models)
Constructor mostly used for tests
|
DefaultMappingsRegistry(String mappingModelFiles,
URI baseURI)
Loading mapping model out of ZIP file
|
Modifier and Type | Method and Description |
---|---|
void |
addModelReferences(String models,
URI baseURI)
Add references to the lookup list.
|
protected Map<String,EdifactModel> |
demandLoading(String[] nameComponents)
This method load all mapping models which are declared in
modelReferences map and returns them all back. |
getMappingModel
public DefaultMappingsRegistry(EdifactModel... models)
models
- public DefaultMappingsRegistry(String mappingModelFiles, URI baseURI) throws EDIConfigurationException, IOException, SAXException
string
- baseURI
- SAXException
IOException
EDIConfigurationException
public void addModelReferences(String models, URI baseURI)
references
- protected Map<String,EdifactModel> demandLoading(String[] nameComponents) throws EDIConfigurationException, IOException, SAXException
modelReferences
map and returns them all back.
It is actually ignoring nameComponents parameter
because no on-demand loading is happening here.demandLoading
in class AbstractMappingsRegistry
nameComponents
- SAXException
IOException
EDIConfigurationException
Copyright © 2020. All rights reserved.