Project

General

Profile

« Previous | Next » 

Revision 7ba2b731

Added by Marc Geoffroy about 16 years ago

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/reference/SectionBase.java
16 16
import javax.persistence.*;
17 17

  
18 18
/**
19
 * This (abstract) class represents isolated sections (parts, chapters or
20
 * papers) within a {@link PrintedUnitBase printed unit}.
21
 * <P>
22
 * This class corresponds, according to the TDWG ontology, to the publication type
23
 * term (from PublicationTypeTerm): "SubReference".
24
 *   
19 25
 * @author m.doering
20 26
 * @version 1.0
21 27
 * @created 08-Nov-2007 13:06:51
......
25 31
	static Logger logger = Logger.getLogger(SectionBase.class);
26 32
	private String pages;
27 33

  
34
	/**
35
	 * Returns the string representing the page(s) where the content of
36
	 * <i>this</i> section is located within the journal issue.
37
	 * 
38
	 * @return  the string with the pages corresponding to <i>this</i> article
39
	 */
28 40
	public String getPages(){
29 41
		return this.pages;
30 42
	}
31 43

  
32 44
	/**
33
	 * 
34
	 * @param pages    pages
45
	 * @see #getPages()
35 46
	 */
36 47
	public void setPages(String pages){
37 48
		this.pages = pages;
38 49
	}
39 50

  
51
	/**
52
	 * Returns the {@link PrintedUnitBase printed unit} to which <i>this</i> section
53
	 * belongs.
54
	 * 
55
	 * @return  the printed unit containing <i>this</i> section
56
	 */
40 57
	@Transient
41 58
	public PrintedUnitBase getPrintedUnit(){
42 59
		logger.warn("Not yet implemented");
......
46 63
//*********** CLONE **********************************/	
47 64
	
48 65

  
49
	/* (non-Javadoc)
50
	 * @see eu.etaxonomy.cdm.model.reference.StrictReferenceBase#clone()
66
	/** 
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 {@link StrictReferenceBase#clone() method} from StrictReferenceBase.
71
	 * 
72
	 * @see StrictReferenceBase#clone()
73
	 * @see media.IdentifyableMediaEntity#clone()
74
	 * @see java.lang.Object#clone()
51 75
	 */
52 76
	public Object clone(){
53 77
		SectionBase result = (SectionBase)super.clone();
54
		//no changes to: setPages
78
		//no changes to: pages
55 79
		return result;
56 80
	}
57 81
}

Also available in: Unified diff