eu.planets_project.services.utils.cli
Class CliMigrationPaths
java.lang.Object
eu.planets_project.services.utils.cli.CliMigrationPaths
public class CliMigrationPaths
- extends Object
Create migration paths from an XML config file.
- Author:
- Asger Blekinge-Rasmussen
initialiseFromFile
public static CliMigrationPaths initialiseFromFile(String resourceName)
throws ParserConfigurationException,
IOException,
SAXException,
URISyntaxException
- Parameters:
resourceName
- The XML file containing the path configuration
- Returns:
- The paths defined in the XML file
- Throws:
ParserConfigurationException
IOException
SAXException
URISyntaxException
findMigrationCommand
public String findMigrationCommand(URI in,
URI out)
- Parameters:
in
- The input formatout
- The output format
- Returns:
- The tool of the path corresponding to the given input and output
findMigrationPath
public CliMigrationPath findMigrationPath(URI sourceFormat,
URI destinationFormat)
- Parameters:
sourceFormat
- destinationFormat
-
- Returns:
- A migration path from sourceFormat to destinationFormat
getAsPlanetsPaths
public MigrationPath[] getAsPlanetsPaths()
- Returns:
- The migration paths as planets paths
Copyright © 2013 Open Planets Foundation. All Rights Reserved.