fr.ifremer.isisfish.datastore.update
Class ImportFromV2
java.lang.Object
fr.ifremer.isisfish.datastore.update.ImportFromV2
public class ImportFromV2
- extends java.lang.Object
- Author:
- poussin
|
Method Summary |
protected void |
convert(java.io.File sourceFile,
java.io.File destFile,
java.net.URL stylesheetURL)
Converti un fichier XML en lui applicant un fichier XSL |
protected java.lang.String |
getVersionEnd(java.net.URL xslurl)
|
protected java.net.URL[] |
getXSLFile(java.lang.String versionStart,
java.lang.String versionEnd)
Retourne les fichiers xsl qu'il faut appliquer dans l'ordre qu'il faut. |
void |
importXML(java.io.File xml)
Converti un fichier XML version 2 en un zip importable en v3 |
static void |
main(java.lang.String[] args)
|
protected java.util.List<org.dom4j.Element> |
selectElements(org.dom4j.Node node,
java.lang.String path)
|
protected java.util.List<org.dom4j.Node> |
selectNodes(org.dom4j.Node node,
java.lang.String path)
|
| 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 java.net.URL[] getXSLFile(java.lang.String versionStart,
java.lang.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 java.lang.String getVersionEnd(java.net.URL xslurl)
convert
protected void convert(java.io.File sourceFile,
java.io.File destFile,
java.net.URL stylesheetURL)
throws java.lang.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:
java.lang.Exception
selectNodes
protected java.util.List<org.dom4j.Node> selectNodes(org.dom4j.Node node,
java.lang.String path)
selectElements
protected java.util.List<org.dom4j.Element> selectElements(org.dom4j.Node node,
java.lang.String path)
importXML
public void importXML(java.io.File xml)
throws java.lang.Exception
- Converti un fichier XML version 2 en un zip importable en v3
- Parameters:
xml -
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 1999-2010 CodeLutin. All Rights Reserved.