Package org.openstreetmap.josm.data.osm
Interface NameFormatter
-
- All Known Implementing Classes:
DefaultNameFormatter
public interface NameFormatter
Formats a name for anIPrimitive.- Since:
- 1990
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringformat(Changeset changeset)Formats a name for aChangeset.java.lang.Stringformat(INode node)Formats a name for aINode.java.lang.Stringformat(IRelation<?> relation)Formats a name for aIRelation.java.lang.Stringformat(IWay<?> way)Formats a name for aIWay.java.util.Comparator<INode>getNodeComparator()Gets a comparator that sorts the nodes by the string that this formatter would create for themjava.util.Comparator<IRelation<?>>getRelationComparator()Gets a comparator that sorts the relations by the string that this formatter would create for themjava.util.Comparator<IWay<?>>getWayComparator()Gets a comparator that sorts the ways by the string that this formatter would create for them
-
-
-
Method Detail
-
format
java.lang.String format(INode node)
Formats a name for aINode.- Parameters:
node- the node- Returns:
- the name
- Since:
- 13564 (signature)
-
format
java.lang.String format(IWay<?> way)
Formats a name for aIWay.- Parameters:
way- the way- Returns:
- the name
- Since:
- 13564 (signature)
-
format
java.lang.String format(IRelation<?> relation)
Formats a name for aIRelation.- Parameters:
relation- the relation- Returns:
- the name
- Since:
- 13564 (signature)
-
format
java.lang.String format(Changeset changeset)
Formats a name for aChangeset.- Parameters:
changeset- the changeset- Returns:
- the name
-
getNodeComparator
java.util.Comparator<INode> getNodeComparator()
Gets a comparator that sorts the nodes by the string that this formatter would create for them- Returns:
- That comparator
- Since:
- 13564 (signature)
-
getWayComparator
java.util.Comparator<IWay<?>> getWayComparator()
Gets a comparator that sorts the ways by the string that this formatter would create for them- Returns:
- That comparator
- Since:
- 13564 (signature)
-
getRelationComparator
java.util.Comparator<IRelation<?>> getRelationComparator()
Gets a comparator that sorts the relations by the string that this formatter would create for them- Returns:
- That comparator
- Since:
- 13564 (signature)
-
-