Major update to the latest CDM definition 2.Nov.2007
[cdmlib.git] / cdmlibrary / src / main / java / eu / etaxonomy / cdm / model / common / Enumeration.java
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 etaxonomy.cdm.model.common;
11
12
13 import org.apache.log4j.Logger;
14
15 /**
16 * A single enumeration must only contain DefinedTerm instances of one kind
17 * (=class)
18 * @author m.doering
19 * @version 1.0
20 * @created 02-Nov-2007 18:14:47
21 */
22 public class Enumeration extends DefinedTermBase {
23 static Logger logger = Logger.getLogger(Enumeration.class);
24
25 //The order of the enumeration list is a linear order that can be used for statistical purposes. Measurement scale =
26 //ordinal
27 @Description("The order of the enumeration list is a linear order that can be used for statistical purposes. Measurement scale = ordinal")
28 private boolean isOrdinal;
29
30 public boolean isOrdinal(){
31 return isOrdinal;
32 }
33
34 /**
35 *
36 * @param newVal
37 */
38 public void setOrdinal(boolean newVal){
39 isOrdinal = newVal;
40 }
41
42 }