org.milyn.edisax.registry
Class DefaultMappingsRegistry
java.lang.Object
org.milyn.edisax.registry.AbstractMappingsRegistry
org.milyn.edisax.registry.DefaultMappingsRegistry
- All Implemented Interfaces:
- MappingsRegistry
public class DefaultMappingsRegistry
- extends AbstractMappingsRegistry
Default implementation of 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.
- Author:
- zubairov
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultMappingsRegistry
public DefaultMappingsRegistry(EdifactModel... models)
- Constructor mostly used for tests
- Parameters:
models -
DefaultMappingsRegistry
public DefaultMappingsRegistry(String mappingModelFiles,
URI baseURI)
throws EDIConfigurationException,
IOException,
SAXException
- Loading mapping model out of ZIP file
- Parameters:
string - baseURI -
- Throws:
SAXException
IOException
EDIConfigurationException
addModelReferences
public void addModelReferences(String models,
URI baseURI)
- Add references to the lookup list.
- Parameters:
references -
demandLoading
protected Map<String,EdifactModel> demandLoading(String[] nameComponents)
throws EDIConfigurationException,
IOException,
SAXException
- This method load all mapping models which are declared in
modelReferences map and returns them all back.
It is actually ignoring nameComponents parameter
because no on-demand loading is happening here.
- Specified by:
demandLoading in class AbstractMappingsRegistry
- Parameters:
nameComponents -
- Returns:
-
- Throws:
SAXException
IOException
EDIConfigurationException
Copyright © 2011. All Rights Reserved.