fr.ifremer.isisfish.datastore.update
Class ImportFromV2
java.lang.Object
fr.ifremer.isisfish.datastore.update.ImportFromV2
public class ImportFromV2
- extends Object
- Author:
- poussin
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImportFromV2
public ImportFromV2(boolean manual)
getXSLFile
protected URL[] getXSLFile(String versionStart,
String versionEnd)
- Retourne les fichiers xsl qu'il faut appliquer dans l'ordre qu'il faut.
- Parameters:
versionStart - la version de départ du fichierversionEnd - la version auquel doit arriver le fichier
- Returns:
- la liste des URLs des fichiers XSL a appliquer, ou null s'il est impossible de trouver les fichiers necessaire.
getVersionEnd
protected String getVersionEnd(URL xslurl)
convert
protected void convert(File sourceFile,
File destFile,
URL stylesheetURL)
throws Exception
- Converti un fichier XML en lui applicant un fichier XSL
- Parameters:
sourceFile - le fichier source XMLdestFile - le fichier résultat de l'opérationstylesheetURL - l'url de la feuille de style a appliquer
- Throws:
Exception
selectNodes
protected List<org.dom4j.Node> selectNodes(org.dom4j.Node node,
String path)
selectElements
protected List<org.dom4j.Element> selectElements(org.dom4j.Node node,
String path)
importXML
public void importXML(File xml)
throws Exception
- Converti un fichier XML version 2 en un zip importable en v3
- Parameters:
xml -
- Throws:
Exception
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 1999-2010 CodeLutin. All Rights Reserved.