1
|
/**
|
2
|
* Copyright (C) 2007 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
|
|
10
|
package eu.etaxonomy.cdm.model.reference;
|
11
|
|
12
|
|
13
|
import javax.persistence.Entity;
|
14
|
|
15
|
import org.apache.log4j.Logger;
|
16
|
|
17
|
/**
|
18
|
* This class represents electronic publications available on the world wide web.
|
19
|
* <P>
|
20
|
* This class corresponds, according to the TDWG ontology, to the publication type
|
21
|
* term (from PublicationTypeTerm): "WebPage".
|
22
|
*
|
23
|
* @author m.doering
|
24
|
* @version 1.0
|
25
|
* @created 08-Nov-2007 13:07:03
|
26
|
*/
|
27
|
@Entity
|
28
|
public class WebPage extends PublicationBase implements Cloneable {
|
29
|
public static final Logger logger = Logger.getLogger(WebPage.class);
|
30
|
|
31
|
/**
|
32
|
* Class constructor: creates a new empty web page instance.
|
33
|
*/
|
34
|
protected WebPage(){
|
35
|
super();
|
36
|
}
|
37
|
|
38
|
/**
|
39
|
* Creates a new empty web page instance.
|
40
|
*/
|
41
|
public static WebPage NewInstance(){
|
42
|
return new WebPage();
|
43
|
}
|
44
|
|
45
|
/**
|
46
|
* Generates, according to the {@link strategy.cache.reference.IReferenceBaseCacheStrategy cache strategy}
|
47
|
* assigned to <i>this</i> web page, a string that identifies <i>this</i>
|
48
|
* web page and returns it. This string may be stored in the inherited
|
49
|
* {@link common.IdentifiableEntity#getTitleCache() titleCache} attribute.<BR>
|
50
|
* This method overrides the generic and inherited
|
51
|
* ReferenceBase#generateTitle() method.
|
52
|
*
|
53
|
* @return the string identifying <i>this</i> web page
|
54
|
* @see ReferenceBase#generateTitle()
|
55
|
* @see common.IdentifiableEntity#getTitleCache()
|
56
|
* @see common.IdentifiableEntity#generateTitle()
|
57
|
* @see strategy.cache.common.IIdentifiableEntityCacheStrategy#getTitleCache()
|
58
|
*/
|
59
|
@Override
|
60
|
public String generateTitle(){
|
61
|
//TODO is this method really needed or is ReferenceBase#generateTitle() enough?
|
62
|
return "";
|
63
|
}
|
64
|
//*********** CLONE **********************************/
|
65
|
|
66
|
/**
|
67
|
* Clones <i>this</i> web page instance. This is a shortcut that enables to
|
68
|
* create a new instance that differs only slightly from <i>this</i>
|
69
|
* web page instance by modifying only some of the attributes.<BR>
|
70
|
* This method overrides the {@link PublicationBase#clone() method} from PublicationBase.
|
71
|
*
|
72
|
* @see PublicationBase#clone()
|
73
|
* @see media.IdentifyableMediaEntity#clone()
|
74
|
* @see java.lang.Object#clone()
|
75
|
*/
|
76
|
public WebPage clone(){
|
77
|
WebPage result = (WebPage)super.clone();
|
78
|
//no changes to: -
|
79
|
return result;
|
80
|
}
|
81
|
}
|