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
;
13 import eu
.etaxonomy
.cdm
.model
.common
.Language
;
14 import eu
.etaxonomy
.cdm
.model
.common
.OrderedTermBase
;
15 import eu
.etaxonomy
.cdm
.model
.location
.NamedArea
;
16 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
18 import org
.apache
.log4j
.Logger
;
20 import javax
.persistence
.*;
21 import javax
.xml
.bind
.annotation
.XmlAccessType
;
22 import javax
.xml
.bind
.annotation
.XmlAccessorType
;
23 import javax
.xml
.bind
.annotation
.XmlRootElement
;
24 import javax
.xml
.bind
.annotation
.XmlType
;
27 * This class represents terms describing different states (like "oval" or
28 * "triangular") for {@link Feature features} that can be described with
29 * categorical values (like for instance shapes).
33 * @created 08-Nov-2007 13:06:53
35 @XmlAccessorType(XmlAccessType
.FIELD
)
36 @XmlType(name
= "State")
37 @XmlRootElement(name
= "State")
39 public class State
extends OrderedTermBase
<State
> {
40 static Logger logger
= Logger
.getLogger(State
.class);
42 // ************* CONSTRUCTORS *************/
44 * Class constructor: creates a new empty state.
46 * @see #State(String, String, String)
53 * Class constructor: creates a new state with a description (in the {@link Language#DEFAULT() default language}),
54 * a label and a label abbreviation.
56 * @param term the string (in the default language) describing the
57 * new state to be created
58 * @param label the string identifying the new state to be created
59 * @param labelAbbrev the string identifying (in abbreviated form) the
60 * new state to be created
63 public State(String term
, String label
, String labelAbbrev
) {
64 super(term
, label
, labelAbbrev
);
67 //********* METHODS **************************************/
69 * Creates a new empty state.
71 * @see #NewInstance(String, String, String)
73 public static State
NewInstance(){
78 * Creates a new state with a description (in the {@link Language#DEFAULT() default language}),
79 * a label and a label abbreviation.
81 * @param term the string (in the default language) describing the
82 * new state to be created
83 * @param label the string identifying the new state to be created
84 * @param labelAbbrev the string identifying (in abbreviated form) the
85 * new state to be created
88 public static State
NewInstance(String term
, String label
, String labelAbbrev
){
89 return new State(term
, label
, labelAbbrev
);