Package mil.nga.geopackage.extension
Class BaseExtension
- java.lang.Object
- 
- mil.nga.geopackage.extension.BaseExtension
 
- 
- Direct Known Subclasses:
- ContentsIdExtension,- CoverageDataCore,- CrsWktExtension,- FeatureCoreStyleExtension,- FeatureTableCoreIndex,- FeatureTileTableCoreLinker,- GeometryExtensions,- MetadataExtension,- PortrayalExtension,- PropertiesCoreExtension,- RelatedTablesCoreExtension,- RTreeIndexCoreExtension,- SchemaExtension,- TileMatrixSetExtension,- TileTableScaling,- VectorTilesEncodingExtension,- VectorTilesExtension,- WebPExtension,- ZoomOtherExtension
 
 public abstract class BaseExtension extends Object Abstract base GeoPackage extension- Since:
- 1.1.8
- Author:
- osbornb
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected ExtensionsDaoextensionsDaoExtensions DAOprotected GeoPackageCoregeoPackageGeoPackage Core
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBaseExtension(GeoPackageCore geoPackage)Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description <D extends GeoPackageDao<T,?>,T>
 DcreateDao(Class<T> type)Create a daoprotected Extensionsget(String extensionName, String tableName, String columnName)Get the extension for the name, table name, and column nameprotected List<Extensions>getExtensions(String extensionName)Get the extension for the nameprotected List<Extensions>getExtensions(String extensionName, String tableName)Get the extension for the name and table nameExtensionsDaogetExtensionsDao()Get the Extensions DAOGeoPackageCoregetGeoPackage()Get the GeoPackageprotected ExtensionsgetOrCreate(String extensionName, String tableName, String columnName, String definition, ExtensionScopeType scopeType)Get the extension or create as neededprotected booleanhas(String extensionName)Determine if the GeoPackage has the extensionprotected booleanhas(String extensionName, String tableName)Determine if the GeoPackage has the extensionprotected booleanhas(String extensionName, String tableName, String columnName)Determine if the GeoPackage has the extensionvoidverifyWritable()Verify the GeoPackage is writable and throw an exception if it is not
 
- 
- 
- 
Field Detail- 
geoPackageprotected final GeoPackageCore geoPackage GeoPackage Core
 - 
extensionsDaoprotected final ExtensionsDao extensionsDao Extensions DAO
 
- 
 - 
Constructor Detail- 
BaseExtensionprotected BaseExtension(GeoPackageCore geoPackage) Constructor- Parameters:
- geoPackage- GeoPackage
 
 
- 
 - 
Method Detail- 
getGeoPackagepublic GeoPackageCore getGeoPackage() Get the GeoPackage- Returns:
- geoPackage
 
 - 
getExtensionsDaopublic ExtensionsDao getExtensionsDao() Get the Extensions DAO- Returns:
- extensions DAO
 
 - 
getOrCreateprotected Extensions getOrCreate(String extensionName, String tableName, String columnName, String definition, ExtensionScopeType scopeType) Get the extension or create as needed- Parameters:
- extensionName- extension name
- tableName- table name
- columnName- column name
- definition- extension definition
- scopeType- extension scope type
- Returns:
- extension
 
 - 
getprotected Extensions get(String extensionName, String tableName, String columnName) Get the extension for the name, table name, and column name- Parameters:
- extensionName- extension name
- tableName- table name
- columnName- column name
- Returns:
- extension
 
 - 
hasprotected boolean has(String extensionName, String tableName, String columnName) Determine if the GeoPackage has the extension- Parameters:
- extensionName- extension name
- tableName- table name
- columnName- column name
- Returns:
- true if has extension
 
 - 
getExtensionsprotected List<Extensions> getExtensions(String extensionName, String tableName) Get the extension for the name and table name- Parameters:
- extensionName- extension name
- tableName- table name
- Returns:
- extension
 
 - 
hasprotected boolean has(String extensionName, String tableName) Determine if the GeoPackage has the extension- Parameters:
- extensionName- extension name
- tableName- table name
- Returns:
- true if has extension
 
 - 
getExtensionsprotected List<Extensions> getExtensions(String extensionName) Get the extension for the name- Parameters:
- extensionName- extension name
- Returns:
- extension
 
 - 
hasprotected boolean has(String extensionName) Determine if the GeoPackage has the extension- Parameters:
- extensionName- extension name
- Returns:
- true if has extension
 
 - 
verifyWritablepublic void verifyWritable() Verify the GeoPackage is writable and throw an exception if it is not- Since:
- 4.0.0
 
 - 
createDaopublic <D extends GeoPackageDao<T,?>,T> D createDao(Class<T> type) Create a dao- Type Parameters:
- D- dao type
- T- class type
- Parameters:
- type- dao class type
- Returns:
- base dao implementation
- Since:
- 4.0.0
 
 
- 
 
-