Refactor formatter framework
[cdmlib.git] / cdmlib-model / src / main / java / eu / etaxonomy / cdm / format / occurrences / DefaultCdmFormatter.java
1 // $Id$
2 /**
3 * Copyright (C) 2015 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
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.
9 */
10 package eu.etaxonomy.cdm.format.occurrences;
11
12
13 /**
14 * @author pplitzner
15 * @date Nov 30, 2015
16 *
17 */
18 public class DefaultCdmFormatter extends AbstractCdmFormatter {
19
20 public DefaultCdmFormatter(Object object, FormatKey[] formatKeys) {
21 super(object, formatKeys);
22 }
23
24 @Override
25 public String format(Object object, FormatKey... formatKeys) {
26 return object.toString();
27 }
28
29 @Override
30 public String format(Object object) {
31 return object.toString();
32 }
33 }