Merge branch 'release/5.44.0'
[cdmlib.git] / cdmlib-io / src / main / java / eu / etaxonomy / cdm / io / markup / WriterDataHolder.java
1 /**
2 * Copyright (C) 2009 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.io.markup;
10
11 import java.util.List;
12
13 import org.apache.commons.lang3.StringUtils;
14
15 import eu.etaxonomy.cdm.model.common.Annotation;
16 import eu.etaxonomy.cdm.model.common.Extension;
17
18 /**
19 * @author a.mueller
20 * @since 03.08.2011
21 *
22 */
23 public class WriterDataHolder {
24 String writer;
25 List<FootnoteDataHolder> footnotes;
26 Extension extension;
27 Annotation annotation;
28
29
30
31 /* (non-Javadoc)
32 * @see java.lang.Object#toString()
33 */
34 @Override
35 public String toString() {
36 if (StringUtils.isNotBlank(this.writer)){
37 String result = "Writer: " + this.writer;
38 if (footnotes != null && ! footnotes.isEmpty()){
39 result += result + "[" + footnotes.size() + "]";
40 }
41 return result;
42 }else{
43 return super.toString();
44 }
45 }
46
47
48 }