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:
DefaultNameFormatter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringcheckFormat(INode node, java.lang.String defaultName)Check the node format.java.lang.StringcheckFormat(IRelation<?> relation, java.lang.String defaultName)Check the relation format.java.lang.StringcheckFormat(IWay<?> way, java.lang.String defaultName)Check the way format.java.lang.StringcheckRelationTypeName(IRelation<?> relation, java.lang.String defaultName)Check the relation type name.
-
-
-
Method Detail
-
checkRelationTypeName
java.lang.String checkRelationTypeName(IRelation<?> relation, java.lang.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
java.lang.String checkFormat(INode node, java.lang.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
java.lang.String checkFormat(IWay<?> way, java.lang.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
java.lang.String checkFormat(IRelation<?> relation, java.lang.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.
-
-