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
guipackage) - See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncheckFormat(INode node, String defaultName) Check the node format.checkFormat(IRelation<?> relation, String defaultName) Check the relation format.checkFormat(IWay<?> way, String defaultName) Check the way format.checkRelationTypeName(IRelation<?> relation, String defaultName) Check the relation type name.
-
Method Details
-
checkRelationTypeName
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
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
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
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.
-