Last change
on this file since 1523 was 1523, checked in by framm, 15 years ago |
- Major redesign of how JOSM talks to the OSM server. Connections now all go through a new
OsmApi class that finds out which version the server uses. JOSM should now be able to handle
0.5 and 0.6 without configuration change. Config options osm-server.version and
osm-server.additional-versions now obsolete. Handling of error and cancel situations might
still need some improvement.
|
-
Property svn:eol-style
set to
native
|
File size:
996 bytes
|
Line | |
---|
1 | // License: GPL. Copyright 2007 by Martijn van Oosterhout and others
|
---|
2 | package org.openstreetmap.josm.data.osm;
|
---|
3 |
|
---|
4 | import org.openstreetmap.josm.data.osm.visitor.Visitor;
|
---|
5 |
|
---|
6 |
|
---|
7 |
|
---|
8 |
|
---|
9 | /**
|
---|
10 | * Represents a single changeset in JOSM. For now its only used during
|
---|
11 | * upload but in the future we may do more.
|
---|
12 | *
|
---|
13 | */
|
---|
14 | public final class Changeset extends OsmPrimitive {
|
---|
15 | /**
|
---|
16 | * Time of last modification to this object. This is not set by JOSM but
|
---|
17 | * read from the server and delivered back to the server unmodified.
|
---|
18 | */
|
---|
19 | public String end_timestamp = null;
|
---|
20 |
|
---|
21 | /**
|
---|
22 | * Time of first modification to this object. This is not set by JOSM but
|
---|
23 | * read from the server and delivered back to the server unmodified.
|
---|
24 | */
|
---|
25 | public String start_timestamp = null;
|
---|
26 |
|
---|
27 | public void visit(Visitor v) {
|
---|
28 | v.visit(this);
|
---|
29 | }
|
---|
30 |
|
---|
31 | public int compareTo(OsmPrimitive arg0) {
|
---|
32 | if (arg0 instanceof Changeset) return Long.valueOf(id).compareTo(arg0.id);
|
---|
33 | return 1;
|
---|
34 | }
|
---|
35 |
|
---|
36 |
|
---|
37 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.