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 String
format(Changeset changeset)
Formats a name for aChangeset
.String
format(INode node)
Formats a name for aINode
.String
format(IRelation<?> relation)
Formats a name for aIRelation
.String
format(IWay<?> way)
Formats a name for aIWay
.Comparator<INode>
getNodeComparator()
Gets a comparator that sorts the nodes by the string that this formatter would create for themComparator<IRelation<?>>
getRelationComparator()
Gets a comparator that sorts the relations by the string that this formatter would create for themComparator<IWay<?>>
getWayComparator()
Gets a comparator that sorts the ways by the string that this formatter would create for them
-
-
-
Method Detail
-
format
String format(INode node)
Formats a name for aINode
.- Parameters:
node
- the node- Returns:
- the name
- Since:
- 13564 (signature)
-
format
String format(IWay<?> way)
Formats a name for aIWay
.- Parameters:
way
- the way- Returns:
- the name
- Since:
- 13564 (signature)
-
format
String format(IRelation<?> relation)
Formats a name for aIRelation
.- Parameters:
relation
- the relation- Returns:
- the name
- Since:
- 13564 (signature)
-
format
String format(Changeset changeset)
Formats a name for aChangeset
.- Parameters:
changeset
- the changeset- Returns:
- the name
-
getNodeComparator
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
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
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)
-
-