Last change
on this file since 10824 was 9203, checked in by Don-vip, 9 years ago |
add more unit tests, javadoc
|
-
Property svn:eol-style
set to
native
|
File size:
991 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.osm;
|
---|
3 |
|
---|
4 | import java.util.Comparator;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * Formats a name for a {@link OsmPrimitive}.
|
---|
8 | * @since 1990
|
---|
9 | */
|
---|
10 | public interface NameFormatter {
|
---|
11 |
|
---|
12 | /**
|
---|
13 | * Formats a name for a {@link Node}.
|
---|
14 | *
|
---|
15 | * @param node the node
|
---|
16 | * @return the name
|
---|
17 | */
|
---|
18 | String format(Node node);
|
---|
19 |
|
---|
20 | /**
|
---|
21 | * Formats a name for a {@link Way}.
|
---|
22 | *
|
---|
23 | * @param way the way
|
---|
24 | * @return the name
|
---|
25 | */
|
---|
26 | String format(Way way);
|
---|
27 |
|
---|
28 | /**
|
---|
29 | * Formats a name for a {@link Relation}.
|
---|
30 | *
|
---|
31 | * @param relation the relation
|
---|
32 | * @return the name
|
---|
33 | */
|
---|
34 | String format(Relation relation);
|
---|
35 |
|
---|
36 | /**
|
---|
37 | * Formats a name for a {@link Changeset}.
|
---|
38 | *
|
---|
39 | * @param changeset the changeset
|
---|
40 | * @return the name
|
---|
41 | */
|
---|
42 | String format(Changeset changeset);
|
---|
43 |
|
---|
44 | Comparator<Node> getNodeComparator();
|
---|
45 |
|
---|
46 | Comparator<Way> getWayComparator();
|
---|
47 |
|
---|
48 | Comparator<Relation> getRelationComparator();
|
---|
49 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.