Changeset 5417 in josm


Ignore:
Timestamp:
2012-08-10T12:51:52+02:00 (12 years ago)
Author:
stoecker
Message:

some Javadoc fixes

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  
    1717import java.util.concurrent.atomic.AtomicLong;
    1818
     19/**
     20* Abstract class to represent common features of the datatypes primitives.
     21*
     22* @since 4099
     23*/
    1924public abstract class AbstractPrimitive implements IPrimitive {
    2025
     
    9499     * Get and write all attributes from the parameter. Does not fire any listener, so
    95100     * use this only in the data initializing phase
     101     * @param other the primitive to clone data from
    96102     */
    97103    public void cloneFrom(AbstractPrimitive other) {
     
    122128     * if this primitive is incomplete.
    123129     *
    124      * @see #setVersion(int)
     130     * @see PrimitiveData#setVersion(int)
    125131     */
    126132    @Override
     
    141147
    142148    /**
     149     * Gets a unique id representing this object.
    143150     *
    144151     * @return Osm id if primitive already exists on the server. Unique negative value if primitive is new
     
    283290     * used to check against edit conflicts.
    284291     *
     292     * @return date of last modification
    285293     */
    286294    @Override
     
    351359
    352360    /**
    353      * Replies <code>true</code>, if the object is usable (i.e. complete
    354      * and not deleted).
     361     * Replies <code>true</code>, if the object is usable
     362     * (i.e. complete and not deleted).
    355363     *
    356364     * @return <code>true</code>, if the object is usable.
    357      * @see #delete(boolean)
     365     * @see #setDeleted(boolean)
    358366     */
    359367    public boolean isUsable() {
     
    362370
    363371    /**
     372     * Checks if objects is known to the server.
    364373     * Replies true if this primitive is either unknown to the server (i.e. its id
    365374     * is 0) or it is known to the server and it hasn't be deleted on the server.
     
    367376     * on the server.
    368377     *
     378     * @return <code>true</code>, if the object is visible on server.
    369379     * @see #setVisible(boolean)
    370380     */
     
    625635
    626636    /**
    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>.
    628638     *
    629639     * @param key the key
  • trunk/src/org/openstreetmap/josm/data/osm/PrimitiveId.java

    r5170 r5417  
    22package org.openstreetmap.josm.data.osm;
    33
     4/**
     5* interface to represent identifaction and type of the datatypes primitives.
     6*
     7* @since 2399
     8*/
    49public interface PrimitiveId {
    510
     11    /**
     12     * Gets a unique id representing this object (the OSM server id for OSM objects)
     13     *
     14     * @return the id number
     15     */
    616    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     */
    726    OsmPrimitiveType getType();
    827
Note: See TracChangeset for help on using the changeset viewer.