public interface TileSetRepository
TileSetIDBroker to manage the space.| Modifier and Type | Method and Description |
|---|---|
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. |
Iterator<Integer> enumerateTileSetIds() throws PersistenceException
TileSet
objects available.PersistenceExceptionIterator<TileSet> enumerateTileSets() throws PersistenceException
TileSet objects available.PersistenceExceptionTileSet 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.Copyright © 2015. All rights reserved.