Last change
on this file since 13924 was 13924, checked in by Don-vip, 7 years ago |
add IPrimitive.getOsm*Id()
|
-
Property svn:eol-style
set to
native
|
File size:
750 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.osm;
|
---|
3 |
|
---|
4 | /**
|
---|
5 | * interface to represent identification and type of the datatypes primitives.
|
---|
6 | *
|
---|
7 | * @since 2399
|
---|
8 | */
|
---|
9 | public interface PrimitiveId {
|
---|
10 |
|
---|
11 | /**
|
---|
12 | * Gets a unique id representing this object (the OSM server id for OSM objects)
|
---|
13 | *
|
---|
14 | * @return the id number
|
---|
15 | */
|
---|
16 | long getUniqueId();
|
---|
17 |
|
---|
18 | /**
|
---|
19 | * Gets the type of object represented by this object.
|
---|
20 | *
|
---|
21 | * @return the object type
|
---|
22 | * @see Node
|
---|
23 | * @see Way
|
---|
24 | * @see Relation
|
---|
25 | */
|
---|
26 | OsmPrimitiveType getType();
|
---|
27 |
|
---|
28 | /**
|
---|
29 | * Replies true if this id represents a new primitive.
|
---|
30 | *
|
---|
31 | * @return true if this id represents a new primitive.
|
---|
32 | */
|
---|
33 | boolean isNew();
|
---|
34 |
|
---|
35 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.