1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2015 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
package eu.etaxonomy.cdm.ext.geo;
|
11
|
|
12
|
import java.util.ArrayList;
|
13
|
import java.util.List;
|
14
|
|
15
|
import eu.etaxonomy.cdm.model.location.Point;
|
16
|
|
17
|
/**
|
18
|
* @author pplitzner
|
19
|
* @date Apr 9, 2015
|
20
|
*
|
21
|
*/
|
22
|
public class OccurrenceServiceRequestParameterDto {
|
23
|
|
24
|
private List<Point> fieldUnitPoints;
|
25
|
private List<Point> derivedUnitPoints;
|
26
|
private String occurrenceQuery = null;
|
27
|
|
28
|
/**
|
29
|
* @return the fieldUnitPoints
|
30
|
*/
|
31
|
public List<Point> getFieldUnitPoints() {
|
32
|
return fieldUnitPoints;
|
33
|
}
|
34
|
/**
|
35
|
* @return the derivedUnitPoints
|
36
|
*/
|
37
|
public List<Point> getDerivedUnitPoints() {
|
38
|
return derivedUnitPoints;
|
39
|
}
|
40
|
/**
|
41
|
* @return the occurrenceQuery
|
42
|
*/
|
43
|
public String getOccurrenceQuery() {
|
44
|
return occurrenceQuery;
|
45
|
}
|
46
|
/**
|
47
|
* @param occurrenceQuery the occurrenceQuery to set
|
48
|
*/
|
49
|
public void setOccurrenceQuery(String occurrenceQuery) {
|
50
|
this.occurrenceQuery = occurrenceQuery;
|
51
|
}
|
52
|
/**
|
53
|
* @param fieldUnitPoints the fieldUnitPoints to set
|
54
|
*/
|
55
|
public void setFieldUnitPoints(List<Point> fieldUnitPoints) {
|
56
|
this.fieldUnitPoints = fieldUnitPoints;
|
57
|
}
|
58
|
/**
|
59
|
* @param derivedUnitPoints the derivedUnitPoints to set
|
60
|
*/
|
61
|
public void setDerivedUnitPoints(List<Point> derivedUnitPoints) {
|
62
|
this.derivedUnitPoints = derivedUnitPoints;
|
63
|
}
|
64
|
public void addFieldUnitPoint(Point point){
|
65
|
if(fieldUnitPoints==null){
|
66
|
fieldUnitPoints = new ArrayList<Point>();
|
67
|
}
|
68
|
fieldUnitPoints.add(point);
|
69
|
}
|
70
|
public void addDerivedUnitPoint(Point point){
|
71
|
if(derivedUnitPoints==null){
|
72
|
derivedUnitPoints = new ArrayList<Point>();
|
73
|
}
|
74
|
derivedUnitPoints.add(point);
|
75
|
}
|
76
|
|
77
|
}
|