Major update to the latest CDM definition 2.Nov.2007
[cdmlib.git] / cdmlibrary / src / main / java / eu / etaxonomy / cdm / model / location / NamedArea.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.location;
11
12
13 import etaxonomy.cdm.model.common.EnumeratedTermBase;
14 import org.apache.log4j.Logger;
15
16 /**
17 * @author m.doering
18 * @version 1.0
19 * @created 02-Nov-2007 18:15:01
20 */
21 public class NamedArea extends EnumeratedTermBase {
22 static Logger logger = Logger.getLogger(NamedArea.class);
23
24 //description of this area
25 @Description("description of this area")
26 private String description;
27 //description of time valid context of this area. e.g. year range
28 @Description("description of time valid context of this area. e.g. year range")
29 private TimePeriod validPeriod;
30 //Binary shape definition for user's defined area as polygon
31 @Description("Binary shape definition for user's defined area as polygon")
32 private Binary shapeFile;
33 private NamedAreaInSource source;
34 private ArrayList countriesOrWaterbodies;
35 private NamedAreaType type;
36 private NamedAreaLevel level;
37
38 public NamedAreaInSource getSource(){
39 return source;
40 }
41
42 /**
43 *
44 * @param newVal
45 */
46 public void setSource(NamedAreaInSource newVal){
47 source = newVal;
48 }
49
50 public ArrayList getCountriesOrWaterbodies(){
51 return countriesOrWaterbodies;
52 }
53
54 /**
55 *
56 * @param newVal
57 */
58 public void setCountriesOrWaterbodies(ArrayList newVal){
59 countriesOrWaterbodies = newVal;
60 }
61
62 public NamedAreaType getType(){
63 return type;
64 }
65
66 /**
67 *
68 * @param newVal
69 */
70 public void setType(NamedAreaType newVal){
71 type = newVal;
72 }
73
74 public NamedAreaLevel getLevel(){
75 return level;
76 }
77
78 /**
79 *
80 * @param newVal
81 */
82 public void setLevel(NamedAreaLevel newVal){
83 level = newVal;
84 }
85
86 public String getDescription(){
87 return description;
88 }
89
90 /**
91 *
92 * @param newVal
93 */
94 public void setDescription(String newVal){
95 description = newVal;
96 }
97
98 public TimePeriod getValidPeriod(){
99 return validPeriod;
100 }
101
102 /**
103 *
104 * @param newVal
105 */
106 public void setValidPeriod(TimePeriod newVal){
107 validPeriod = newVal;
108 }
109
110 public Binary getShapeFile(){
111 return shapeFile;
112 }
113
114 /**
115 *
116 * @param newVal
117 */
118 public void setShapeFile(Binary newVal){
119 shapeFile = newVal;
120 }
121
122 }