Revision 79005d4b
Added by Andreas Müller over 11 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/globis/GlobisImportConfigurator.java | ||
---|---|---|
19 | 19 |
import eu.etaxonomy.cdm.io.common.Source; |
20 | 20 |
import eu.etaxonomy.cdm.io.common.mapping.IInputTransformer; |
21 | 21 |
import eu.etaxonomy.cdm.model.name.NomenclaturalCode; |
22 |
import eu.etaxonomy.cdm.model.reference.Reference; |
|
23 |
import eu.etaxonomy.cdm.model.reference.ReferenceFactory; |
|
24 | 22 |
|
25 | 23 |
|
26 | 24 |
/** |
... | ... | |
80 | 78 |
super(source, destination, NomenclaturalCode.ICZN, defaultTransformer);//default for Globis |
81 | 79 |
} |
82 | 80 |
|
83 |
|
|
84 |
public Source getSource() { |
|
85 |
return (Source)super.getSource(); |
|
86 |
} |
|
87 |
public void setSource(Source berlinModelSource) { |
|
88 |
super.setSource(berlinModelSource); |
|
89 |
} |
|
90 |
|
|
91 |
/* (non-Javadoc) |
|
92 |
* @see eu.etaxonomy.cdm.io.tcsrdf.IImportConfigurator#getSourceReference() |
|
93 |
*/ |
|
94 |
public Reference getSourceReference() { |
|
95 |
ReferenceFactory refFactory = ReferenceFactory.newInstance(); |
|
96 |
if (sourceReference == null){ |
|
97 |
sourceReference = refFactory.newDatabase(); |
|
98 |
if (getSource() != null){ |
|
99 |
sourceReference.setTitleCache(getSource().getDatabase(), true); |
|
100 |
} |
|
101 |
} |
|
102 |
return sourceReference; |
|
103 |
} |
|
104 |
|
|
105 |
|
|
106 |
/* (non-Javadoc) |
|
107 |
* @see eu.etaxonomy.cdm.io.common.IImportConfigurator#getSourceNameString() |
|
108 |
*/ |
|
109 |
public String getSourceNameString() { |
|
110 |
if (this.getSource() == null){ |
|
111 |
return null; |
|
112 |
}else{ |
|
113 |
return this.getSource().getDatabase(); |
|
114 |
} |
|
115 |
} |
|
116 |
|
|
117 |
/** |
|
118 |
* @return the userTransformationMethod |
|
119 |
*/ |
|
120 |
public Method getUserTransformationMethod() { |
|
121 |
return userTransformationMethod; |
|
122 |
} |
|
123 |
|
|
124 |
/** |
|
125 |
* @param userTransformationMethod the userTransformationMethod to set |
|
126 |
*/ |
|
127 |
public void setUserTransformationMethod(Method userTransformationMethod) { |
|
128 |
this.userTransformationMethod = userTransformationMethod; |
|
129 |
} |
|
130 |
|
|
131 |
|
|
132 | 81 |
/** |
133 | 82 |
* @return the limitSave |
134 | 83 |
*/ |
Also available in: Unified diff
new DbImportBase and DbImportConfigurator