Class Extensions


  • public class Extensions
    extends Object
    Indicates that a particular extension applies to a GeoPackage, a table in a GeoPackage or a column of a table in a GeoPackage. An application that access a GeoPackage can query the gpkg_extensions table instead of the contents of all the user data tables to determine if it has the required capabilities to read or write to tables with extensions, and to “fail fast” and return an error message if it does not.
    Author:
    osbornb
    • Constructor Detail

      • Extensions

        public Extensions()
        Default Constructor
      • Extensions

        public Extensions​(Extensions extensions)
        Copy Constructor
        Parameters:
        extensions - extensions to copy
        Since:
        1.3.0
    • Method Detail

      • getTableName

        public String getTableName()
        Get the table name
        Returns:
        table name
      • setTableName

        public void setTableName​(String tableName)
        Set the table name
        Parameters:
        tableName - table name
      • getColumnName

        public String getColumnName()
        Get the column name
        Returns:
        column name
      • setColumnName

        public void setColumnName​(String columnName)
        Set the column name
        Parameters:
        columnName - column name
      • getExtensionName

        public String getExtensionName()
        Get the extension name
        Returns:
        extension name
      • setExtensionName

        public void setExtensionName​(String extensionName)
        Set the extension name
        Parameters:
        extensionName - extension name
      • setExtensionName

        public void setExtensionName​(String author,
                                     String extensionName)
        Set the extension name by combining the required parts
        Parameters:
        author - author
        extensionName - extension name
      • getAuthor

        public String getAuthor()
        Get the author from the beginning of the extension name
        Returns:
        author
      • getExtensionNameNoAuthor

        public String getExtensionNameNoAuthor()
        Get the extension name with the author prefix removed
        Returns:
        extension name without the author
      • getDefinition

        public String getDefinition()
        Get the definition
        Returns:
        definition
      • setDefinition

        public void setDefinition​(String definition)
        Set the definition
        Parameters:
        definition - definition
      • getScope

        public ExtensionScopeType getScope()
        Get the extension scope type
        Returns:
        extension scope type
      • setScope

        public void setScope​(ExtensionScopeType scope)
        Set the extension scope type
        Parameters:
        scope - extension scope type
      • buildExtensionName

        public static String buildExtensionName​(String author,
                                                String extensionName)
        Build the extension name by combining the required parts
        Parameters:
        author - extension author
        extensionName - extension name
        Returns:
        extension name
        Since:
        1.1.0
      • getAuthor

        public static String getAuthor​(String extensionName)
        Get the author from the beginning of the extension name
        Parameters:
        extensionName - extension name
        Returns:
        author extension author
        Since:
        1.1.0
      • getExtensionNameNoAuthor

        public static String getExtensionNameNoAuthor​(String extensionName)
        Get the extension name with the author prefix removed
        Parameters:
        extensionName - extension name
        Returns:
        extension name, no author
        Since:
        1.1.0