eu.planets_project.services.utils.cli
Class CliMigrationPaths

java.lang.Object
  extended by eu.planets_project.services.utils.cli.CliMigrationPaths

public class CliMigrationPaths
extends Object

Create migration paths from an XML config file.

Author:
Asger Blekinge-Rasmussen

Method Summary
 String findMigrationCommand(URI in, URI out)
           
 CliMigrationPath findMigrationPath(URI sourceFormat, URI destinationFormat)
           
 MigrationPath[] getAsPlanetsPaths()
           
static CliMigrationPaths initialiseFromFile(String resourceName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 format
out - 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.