Project

General

Profile

« Previous | Next » 

Revision b920f5c2

Added by Andreas Müller over 3 years ago

cleanup

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/app/sdd/SDDSources.java
1 1
/**
2 2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
3
* European Distributed Institute of Taxonomy
4 4
* http://www.e-taxonomy.eu
5
* 
5
*
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
......
23 23
public class SDDSources {
24 24
	@SuppressWarnings("unused")
25 25
	private static final Logger logger = Logger.getLogger(SDDSources.class);
26
	
26

  
27 27

  
28 28
	public static URI tdwg_expert(){
29 29

  
......
35 35
//			// TODO Auto-generated catch block
36 36
//			e.printStackTrace();
37 37
//		}
38
//		
38
//
39 39
//		URL url = new SDDSources().getClass().getResource("/sdd/SDD-Test-Simple.xml");
40 40
		String sourceUrl = "C:\\localCopy\\tdwg2010\\data\\descriptions\\sdd\\Xper-Cichorium_spinosum.sdd.xml";
41 41
//		String sourceUrl = url.toString();
42 42
		URI uri = new File(sourceUrl).toURI();
43 43
		return uri;
44
		
44

  
45 45
	}
46 46

  
47
	
47

  
48 48
	public static String viola_local(){
49 49
		//		SDD XML example from the SDD v1.1 package
50 50
		URL url = new SDDSources().getClass().getResource("/sdd/SDD-Test-Simple.xml");
51 51
		String sourceUrl = url.toString();
52 52
		return sourceUrl;
53
		
53

  
54 54
	}
55
	
55

  
56 56
	public static String SDDImport_local(String filePath){
57 57
		//		any SDD XML file
58 58
		String sourceUrl = "file:" + filePath;
59 59
		return sourceUrl;
60
		
60

  
61 61
	}
62
	
62

  
63 63
	public static String LIAS_local(){
64 64
		//		SDD XML example from http://wiki.tdwg.org/twiki/bin/view/SDD/RealWorldExamples_SDD1dot1
65 65
		//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";
66 66
		URL url = new SDDSources().getClass().getResource("/sdd/LIAS_Main.sdd11.xml");
67 67
		String sourceUrl = url.toString();
68 68
		return sourceUrl;
69
		
69

  
70 70
	}
71
	
71

  
72 72
	public static String Erythroneura_local(){
73 73
		//		SDD XML example from http://wiki.tdwg.org/twiki/bin/view/SDD/RealWorldExamples_SDD1dot1
74 74
		//String sourceUrl = "file:C:/Documents and Settings/lis/Mes documents/SDD/SDD bis/SDD1.1/SDD1.1/examples/Erythroneura.sdd11/Erythroneura.sdd11.xml";
75 75
		URL url = new SDDSources().getClass().getResource("/sdd/Erythroneura.sdd11.xml");
76 76
		String sourceUrl = url.toString();
77 77
		return sourceUrl;
78
		
78

  
79 79
	}
80
	
80

  
81 81
	public static String Cicad_local(){
82 82
		//		SDD XML example from http://wiki.tdwg.org/twiki/bin/view/SDD/RealWorldExamples_SDD1dot1
83 83
		//String sourceUrl = "file:C:/Documents and Settings/lis/Mes documents/SDD/SDD bis/SDD1.1/SDD1.1/examples/Cicad.sdd11/Cicad.sdd11.xml";
84 84
		URL url = new SDDSources().getClass().getResource("/sdd/Cicad.sdd11.xml");
85 85
		String sourceUrl = url.toString();
86 86
		return sourceUrl;
87
		
87

  
88 88
	}
89
	
89

  
90 90
	public static String ValRosandraFRIDAKey_local(){
91 91
		//		SDD XML example from http://wiki.tdwg.org/twiki/bin/view/SDD/RealWorldExamples_SDD1dot1
92 92
		//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";
93 93
		URL url = new SDDSources().getClass().getResource("/sdd/Val-Rosandra-FRIDA-Key.sdd11.xml");
94 94
		String sourceUrl = url.toString();
95 95
		return sourceUrl;
96
		
96

  
97 97
	}
98
	
98

  
99 99
	public static String FreshwaterAquaticInsects_local(){
100 100
		//		SDD export from an Xper2 application
101 101
		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";
102 102
		return sourceUrl;
103 103
	}
104
	
104

  
105 105
	public static String cichorieae_Xper2_local(){
106 106
		URL url = new SDDSources().getClass().getResource("/sdd/cichorieae-Xper2.xml");
107 107
		String sourceUrl = url.toString();
108
		return sourceUrl;	
108
		return sourceUrl;
109 109
	}
110
	
110

  
111 111
	public static String Cichorieae_DA_export_sdd(){
112 112
		String locationString = "/sdd/Xper2-import-export.sdd.xml";
113 113
		//String locationString = "/sdd/Cichorieae-DA-export-sdd.xml";
114
		
114

  
115 115
		URL url = new SDDSources().getClass().getResource(locationString);
116 116
		String sourceUrl = url.toString();
117
		return sourceUrl;	
117
		return sourceUrl;
118 118
	}
119
	
119

  
120 120
}

Also available in: Unified diff