Project

General

Profile

« Previous | Next » 

Revision 8bda418b

Added by Andreas Müller almost 6 years ago

fix #7930 removed getDoi from IPublicationBase and IArticle and use IWithDoi instead (but not for journals, print series and personel communications)

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/reference/IArticle.java
9 9

  
10 10
package eu.etaxonomy.cdm.model.reference;
11 11

  
12
import eu.etaxonomy.cdm.common.DOI;
13 12
import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase;
14 13

  
15 14
/**
......
52 51
	 */
53 52
	public void setInJournal(IJournal journal);
54 53

  
55
	   /**
56
     * @return
57
     */
58
    public DOI getDoi();
59

  
60
    public void setDoi(DOI doi);
61 54
}
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/reference/IAuthoredPublicationBase.java
13 13
 * @since 20.11.2018
14 14
 *
15 15
 */
16
public interface IAuthoredPublicationBase extends IPublicationBase, IWithAuthorAndDate{
16
public interface IAuthoredPublicationBase
17
       extends IPublicationBase, IWithAuthorAndDate, IWithDoi{
18

  
17 19

  
18 20
}
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/reference/IPatent.java
17 17
 * This class corresponds, according to the TDWG ontology, to the publication type
18 18
 * term (from PublicationTypeTerm): "Patent".
19 19
 */
20
public interface IPatent extends IReference, IWithAuthorAndDate {
20
public interface IPatent extends IReference, IWithAuthorAndDate, IWithDoi {
21 21

  
22 22
}
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/reference/IPublicationBase.java
9 9

  
10 10
package eu.etaxonomy.cdm.model.reference;
11 11

  
12
import eu.etaxonomy.cdm.common.DOI;
13

  
14 12
/**
15 13
 * This base interface represents all different kind of published
16 14
 * {@link IReference references} which constitute a physical
......
53 51
	 */
54 52
	public void setPublisher(String publisher, String placePublished);
55 53

  
56
	/**
57
	 * @return
58
	 */
59
	public DOI getDoi();
60

  
61
	public void setDoi(DOI doi);
62 54

  
63 55
}
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/reference/ISection.java
16 16
 * This class corresponds, according to the TDWG ontology, to the publication type
17 17
 * term (from PublicationTypeTerm): "SubReference".
18 18
 */
19
public interface ISection extends IReference, IWithAuthorAndDate, INomenclaturalReference {
19
public interface ISection extends IReference, IWithAuthorAndDate, IWithDoi, INomenclaturalReference {
20 20

  
21 21
	/**
22 22
	 * Returns the pages this reference covers in its in-reference.
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/reference/IVolumeReference.java
14 14
 * Interface for all references that support set/getVolume().
15 15
 *
16 16
 * @author a.mueller
17
 * @version 1.0
18 17
 * @since 24-Nov-2008 21:06:29
19 18
 */
20
public interface IVolumeReference extends IReference, IWithAuthorAndDate {
19
public interface IVolumeReference extends IReference, IWithAuthorAndDate, IWithDoi {
21 20

  
22 21
	/**
23 22
	 * Returns the volume of a reference.
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/reference/IWithAuthorAndDate.java
34 34
     */
35 35
    public void setAuthorship(TeamOrPersonBase authorship);
36 36

  
37

  
38

  
39 37
    /**
40 38
     * Returns the date when the reference was published as a {@link TimePeriod}
41 39
     */
......
43 41

  
44 42
    /**
45 43
     * Sets the date when the reference was published.
44
     * @see #getDatePublished()
46 45
     */
47 46
    public void setDatePublished(VerbatimTimePeriod datePublished);
48 47

  
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/reference/IWithDoi.java
1
/**
2
* Copyright (C) 2018 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.model.reference;
10

  
11
import eu.etaxonomy.cdm.common.DOI;
12

  
13
/**
14
 * Interface used by all reference type interfaces to define
15
 * if they support {@link DOI DOIs} or not.
16
 * @author a.mueller
17
 * @since 28.11.2018
18
 */
19
public interface IWithDoi {
20

  
21
    /**
22
     * Returns the references {@link DOI digital object identifier}.
23
     */
24
    public DOI getDoi();
25

  
26
    /**
27
     * @see #getDoi()
28
     * @param doi the DOI to set
29
     */
30
    public void setDoi(DOI doi);
31
}

Also available in: Unified diff