map
Class MapItem

java.lang.Object
  extended by map.MapItem

public class MapItem
extends java.lang.Object

A Map Item is an item that belongs to a Unit on the Grid, saved with its name.
(e.g. the filename of a mp3 file).

e.g. Map Item 1


Author:
Hlavac Peter
See Also:
Grid

Constructor Summary
MapItem(java.lang.String name)
          Creates a new instance of Map Item
 
Method Summary
 java.lang.String getName()
          Gets the name of the item
 java.lang.String getTrimmedName()
          Trims the name of the item (e.g.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapItem

public MapItem(java.lang.String name)
Creates a new instance of Map Item

Parameters:
name - The name of the item
Method Detail

getName

public java.lang.String getName()
Gets the name of the item

Returns:
the Name of the Item

getTrimmedName

public java.lang.String getTrimmedName()
Trims the name of the item (e.g. /albums/Anastacia - Anastacia/Anastacia - 01 - Seasons Change.mp3 --> Anastacia - 01 - Seasons Change)

Returns:
the trimmed name of the Item