source: josm/trunk/src/org/openstreetmap/josm/data/osm/PrimitiveId.java@ 6883

Last change on this file since 6883 was 5417, checked in by stoecker, 12 years ago

some Javadoc fixes

  • Property svn:eol-style set to native
File size: 749 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.osm;
3
4/**
5* interface to represent identifaction and type of the datatypes primitives.
6*
7* @since 2399
8*/
9public 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 * @see Node
22 * @see Way
23 * @see Relation
24 * @return the object type
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.