Line | |
---|
1 | package iodb;
|
---|
2 |
|
---|
3 | import java.util.Date;
|
---|
4 | import org.openstreetmap.josm.data.coor.LatLon;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * Stores one imagery offset record.
|
---|
8 | *
|
---|
9 | * @author zverik
|
---|
10 | */
|
---|
11 | public class ImageryOffsetBase {
|
---|
12 | private LatLon position;
|
---|
13 | private Date date;
|
---|
14 | private String author;
|
---|
15 | private String description;
|
---|
16 | private Date abandonDate;
|
---|
17 |
|
---|
18 | public void setBasicInfo( LatLon position, String author, String description, Date date ) {
|
---|
19 | this.position = position;
|
---|
20 | this.author = author;
|
---|
21 | this.description = description;
|
---|
22 | this.date = date;
|
---|
23 | this.abandonDate = null;
|
---|
24 | }
|
---|
25 |
|
---|
26 | public void setAbandonDate(Date abandonDate) {
|
---|
27 | this.abandonDate = abandonDate;
|
---|
28 | }
|
---|
29 |
|
---|
30 | public Date getAbandonDate() {
|
---|
31 | return abandonDate;
|
---|
32 | }
|
---|
33 |
|
---|
34 | public boolean isAbandoned() {
|
---|
35 | return abandonDate != null;
|
---|
36 | }
|
---|
37 |
|
---|
38 | public String getAuthor() {
|
---|
39 | return author;
|
---|
40 | }
|
---|
41 |
|
---|
42 | public Date getDate() {
|
---|
43 | return date;
|
---|
44 | }
|
---|
45 |
|
---|
46 | public String getDescription() {
|
---|
47 | return description;
|
---|
48 | }
|
---|
49 |
|
---|
50 | public LatLon getPosition() {
|
---|
51 | return position;
|
---|
52 | }
|
---|
53 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.