1
|
/**
|
2
|
* Copyright (C) 2015 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
|
package eu.etaxonomy.cdm.format.occurrences;
|
10
|
|
11
|
|
12
|
/**
|
13
|
* @author pplitzner
|
14
|
* @date Nov 30, 2015
|
15
|
*
|
16
|
*/
|
17
|
public class IdentifiableEntityFormatter extends AbstractCdmFormatter {
|
18
|
|
19
|
public IdentifiableEntityFormatter(Object object, FormatKey[] formatKeys) {
|
20
|
super(object, formatKeys);
|
21
|
}
|
22
|
|
23
|
@Override
|
24
|
protected void initFormatKeys(Object object) {
|
25
|
super.initFormatKeys(object);
|
26
|
// IdentifiableEntity identifiableEntity = (IdentifiableEntity)object;
|
27
|
// List<Identifier> identifiers = identifiableEntity.getIdentifiers();
|
28
|
// String identifierString = null;
|
29
|
// for (Identifier identifier : identifiers) {
|
30
|
// if(identifier.getType()!=null && identifier.getType().equals(DerivateLabelProvider.getSampleDesignationTerm())){
|
31
|
// //first sample designation is the current
|
32
|
// identifierString = identifier.toString();
|
33
|
// }
|
34
|
// }
|
35
|
// if(identifierString!=null){
|
36
|
// formatKeyMap.put(FormatKey.FIELD_NUMBER, identifierString);
|
37
|
// }
|
38
|
}
|
39
|
|
40
|
}
|