Ignore:
Timestamp:
2007-05-07T23:17:41+02:00 (19 years ago)
Author:
framm
Message:

Support new 0.4 attributes "user" and "visible"; support config option "osm-server.additional-versions" containig a comma separated list of version numbers that should be accepted when reading OSM files - defaults to 0.3 to allow reading 0.3 files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/data/osm/OsmPrimitive.java

    r220 r227  
    5656
    5757        /**
     58         * Visibility status as specified by the server. The visible attribute was
     59         * introduced with the 0.4 API to be able to communicate deleted objects
     60         * (they will have visible=false). Currently JOSM does never deal with
     61         * these, so this is really for future use only.
     62         */
     63        public boolean visible = true;
     64       
     65        /**
     66         * User that last modified this primitive, as specified by the server.
     67         * Never changed by JOSM.
     68         */
     69        public User user = null;
     70       
     71        /**
    5872         * <code>true</code>, if the object has been shown. This property is not used
    5973         * internally by JOSM, but can be used by plugins that take over the object
     
    182196                        deleted == osm.deleted &&
    183197                        (semanticOnly || (timestamp == null ? osm.timestamp==null : timestamp.equals(osm.timestamp))) &&
     198                        (semanticOnly || (user == null ? osm.user==null : user==osm.user)) &&
     199                        (semanticOnly || (visible == osm.visible)) &&
    184200                        (keys == null ? osm.keys==null : keys.equals(osm.keys));
    185201        }
Note: See TracChangeset for help on using the changeset viewer.