|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TileSetRepository
The tileset repository interface should be implemented by classes that
provide access to tilesets keyed on a unique tileset identifier. The
tileset id space is up to the repository implementation, which may or
may not desire to use a TileSetIDBroker to manage the space.
| Method Summary | |
|---|---|
Iterator<Integer> |
enumerateTileSetIds()
Returns an iterator over the identifiers of all TileSet
objects available. |
Iterator<TileSet> |
enumerateTileSets()
Returns an iterator over all TileSet objects available. |
TileSet |
getTileSet(int tileSetId)
Returns the TileSet with the specified tile set
identifier. |
TileSet |
getTileSet(String setName)
Returns the TileSet with the specified tile set name. |
int |
getTileSetId(String setName)
Returns the unique identifier of the TileSet with the
specified tile set name. |
| Method Detail |
|---|
Iterator<Integer> enumerateTileSetIds()
throws PersistenceException
TileSet
objects available.
PersistenceException
Iterator<TileSet> enumerateTileSets()
throws PersistenceException
TileSet objects available.
PersistenceException
TileSet getTileSet(int tileSetId)
throws NoSuchTileSetException,
PersistenceException
TileSet with the specified tile set
identifier. The repository is responsible for configuring the tile
set with an image provider.
NoSuchTileSetException - thrown if no tileset exists with
the specified identifier.
PersistenceException - thrown if an error occurs
communicating with the underlying persistence mechanism.
int getTileSetId(String setName)
throws NoSuchTileSetException,
PersistenceException
TileSet with the
specified tile set name.
NoSuchTileSetException - thrown if no tileset exists with
the specified name.
PersistenceException - thrown if an error occurs
communicating with the underlying persistence mechanism.
TileSet getTileSet(String setName)
throws NoSuchTileSetException,
PersistenceException
TileSet with the specified tile set name. The
repository is responsible for configuring the tile set with an
image provider.
NoSuchTileSetException - thrown if no tileset exists with
the specified name.
PersistenceException - thrown if an error occurs
communicating with the underlying persistence mechanism.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||