org.openstreetmap.josm.gui
Interface NameFormatterHook


public interface NameFormatterHook


Method Summary
 java.lang.String checkFormat(org.openstreetmap.josm.data.osm.INode node, java.lang.String defaultName)
          Check the node format.
 java.lang.String checkFormat(org.openstreetmap.josm.data.osm.IRelation node, java.lang.String defaultName)
          Check the relation format.
 java.lang.String checkFormat(org.openstreetmap.josm.data.osm.IWay node, java.lang.String defaultName)
          Check the way format.
 java.lang.String checkRelationTypeName(org.openstreetmap.josm.data.osm.IRelation relation, java.lang.String defaultName)
          Check the relation type name.
 

Method Detail

checkRelationTypeName

java.lang.String checkRelationTypeName(org.openstreetmap.josm.data.osm.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(org.openstreetmap.josm.data.osm.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(org.openstreetmap.josm.data.osm.IWay node,
                             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(org.openstreetmap.josm.data.osm.IRelation node,
                             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.