bd08b6387c621f8fdf1a2ade2139ea7e0a7d19ee
[cdmlib.git] / app-import / src / main / java / eu / etaxonomy / cdm / app / sdd / SDDSources.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
8 */
9
10 package eu.etaxonomy.cdm.app.sdd;
11
12 import java.net.URL;
13
14 import org.apache.log4j.Logger;
15
16 /**
17 * @author h.fradin
18 * @created 24.10.2008
19 * @version 1.0
20 */
21 public class SDDSources {
22 @SuppressWarnings("unused")
23 private static final Logger logger = Logger.getLogger(SDDSources.class);
24
25 public static String viola_local(){
26 // SDD XML example from the SDD v1.1 package
27 URL url = new SDDSources().getClass().getResource("/sdd/SDD-Test-Simple.xml");
28 String sourceUrl = url.toString();
29 return sourceUrl;
30
31 }
32
33 public static String SDDImport_local(String filePath){
34 // any SDD XML file
35 String sourceUrl = "file:" + filePath;
36 return sourceUrl;
37
38 }
39
40 public static String LIAS_local(){
41 // SDD XML example from http://wiki.tdwg.org/twiki/bin/view/SDD/RealWorldExamples_SDD1dot1
42 //String sourceUrl = "file:C:/Documents and Settings/lis/Mes documents/SDD/SDD bis/SDD1.1/SDD1.1/examples/LIAS_Main.sdd11/LIAS_Main.sdd11.xml";
43 URL url = new SDDSources().getClass().getResource("/sdd/LIAS_Main.sdd11.xml");
44 String sourceUrl = url.toString();
45 return sourceUrl;
46
47 }
48
49 public static String Erythroneura_local(){
50 // SDD XML example from http://wiki.tdwg.org/twiki/bin/view/SDD/RealWorldExamples_SDD1dot1
51 //String sourceUrl = "file:C:/Documents and Settings/lis/Mes documents/SDD/SDD bis/SDD1.1/SDD1.1/examples/Erythroneura.sdd11/Erythroneura.sdd11.xml";
52 URL url = new SDDSources().getClass().getResource("/sdd/Erythroneura.sdd11.xml");
53 String sourceUrl = url.toString();
54 return sourceUrl;
55
56 }
57
58 public static String Cicad_local(){
59 // SDD XML example from http://wiki.tdwg.org/twiki/bin/view/SDD/RealWorldExamples_SDD1dot1
60 //String sourceUrl = "file:C:/Documents and Settings/lis/Mes documents/SDD/SDD bis/SDD1.1/SDD1.1/examples/Cicad.sdd11/Cicad.sdd11.xml";
61 URL url = new SDDSources().getClass().getResource("/sdd/Cicad.sdd11.xml");
62 String sourceUrl = url.toString();
63 return sourceUrl;
64
65 }
66
67 public static String ValRosandraFRIDAKey_local(){
68 // SDD XML example from http://wiki.tdwg.org/twiki/bin/view/SDD/RealWorldExamples_SDD1dot1
69 //String sourceUrl = "file:C:/Documents and Settings/lis/Mes documents/SDD/SDD bis/SDD1.1/SDD1.1/examples/Val-Rosandra-FRIDA-Key.sdd11/Val-Rosandra-FRIDA-Key.sdd11.xml";
70 URL url = new SDDSources().getClass().getResource("/sdd/Val-Rosandra-FRIDA-Key.sdd11.xml");
71 String sourceUrl = url.toString();
72 return sourceUrl;
73
74 }
75
76 public static String FreshwaterAquaticInsects_local(){
77 // SDD export from an Xper2 application
78 String sourceUrl = "file:C:/Documents and Settings/lis/Mes documents/SDD/SDD bis/SDD1.1/SDD1.1/examples/Freshwater aquatic insects/test v2.sdd.xml";
79 return sourceUrl;
80 }
81
82 public static String Crepis_test_local(){
83 URL url = new SDDSources().getClass().getResource("/sdd/Crepis-test.sdd");
84 String sourceUrl = url.toString();
85 return sourceUrl;
86 }
87
88 public static String Cichorieae_DA_export_sdd(){
89 URL url = new SDDSources().getClass().getResource("/sdd/Cichorieae-DA-export-sdd.xml");
90 String sourceUrl = url.toString();
91 return sourceUrl;
92 }
93
94 }