net.sf.freecol.common.model
Interface Named
- All Known Subinterfaces:
- Nameable
- All Known Implementing Classes:
- Colony, Europe, IndianSettlement, LostCityRumour, Player, Region, ServerPlayer, ServerRegion, Settlement, Unit
public interface Named
An object that has a proper name, such as a Settlement, Unit or
Player. Do not use this for objects that derive their name from
their type, such as Building, or Tile, or from other fields. Do not
use this to localize names, either. Use Messages.getName() and
similar methods instead.
Method Summary |
java.lang.String |
getName()
Gets the name of this Named object. |
getName
java.lang.String getName()
- Gets the name of this
Named
object.
- Returns:
- The name of the
Named
object.