Changeset 6140 in josm for trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
- Timestamp:
- 2013-08-11T21:09:08+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
r6069 r6140 383 383 384 384 /** 385 * Clears the id and version known to the OSM API. The id and the version is set to 0.386 * incomplete is set to false. It's preferred to use copy constructor with clearId set to true instead387 * of calling this method.385 * Clears the metadata, including id and version known to the OSM API. 386 * The id is a new unique id. The version, changeset and timestamp are set to 0. 387 * incomplete and deleted are set to false. It's preferred to use copy constructor with clearMetadata set to true instead 388 388 * 389 389 * <strong>Caution</strong>: Do not use this method on primitives which are already added to a {@link DataSet}. 390 390 * 391 391 * @throws DataIntegrityProblemException If primitive was already added to the dataset 392 */ 393 @Override 394 public void clearOsmId() { 392 * @since 6140 393 */ 394 @Override 395 public void clearOsmMetadata() { 395 396 if (dataSet != null) 396 397 throw new DataIntegrityProblemException("Method cannot be called after primitive was added to the dataset"); 397 super.clearOsm Id();398 super.clearOsmMetadata(); 398 399 } 399 400
Note:
See TracChangeset
for help on using the changeset viewer.