Package org.openstreetmap.josm.data.osm
Interface NameFormatterHook
-
public interface NameFormatterHook
Hooks that allow correcting the name of a OSM primitive- Since:
- 12663 (moved from
gui
package) - See Also:
DefaultNameFormatter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
checkFormat(INode node, String defaultName)
Check the node format.String
checkFormat(IRelation<?> relation, String defaultName)
Check the relation format.String
checkFormat(IWay<?> way, String defaultName)
Check the way format.String
checkRelationTypeName(IRelation<?> relation, String defaultName)
Check the relation type name.
-
-
-
Method Detail
-
checkRelationTypeName
String checkRelationTypeName(IRelation<?> relation, String defaultName)
Check the relation type name. Return the corrected type name if needed, null otherwise.- Parameters:
relation
- The relation.defaultName
- The default name generated by core.- Returns:
- The corrected type name if needed, null otherwise.
-
checkFormat
String checkFormat(INode node, String defaultName)
Check the node format. Return the corrected format if needed, null otherwise.- Parameters:
node
- The node.defaultName
- The default name generated by core.- Returns:
- The corrected format if needed, null otherwise.
-
checkFormat
String checkFormat(IWay<?> way, String defaultName)
Check the way format. Return the corrected format if needed, null otherwise.- Parameters:
way
- The way.defaultName
- The default name generated by core.- Returns:
- The corrected format if needed, null otherwise.
-
checkFormat
String checkFormat(IRelation<?> relation, String defaultName)
Check the relation format. Return the corrected format if needed, null otherwise.- Parameters:
relation
- The relation.defaultName
- The default name generated by core.- Returns:
- The corrected format if needed, null otherwise.
-
-