source: josm/trunk/src/org/openstreetmap/josm/data/osm/IPrimitive.java@ 6010

Last change on this file since 6010 was 6009, checked in by Don-vip, 11 years ago

fix #8799 - Follow conventional visitor design pattern by renaming visit(Visitor) to accept(Visitor)

  • Property svn:eol-style set to native
File size: 1018 bytes
RevLine 
[4098]1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.osm;
3
4import java.util.Date;
5
[4100]6import org.openstreetmap.josm.data.osm.visitor.PrimitiveVisitor;
7
[4098]8/**
[5589]9 * IPrimitive captures the common functions of {@link OsmPrimitive} and {@link PrimitiveData}.
[4098]10 */
11public interface IPrimitive extends Tagged, PrimitiveId {
12
13 boolean isModified();
14 void setModified(boolean modified);
15 boolean isVisible();
16 void setVisible(boolean visible);
17 boolean isDeleted();
18 void setDeleted(boolean deleted);
19 boolean isIncomplete();
[4100]20 boolean isNewOrUndeleted();
[4098]21 long getId();
[4100]22 PrimitiveId getPrimitiveId();
[4098]23 int getVersion();
24 void setOsmId(long id, int version);
25 User getUser();
26 void setUser(User user);
27 Date getTimestamp();
28 void setTimestamp(Date timestamp);
29 boolean isTimestampEmpty();
30 int getChangesetId();
31 void setChangesetId(int changesetId);
[4431]32
[6009]33 void accept(PrimitiveVisitor visitor);
[4100]34 String getName();
35 String getLocalName();
[4098]36
37}
Note: See TracBrowser for help on using the repository browser.