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
.persistence
.Transient
;
16 import org
.apache
.log4j
.Logger
;
19 * This (abstract) class represents isolated sections (parts, chapters or
20 * papers) within a {@link PrintedUnitBase printed unit}.
22 * This class corresponds, according to the TDWG ontology, to the publication type
23 * term (from PublicationTypeTerm): "SubReference".
27 * @created 08-Nov-2007 13:06:51
30 public abstract class SectionBase
extends StrictReferenceBase
{
31 static Logger logger
= Logger
.getLogger(SectionBase
.class);
35 * Returns the string representing the page(s) where the content of
36 * <i>this</i> section is located within the {@link PrintedUnitBase printed unit}.
38 * @return the string with the pages corresponding to <i>this</i> section
40 public String
getPages(){
47 public void setPages(String pages
){
52 * Returns the {@link PrintedUnitBase printed unit} to which <i>this</i> section
55 * @return the printed unit containing <i>this</i> section
58 public PrintedUnitBase
getPrintedUnit(){
59 logger
.warn("Not yet implemented");
63 //*********** CLONE **********************************/
67 * Clones <i>this</i> section. This is a shortcut that enables to
68 * create a new instance that differs only slightly from <i>this</i> section
69 * by modifying only some of the attributes.<BR>
70 * This method overrides the clone method from {@link StrictReferenceBase StrictReferenceBase}.
72 * @see StrictReferenceBase#clone()
73 * @see eu.etaxonomy.cdm.model.media.IdentifyableMediaEntity#clone()
74 * @see java.lang.Object#clone()
77 public Object
clone(){
78 SectionBase result
= (SectionBase
)super.clone();
79 //no changes to: pages