Project

General

Profile

Download (1.05 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2009 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.io.markup;
11

    
12
import java.util.List;
13

    
14
import org.apache.commons.lang.StringUtils;
15

    
16
import eu.etaxonomy.cdm.model.common.Annotation;
17
import eu.etaxonomy.cdm.model.common.Extension;
18

    
19
/**
20
 * @author a.mueller
21
 * @date 03.08.2011
22
 *
23
 */
24
public class WriterDataHolder {
25
	String writer;
26
	List<FootnoteDataHolder> footnotes;
27
	Extension extension;
28
	Annotation annotation;
29
	
30
	
31

    
32
	/* (non-Javadoc)
33
	 * @see java.lang.Object#toString()
34
	 */
35
	@Override
36
	public String toString() {
37
		if (StringUtils.isNotBlank(this.writer)){
38
			String result = "Writer: " + this.writer;
39
			if (footnotes != null && ! footnotes.isEmpty()){
40
				result += result + "[" + footnotes.size() + "]";
41
			}
42
			return result;
43
		}else{
44
			return super.toString();
45
		}
46
	}
47
		
48
	
49
}
(11-11/11)