public class ImportFromV2 extends Object
| Constructor and Description |
|---|
ImportFromV2(boolean manual) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
convert(File sourceFile,
File destFile,
URL stylesheetURL)
Converti un fichier XML en lui applicant un fichier XSL
|
protected String |
getVersionEnd(URL xslurl) |
protected URL[] |
getXSLFile(String versionStart,
String versionEnd)
Retourne les fichiers xsl qu'il faut appliquer dans l'ordre qu'il faut.
|
void |
importXML(File xml)
Converti un fichier XML version 2 en un zip importable en v3
|
static void |
main(String[] args) |
protected List<org.dom4j.Element> |
selectElements(org.dom4j.Node node,
String path) |
protected List<org.dom4j.Node> |
selectNodes(org.dom4j.Node node,
String path) |
protected URL[] getXSLFile(String versionStart, String versionEnd)
versionStart - la version de départ du fichierversionEnd - la version auquel doit arriver le fichierprotected void convert(File sourceFile, File destFile, URL stylesheetURL) throws Exception
sourceFile - le fichier source XMLdestFile - le fichier résultat de l'opérationstylesheetURL - l'url de la feuille de style a appliquerExceptionpublic void importXML(File xml) throws Exception
xml - ExceptionCopyright © 1999-2012 CodeLutin. All Rights Reserved.