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
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.osm;
|
---|
3 |
|
---|
4 | import java.util.Date;
|
---|
5 |
|
---|
6 | import org.openstreetmap.josm.data.osm.visitor.PrimitiveVisitor;
|
---|
7 |
|
---|
8 | /**
|
---|
9 | * IPrimitive captures the common functions of {@link OsmPrimitive} and {@link PrimitiveData}.
|
---|
10 | */
|
---|
11 | public 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();
|
---|
20 | boolean isNewOrUndeleted();
|
---|
21 | long getId();
|
---|
22 | PrimitiveId getPrimitiveId();
|
---|
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);
|
---|
32 |
|
---|
33 | void accept(PrimitiveVisitor visitor);
|
---|
34 | String getName();
|
---|
35 | String getLocalName();
|
---|
36 |
|
---|
37 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.