Project

General

Profile

Download (818 Bytes) Statistics
| Branch: | Tag: | Revision:
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;
10

    
11
/**
12
 * Default formatter that uses toString() that can be used as fallback.
13
 *
14
 * @author pplitzner
15
 * @since Nov 30, 2015
16
 */
17
public class DefaultCdmFormatter extends AbstractCdmFormatter {
18

    
19
    public DefaultCdmFormatter(Object object, FormatKey[] formatKeys) {
20
        super(object, formatKeys);
21
    }
22

    
23
    @Override
24
    public String format(Object object, FormatKey... formatKeys) {
25
        return object.toString();
26
    }
27

    
28
    @Override
29
    public String format(Object object) {
30
    	return object.toString();
31
    }
32
}
(4-4/7)