Project

General

Profile

Download (970 Bytes) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2014 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.api.service.dto;
11

    
12
import java.util.UUID;
13

    
14
import eu.etaxonomy.cdm.model.common.IdentifiableEntity;
15

    
16
/**
17
 * DTO for any CdmBase.
18
 *
19
 * @author a.mueller
20
 * @date 2016-09-21
21
 *
22
 */
23
//might extend CdmBase in future, when a default formatter is available for all CdmBase classes
24
public class EntityDTO<T extends IdentifiableEntity> extends EntityDTOBase<T> {
25

    
26
	public EntityDTO(T entity){
27
	    super(entity);
28
	}
29

    
30
	public EntityDTO(UUID entityUuid, String titleCache){
31
		super(entityUuid, titleCache);
32
	}
33

    
34
    /**
35
     * {@inheritDoc}
36
     */
37
    @Override
38
    public String toString() {
39
        return "(" + cdmEntity.getTitleCache() + "; " + cdmEntity.cdmUuid +  ")";
40
    }
41

    
42

    
43
}
(6-6/14)