Class FeatureCoreStyleExtension
- java.lang.Object
-
- mil.nga.geopackage.extension.BaseExtension
-
- mil.nga.geopackage.extension.nga.style.FeatureCoreStyleExtension
-
public abstract class FeatureCoreStyleExtension extends BaseExtension
Feature Core Style extension http://ngageoint.github.io/GeoPackage/docs/extensions/feature-style.html- Since:
- 3.2.0
- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentsIdExtensioncontentsIdContents Id extensionstatic StringEXTENSION_AUTHORExtension authorstatic StringEXTENSION_DEFINITIONExtension definition URLstatic StringEXTENSION_NAMEExtension, with author and namestatic StringEXTENSION_NAME_NO_AUTHORExtension name without the authorprotected RelatedTablesCoreExtensionrelatedTablesRelated Tables extensionstatic StringTABLE_MAPPING_ICONTable name prefix for mapping iconsstatic StringTABLE_MAPPING_STYLETable name prefix for mapping stylesstatic StringTABLE_MAPPING_TABLE_ICONTable name prefix for mapping icon defaultsstatic StringTABLE_MAPPING_TABLE_STYLETable name prefix for mapping style defaults-
Fields inherited from class mil.nga.geopackage.extension.BaseExtension
extensionsDao, geoPackage
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFeatureCoreStyleExtension(GeoPackageCore geoPackage, RelatedTablesCoreExtension relatedTables)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateIconRelationship(String featureTable)Create an icon relationship for the feature tablevoidcreateRelationships(String featureTable)Create style, icon, table style, and table icon relationships for the feature tablevoidcreateStyleRelationship(String featureTable)Create a style relationship for the feature tablevoidcreateTableIconRelationship(String featureTable)Create a feature table icon relationshipvoidcreateTableStyleRelationship(String featureTable)Create a feature table style relationshipvoiddeleteIconRelationship(String featureTable)Delete a icon relationship for the feature tablevoiddeleteRelationships()Delete the style and icon table and row relationships for all feature tablesvoiddeleteRelationships(String featureTable)Delete the style and icon table and row relationships for the feature tablevoiddeleteStyleRelationship(String featureTable)Delete a style relationship for the feature tablevoiddeleteTableIconRelationship(String featureTable)Delete a table icon relationship for the feature tablevoiddeleteTableStyleRelationship(String featureTable)Delete a table style relationship for the feature tableExtensionsget(String featureTable)Get the extension for the feature tableContentsIdExtensiongetContentsId()Get the contents id extensionStringgetMappingTableName(String tablePrefix, String featureTable)Get the mapping table nameRelatedTablesCoreExtensiongetRelatedTables()Get the related tables extensionList<String>getTables()Get the feature tables registered with the extensionbooleanhas()Determine if the GeoPackage has the extensionbooleanhas(String featureTable)Determine if the GeoPackage has the extension for the feature tablebooleanhasIconRelationship(String featureTable)Determine if an icon relationship exists for the feature tablebooleanhasRelationship(String featureTable)Check if feature table has a style, icon, table style, or table icon relationshipsbooleanhasStyleRelationship(String featureTable)Determine if a style relationship exists for the feature tablebooleanhasTableIconRelationship(String featureTable)Determine if a feature table icon relationship existsbooleanhasTableStyleRelationship(String featureTable)Determine if a feature table style relationship existsvoidremoveExtension()Completely remove and delete the extension and all styles and icons-
Methods inherited from class mil.nga.geopackage.extension.BaseExtension
createDao, get, getExtensions, getExtensions, getExtensionsDao, getGeoPackage, getOrCreate, has, has, verifyWritable
-
-
-
-
Field Detail
-
EXTENSION_AUTHOR
public static final String EXTENSION_AUTHOR
Extension author- See Also:
- Constant Field Values
-
EXTENSION_NAME_NO_AUTHOR
public static final String EXTENSION_NAME_NO_AUTHOR
Extension name without the author- See Also:
- Constant Field Values
-
EXTENSION_NAME
public static final String EXTENSION_NAME
Extension, with author and name
-
EXTENSION_DEFINITION
public static final String EXTENSION_DEFINITION
Extension definition URL
-
TABLE_MAPPING_STYLE
public static final String TABLE_MAPPING_STYLE
Table name prefix for mapping styles- See Also:
- Constant Field Values
-
TABLE_MAPPING_TABLE_STYLE
public static final String TABLE_MAPPING_TABLE_STYLE
Table name prefix for mapping style defaults- See Also:
- Constant Field Values
-
TABLE_MAPPING_ICON
public static final String TABLE_MAPPING_ICON
Table name prefix for mapping icons- See Also:
- Constant Field Values
-
TABLE_MAPPING_TABLE_ICON
public static final String TABLE_MAPPING_TABLE_ICON
Table name prefix for mapping icon defaults- See Also:
- Constant Field Values
-
relatedTables
protected final RelatedTablesCoreExtension relatedTables
Related Tables extension
-
contentsId
protected final ContentsIdExtension contentsId
Contents Id extension
-
-
Constructor Detail
-
FeatureCoreStyleExtension
protected FeatureCoreStyleExtension(GeoPackageCore geoPackage, RelatedTablesCoreExtension relatedTables)
Constructor- Parameters:
geoPackage- GeoPackagerelatedTables- related tables
-
-
Method Detail
-
getTables
public List<String> getTables()
Get the feature tables registered with the extension- Returns:
- list of feature table names
-
has
public boolean has()
Determine if the GeoPackage has the extension- Returns:
- true if has extension
-
get
public Extensions get(String featureTable)
Get the extension for the feature table- Parameters:
featureTable- feature table- Returns:
- extension
- Since:
- 4.0.0
-
has
public boolean has(String featureTable)
Determine if the GeoPackage has the extension for the feature table- Overrides:
hasin classBaseExtension- Parameters:
featureTable- feature table- Returns:
- true if has extension
-
getRelatedTables
public RelatedTablesCoreExtension getRelatedTables()
Get the related tables extension- Returns:
- related tables extension
-
getContentsId
public ContentsIdExtension getContentsId()
Get the contents id extension- Returns:
- contents id extension
-
createRelationships
public void createRelationships(String featureTable)
Create style, icon, table style, and table icon relationships for the feature table- Parameters:
featureTable- feature table
-
hasRelationship
public boolean hasRelationship(String featureTable)
Check if feature table has a style, icon, table style, or table icon relationships- Parameters:
featureTable- feature table- Returns:
- true if has a relationship
-
createStyleRelationship
public void createStyleRelationship(String featureTable)
Create a style relationship for the feature table- Parameters:
featureTable- feature table
-
hasStyleRelationship
public boolean hasStyleRelationship(String featureTable)
Determine if a style relationship exists for the feature table- Parameters:
featureTable- feature table- Returns:
- true if relationship exists
-
createTableStyleRelationship
public void createTableStyleRelationship(String featureTable)
Create a feature table style relationship- Parameters:
featureTable- feature table
-
hasTableStyleRelationship
public boolean hasTableStyleRelationship(String featureTable)
Determine if a feature table style relationship exists- Parameters:
featureTable- feature table- Returns:
- true if relationship exists
-
createIconRelationship
public void createIconRelationship(String featureTable)
Create an icon relationship for the feature table- Parameters:
featureTable- feature table
-
hasIconRelationship
public boolean hasIconRelationship(String featureTable)
Determine if an icon relationship exists for the feature table- Parameters:
featureTable- feature table- Returns:
- true if relationship exists
-
createTableIconRelationship
public void createTableIconRelationship(String featureTable)
Create a feature table icon relationship- Parameters:
featureTable- feature table
-
hasTableIconRelationship
public boolean hasTableIconRelationship(String featureTable)
Determine if a feature table icon relationship exists- Parameters:
featureTable- feature table- Returns:
- true if relationship exists
-
getMappingTableName
public String getMappingTableName(String tablePrefix, String featureTable)
Get the mapping table name- Parameters:
tablePrefix- table name prefixfeatureTable- feature table name- Returns:
- mapping table name
-
deleteRelationships
public void deleteRelationships()
Delete the style and icon table and row relationships for all feature tables
-
deleteRelationships
public void deleteRelationships(String featureTable)
Delete the style and icon table and row relationships for the feature table- Parameters:
featureTable- feature table
-
deleteStyleRelationship
public void deleteStyleRelationship(String featureTable)
Delete a style relationship for the feature table- Parameters:
featureTable- feature table
-
deleteTableStyleRelationship
public void deleteTableStyleRelationship(String featureTable)
Delete a table style relationship for the feature table- Parameters:
featureTable- feature table
-
deleteIconRelationship
public void deleteIconRelationship(String featureTable)
Delete a icon relationship for the feature table- Parameters:
featureTable- feature table
-
deleteTableIconRelationship
public void deleteTableIconRelationship(String featureTable)
Delete a table icon relationship for the feature table- Parameters:
featureTable- feature table
-
removeExtension
public void removeExtension()
Completely remove and delete the extension and all styles and icons
-
-