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
.description
;
12 import org
.apache
.log4j
.Logger
;
14 import eu
.etaxonomy
.cdm
.model
.common
.Language
;
15 import eu
.etaxonomy
.cdm
.model
.location
.NamedArea
;
16 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
18 import javax
.persistence
.*;
21 * This class represents terms describing different types of presence
22 * (like "native" or "introduced") of a {@link Taxon taxon} in a {@link NamedArea particular area}.
26 * @created 08-Nov-2007 13:06:44
29 public class PresenceTerm
extends PresenceAbsenceTermBase
<PresenceTerm
> {
30 private static final Logger logger
= Logger
.getLogger(PresenceTerm
.class);
32 // ************* CONSTRUCTORS *************/
34 * Class constructor: creates a new empty presence term.
36 * @see #PresenceTerm(String, String, String)
38 protected PresenceTerm() {
43 * Class constructor: creates a new presence term with a description (in the {@link Language#DEFAULT() default language}),
44 * a label and a label abbreviation.
46 * @param term the string (in the default language) describing the
47 * new presence term to be created
48 * @param label the string identifying the new presence term to be created
49 * @param labelAbbrev the string identifying (in abbreviated form) the
50 * new presence term to be created
51 * @see #PresenceTerm()
53 protected PresenceTerm(String term
, String label
, String labelAbbrev
) {
54 super(term
, label
, labelAbbrev
);
57 //********* METHODS **************************************/
59 * Creates a new empty presence term.
61 * @see #NewInstance(String, String, String)
63 public static PresenceTerm
NewInstance(){
64 return new PresenceTerm();
68 * Creates a new presence term with a description (in the {@link Language#DEFAULT() default language}),
69 * a label and a label abbreviation.
71 * @param term the string (in the default language) describing the
72 * new presence term to be created
73 * @param label the string identifying the new presence term to be created
74 * @param labelAbbrev the string identifying (in abbreviated form) the
75 * new presence term to be created
78 public static PresenceTerm
NewInstance(String term
, String label
, String labelAbbrev
){
79 return new PresenceTerm(term
, label
, labelAbbrev
);