3 * Copyright (C) 2015 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.format
.occurrences
;
12 import eu
.etaxonomy
.cdm
.model
.molecular
.Sequence
;
19 public class SequenceFormatter
extends AbstractCdmFormatter
{
21 public SequenceFormatter(Object object
, FormatKey
[] formatKeys
) {
22 super(object
, formatKeys
);
26 protected void initFormatKeys(Object object
) {
27 super.initFormatKeys(object
);
28 Sequence sequence
= (Sequence
)object
;
29 if(sequence
.getDnaMarker()!=null){
30 formatKeyMap
.put(FormatKey
.SEQUENCE_DNA_MARKER
, sequence
.getDnaMarker().getLabel());