Changeset 5417 in josm
- Timestamp:
- 2012-08-10T12:51:52+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java
r5266 r5417 17 17 import java.util.concurrent.atomic.AtomicLong; 18 18 19 /** 20 * Abstract class to represent common features of the datatypes primitives. 21 * 22 * @since 4099 23 */ 19 24 public abstract class AbstractPrimitive implements IPrimitive { 20 25 … … 94 99 * Get and write all attributes from the parameter. Does not fire any listener, so 95 100 * use this only in the data initializing phase 101 * @param other the primitive to clone data from 96 102 */ 97 103 public void cloneFrom(AbstractPrimitive other) { … … 122 128 * if this primitive is incomplete. 123 129 * 124 * @see #setVersion(int)130 * @see PrimitiveData#setVersion(int) 125 131 */ 126 132 @Override … … 141 147 142 148 /** 149 * Gets a unique id representing this object. 143 150 * 144 151 * @return Osm id if primitive already exists on the server. Unique negative value if primitive is new … … 283 290 * used to check against edit conflicts. 284 291 * 292 * @return date of last modification 285 293 */ 286 294 @Override … … 351 359 352 360 /** 353 * Replies <code>true</code>, if the object is usable (i.e. complete354 * and not deleted).361 * Replies <code>true</code>, if the object is usable 362 * (i.e. complete and not deleted). 355 363 * 356 364 * @return <code>true</code>, if the object is usable. 357 * @see # delete(boolean)365 * @see #setDeleted(boolean) 358 366 */ 359 367 public boolean isUsable() { … … 362 370 363 371 /** 372 * Checks if objects is known to the server. 364 373 * Replies true if this primitive is either unknown to the server (i.e. its id 365 374 * is 0) or it is known to the server and it hasn't be deleted on the server. … … 367 376 * on the server. 368 377 * 378 * @return <code>true</code>, if the object is visible on server. 369 379 * @see #setVisible(boolean) 370 380 */ … … 625 635 626 636 /** 627 * Replies true if this primitive has a tag with key <code>key</code> 637 * Replies true if this primitive has a tag with key <code>key</code>. 628 638 * 629 639 * @param key the key -
trunk/src/org/openstreetmap/josm/data/osm/PrimitiveId.java
r5170 r5417 2 2 package org.openstreetmap.josm.data.osm; 3 3 4 /** 5 * interface to represent identifaction and type of the datatypes primitives. 6 * 7 * @since 2399 8 */ 4 9 public interface PrimitiveId { 5 10 11 /** 12 * Gets a unique id representing this object (the OSM server id for OSM objects) 13 * 14 * @return the id number 15 */ 6 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 */ 7 26 OsmPrimitiveType getType(); 8 27
Note:
See TracChangeset
for help on using the changeset viewer.