Package mil.nga.geopackage.tiles.user
Class TileColumns
- java.lang.Object
-
- mil.nga.geopackage.user.UserColumns<TileColumn>
-
- mil.nga.geopackage.tiles.user.TileColumns
-
public class TileColumns extends UserColumns<TileColumn>
Collection of tile columns- Since:
- 3.5.0
- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description static String
ID
Id column name, Requirement 52static String
TILE_COLUMN
Tile column column name, Requirement 54static String
TILE_DATA
Tile ID column name, implied requirementstatic String
TILE_ROW
Tile row column name, Requirement 55static String
ZOOM_LEVEL
Zoom level column name, Requirement 53
-
Constructor Summary
Constructors Constructor Description TileColumns(String tableName, List<TileColumn> columns)
ConstructorTileColumns(String tableName, List<TileColumn> columns, boolean custom)
ConstructorTileColumns(TileColumns tileColumns)
Copy Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TileColumns
copy()
Copy the user columnsTileColumn
getTileColumnColumn()
Get the tile column columnint
getTileColumnIndex()
Get the tile column indexTileColumn
getTileDataColumn()
Get the tile data columnint
getTileDataIndex()
Get the tile data indexTileColumn
getTileRowColumn()
Get the tile row columnint
getTileRowIndex()
Get the tile row indexTileColumn
getZoomLevelColumn()
Get the zoom level columnint
getZoomLevelIndex()
Get the zoom level indexboolean
hasTileColumnColumn()
Check if has a tile column columnboolean
hasTileDataColumn()
Check if has a tile data columnboolean
hasTileRowColumn()
Check if has a tile row columnboolean
hasZoomLevelColumn()
Check if has a zoom level columnvoid
setTileColumnIndex(int tileColumnIndex)
Set the tile column indexvoid
setTileDataIndex(int tileDataIndex)
Set the tile data indexvoid
setTileRowIndex(int tileRowIndex)
Set the tile row indexvoid
setZoomLevelIndex(int zoomLevelIndex)
Set the zoom level indexprotected void
updateColumns()
Update the table columns-
Methods inherited from class mil.nga.geopackage.user.UserColumns
addColumn, alterColumn, columnCount, columnsOfType, dropColumn, dropColumn, dropColumn, duplicateCheck, getColumn, getColumn, getColumnIndex, getColumnIndex, getColumnName, getColumnNames, getColumns, getPkColumn, getPkColumnIndex, getPkColumnName, getTableName, hasColumn, hasPkColumn, hasSchema, isCustom, isPkModifiable, isValueValidation, missingCheck, renameColumn, renameColumn, renameColumn, setCustom, setPkModifiable, setTableName, setValueValidation, typeCheck
-
-
-
-
Field Detail
-
ID
public static final String ID
Id column name, Requirement 52- See Also:
- Constant Field Values
-
ZOOM_LEVEL
public static final String ZOOM_LEVEL
Zoom level column name, Requirement 53- See Also:
- Constant Field Values
-
TILE_COLUMN
public static final String TILE_COLUMN
Tile column column name, Requirement 54- See Also:
- Constant Field Values
-
TILE_ROW
public static final String TILE_ROW
Tile row column name, Requirement 55- See Also:
- Constant Field Values
-
TILE_DATA
public static final String TILE_DATA
Tile ID column name, implied requirement- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TileColumns
public TileColumns(String tableName, List<TileColumn> columns)
Constructor- Parameters:
tableName
- table namecolumns
- columns
-
TileColumns
public TileColumns(String tableName, List<TileColumn> columns, boolean custom)
Constructor- Parameters:
tableName
- table namecolumns
- columnscustom
- custom column specification
-
TileColumns
public TileColumns(TileColumns tileColumns)
Copy Constructor- Parameters:
tileColumns
- tile columns
-
-
Method Detail
-
copy
public TileColumns copy()
Copy the user columns- Specified by:
copy
in classUserColumns<TileColumn>
- Returns:
- copied user columns
-
updateColumns
protected void updateColumns()
Update the table columns- Overrides:
updateColumns
in classUserColumns<TileColumn>
-
getZoomLevelIndex
public int getZoomLevelIndex()
Get the zoom level index- Returns:
- zoom level index
-
setZoomLevelIndex
public void setZoomLevelIndex(int zoomLevelIndex)
Set the zoom level index- Parameters:
zoomLevelIndex
- zoom level index
-
hasZoomLevelColumn
public boolean hasZoomLevelColumn()
Check if has a zoom level column- Returns:
- true if has a zoom level column
-
getZoomLevelColumn
public TileColumn getZoomLevelColumn()
Get the zoom level column- Returns:
- zoom level column
-
getTileColumnIndex
public int getTileColumnIndex()
Get the tile column index- Returns:
- tile column index
-
setTileColumnIndex
public void setTileColumnIndex(int tileColumnIndex)
Set the tile column index- Parameters:
tileColumnIndex
- tile column index
-
hasTileColumnColumn
public boolean hasTileColumnColumn()
Check if has a tile column column- Returns:
- true if has a tile column column
-
getTileColumnColumn
public TileColumn getTileColumnColumn()
Get the tile column column- Returns:
- tile column column
-
getTileRowIndex
public int getTileRowIndex()
Get the tile row index- Returns:
- tile row index
-
setTileRowIndex
public void setTileRowIndex(int tileRowIndex)
Set the tile row index- Parameters:
tileRowIndex
- tile row index
-
hasTileRowColumn
public boolean hasTileRowColumn()
Check if has a tile row column- Returns:
- true if has a tile row column
-
getTileRowColumn
public TileColumn getTileRowColumn()
Get the tile row column- Returns:
- tile row column
-
getTileDataIndex
public int getTileDataIndex()
Get the tile data index- Returns:
- tile data index
-
setTileDataIndex
public void setTileDataIndex(int tileDataIndex)
Set the tile data index- Parameters:
tileDataIndex
- tile data index
-
hasTileDataColumn
public boolean hasTileDataColumn()
Check if has a tile data column- Returns:
- true if has a tile data column
-
getTileDataColumn
public TileColumn getTileDataColumn()
Get the tile data column- Returns:
- tile data column
-
-