Ignore:
Timestamp:
2013-03-18T21:58:17+01:00 (12 years ago)
Author:
zverik
Message:

some updates to iodb plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffsetBase.java

    r28008 r29371  
    1212 */
    1313public class ImageryOffsetBase {
    14     private LatLon position;
    15     private Date date;
    16     private String author;
    17     private String description;
    18     private Date abandonDate;
     14    protected long offsetId;
     15    protected LatLon position;
     16    protected Date date;
     17    protected String author;
     18    protected String description;
     19    protected Date abandonDate;
     20    protected String abandonAuthor;
     21    protected String abandonReason;
    1922   
    2023    public void setBasicInfo( LatLon position, String author, String description, Date date ) {
     
    2629    }
    2730
     31    public void setId( long id ) {
     32        this.offsetId = id;
     33    }
     34
     35    public long getId() {
     36        return offsetId;
     37    }
     38
    2839    public void setAbandonDate(Date abandonDate) {
    2940        this.abandonDate = abandonDate;
     
    3344        return abandonDate;
    3445    }
     46
     47    public String getAbandonAuthor() {
     48        return abandonAuthor;
     49    }
     50
     51    public String getAbandonReason() {
     52        return abandonReason;
     53    }
    3554   
    36     public boolean isAbandoned() {
     55    public boolean isDeprecated() {
    3756        return abandonDate != null;
    3857    }
     
    5069    }
    5170
     71    public void setDescription( String description ) {
     72        this.description = description;
     73    }
     74
    5275    public LatLon getPosition() {
    5376        return position;
     
    6083        map.put("description", description);
    6184    }
     85
     86    @Override
     87    public String toString() {
     88        return "ImageryOffsetBase{" + "position=" + position + ", date=" + date + ", author=" + author + ", description=" + description + ", abandonDate=" + abandonDate + '}';
     89    }
    6290}
Note: See TracChangeset for help on using the changeset viewer.