| Revision 4431,
1001 bytes
checked in by jttt, 8 months ago
(diff) |
|
Custom primitive name formatters via tagging presets
|
-
Property svn:eol-style set to
native
|
| 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 OsmPrimitive and 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 visit(PrimitiveVisitor visitor); |
|---|
| 34 | String getName(); |
|---|
| 35 | String getLocalName(); |
|---|
| 36 | |
|---|
| 37 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.