2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.cdm
.model
.reference
;
13 import javax
.persistence
.Entity
;
14 import javax
.xml
.bind
.annotation
.XmlAccessType
;
15 import javax
.xml
.bind
.annotation
.XmlAccessorType
;
16 import javax
.xml
.bind
.annotation
.XmlElement
;
17 import javax
.xml
.bind
.annotation
.XmlRootElement
;
18 import javax
.xml
.bind
.annotation
.XmlType
;
20 import org
.apache
.log4j
.Logger
;
23 * This class represents collections of {@link PrintedUnitBase printed published references} which
24 * are grouped according to topic or any other feature.
26 * This class corresponds, according to the TDWG ontology, to the publication type
27 * term (from PublicationTypeTerm): "BookSeries".
31 * @created 08-Nov-2007 13:06:45
33 @XmlAccessorType(XmlAccessType
.FIELD
)
34 @XmlType(name
= "PrintSeries", propOrder
= {
37 @XmlRootElement(name
= "PrintSeries")
40 public class PrintSeries
extends PublicationBase
implements Cloneable
{
41 private static final Logger logger
= Logger
.getLogger(PrintSeries
.class);
43 @XmlElement(name
= "Series")
44 private String series
;
47 * Creates a new empty print series instance.
49 public static PrintSeries
NewInstance(){
50 PrintSeries result
= new PrintSeries();
55 * Creates a new print series instance with a given title string.
57 public static PrintSeries
NewInstance(String series
){
58 PrintSeries result
= NewInstance();
59 result
.setSeries(series
);
64 * Returns the string representing the title of <i>this</i> print series.
66 * @return the string representing the print series
68 public String
getSeries(){
75 public void setSeries(String series
){
79 //*********** CLONE **********************************/
82 * Clones <i>this</i> print series instance. This is a shortcut that enables to
83 * create a new instance that differs only slightly from <i>this</i>
84 * print series instance by modifying only some of the attributes.<BR>
85 * This method overrides the clone method from {@link PublicationBase PublicationBase}.
87 * @see PublicationBase#clone()
88 * @see eu.etaxonomy.cdm.model.media.IdentifiableMediaEntity#clone()
89 * @see java.lang.Object#clone()
92 public PrintSeries
clone(){
93 PrintSeries result
= (PrintSeries
)super.clone();
94 //no changes to: series