[4209] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
| 2 | package org.openstreetmap.josm.gui;
|
---|
| 3 |
|
---|
| 4 | import org.openstreetmap.josm.data.osm.INode;
|
---|
| 5 | import org.openstreetmap.josm.data.osm.IRelation;
|
---|
| 6 | import org.openstreetmap.josm.data.osm.IWay;
|
---|
| 7 |
|
---|
| 8 | public interface NameFormatterHook {
|
---|
| 9 |
|
---|
| 10 | /**
|
---|
| 11 | * Check the relation type name. Return the corrected type name if needed, null otherwise.
|
---|
| 12 | * @param relation The relation.
|
---|
| 13 | * @param defaultName The default name generated by core.
|
---|
| 14 | * @return The corrected type name if needed, null otherwise.
|
---|
| 15 | */
|
---|
[8512] | 16 | String checkRelationTypeName(IRelation relation, String defaultName);
|
---|
[6070] | 17 |
|
---|
[4209] | 18 | /**
|
---|
| 19 | * Check the node format. Return the corrected format if needed, null otherwise.
|
---|
| 20 | * @param node The node.
|
---|
| 21 | * @param defaultName The default name generated by core.
|
---|
| 22 | * @return The corrected format if needed, null otherwise.
|
---|
| 23 | */
|
---|
[8512] | 24 | String checkFormat(INode node, String defaultName);
|
---|
[6070] | 25 |
|
---|
[4209] | 26 | /**
|
---|
| 27 | * Check the way format. Return the corrected format if needed, null otherwise.
|
---|
| 28 | * @param way The way.
|
---|
| 29 | * @param defaultName The default name generated by core.
|
---|
| 30 | * @return The corrected format if needed, null otherwise.
|
---|
| 31 | */
|
---|
[8512] | 32 | String checkFormat(IWay way, String defaultName);
|
---|
[4209] | 33 |
|
---|
| 34 | /**
|
---|
| 35 | * Check the relation format. Return the corrected format if needed, null otherwise.
|
---|
| 36 | * @param relation The relation.
|
---|
| 37 | * @param defaultName The default name generated by core.
|
---|
| 38 | * @return The corrected format if needed, null otherwise.
|
---|
| 39 | */
|
---|
[8512] | 40 | String checkFormat(IRelation relation, String defaultName);
|
---|
[4209] | 41 | }
|
---|