Project

General

Profile

« Previous | Next » 

Revision 5e22b871

Added by Andreas Müller almost 7 years ago

cleanup and adapt to new Output generics hierarchy

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/berlinModel/out/BerlinModelExportConfigurator.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
*/
......
12 12
import org.apache.log4j.Logger;
13 13

  
14 14
import eu.etaxonomy.cdm.database.ICdmDataSource;
15
import eu.etaxonomy.cdm.io.berlinModel.BerlinModelTransformer;
16 15
import eu.etaxonomy.cdm.io.common.DbExportConfiguratorBase;
17 16
import eu.etaxonomy.cdm.io.common.IExportConfigurator;
18 17
import eu.etaxonomy.cdm.io.common.Source;
......
21 20
/**
22 21
 * @author a.mueller
23 22
 * @created 20.03.2008
24
 * @version 1.0
25 23
 */
26
public class BerlinModelExportConfigurator extends DbExportConfiguratorBase<BerlinModelExportState, IExportTransformer> implements IExportConfigurator<BerlinModelExportState, IExportTransformer>{
27
	@SuppressWarnings("unused")
24
public class BerlinModelExportConfigurator
25
            extends DbExportConfiguratorBase<BerlinModelExportState, IExportTransformer, Source>
26
            implements IExportConfigurator<BerlinModelExportState, IExportTransformer>{
27

  
28
    private static final long serialVersionUID = -2346209092417359348L;
29

  
30
    @SuppressWarnings("unused")
28 31
	private static Logger logger = Logger.getLogger(BerlinModelExportConfigurator.class);
29 32

  
30 33
//	TODO
31 34
	private static IExportTransformer defaultTransformer = null;
32
	
33
	
35

  
36

  
34 37
	//ID for the isHomotypic relationship in RelName, if not exist null
35 38
	private Integer isHomotypicId = null;
36 39

  
......
41 44
	private boolean doTaxonNames = true;
42 45
	private boolean doRelNames = true;
43 46
	private boolean doNameFacts = true;
44
	
47

  
45 48
	//taxa
46 49
	private boolean doTaxa = true;
47 50
	private boolean doRelTaxa = true;
48 51
	private boolean doFacts = true;
49 52
	private boolean doOccurrence = true;
50 53

  
51
	
54

  
52 55
	public static BerlinModelExportConfigurator NewInstance(Source berlinModelDestination, ICdmDataSource source){
53 56
			return new BerlinModelExportConfigurator(berlinModelDestination, source);
54 57
	}
55
	
56
	protected void makeIoClassList(){
58

  
59
	@Override
60
    protected void makeIoClassList(){
57 61
		ioClassList = new Class[]{
58 62
				BerlinModelAuthorExport.class
59 63
				, BerlinModelAuthorTeamExport.class
......
68 72
				, BerlinModelFactExport.class
69 73
//				, BerlinModelOccurrenceImport.class
70 74
		};
71
		
75

  
72 76
	}
73
	
77

  
74 78
	/**
75 79
	 * @param berlinModelSource
76 80
	 * @param sourceReference
......
82 86
	   setDestination(destination);
83 87
//	   setState((BerlinModelExportState)getNewState());
84 88
	}
85
	
89

  
86 90
	/**
87 91
	 * @return the isHomotypicId
88 92
	 */
......
100 104
	/* (non-Javadoc)
101 105
	 * @see eu.etaxonomy.cdm.io.common.IExportConfigurator#getNewState()
102 106
	 */
103
	public BerlinModelExportState getNewState() {
107
	@Override
108
    public BerlinModelExportState getNewState() {
104 109
		return new BerlinModelExportState(this);
105 110
	}
106
	
107
	
111

  
112

  
108 113
	/**
109 114
	 * Import name relationships yes/no?.
110 115
	 * @return
......
121 126
	public void setDoOccurrence(boolean doOccurrence) {
122 127
		this.doOccurrence = doOccurrence;
123 128
	}
124
	
129

  
125 130
	public boolean isDoFacts() {
126 131
		return doFacts;
127 132
	}
......
135 140
	public void setDoNameFacts(boolean doNameFacts) {
136 141
		this.doNameFacts = doNameFacts;
137 142
	}
138
	
143

  
139 144

  
140 145
	public boolean isDoAuthors() {
141 146
		return doAuthors;
......
150 155
	public void setDoReferences(DO_REFERENCES doReferences) {
151 156
		this.doReferences = doReferences;
152 157
	}
153
	
158

  
154 159
	public boolean isDoTaxonNames() {
155 160
		return doTaxonNames;
156 161
	}
......
173 178
	}
174 179

  
175 180

  
176
	
177 181

  
178
	
182

  
183

  
179 184
}

Also available in: Unified diff