Class GeoPackageProperties


  • public class GeoPackageProperties
    extends Object
    GeoPackage property loader
    Author:
    osbornb
    • Constructor Detail

      • GeoPackageProperties

        public GeoPackageProperties()
    • Method Detail

      • getProperty

        public static String getProperty​(String key)
        Get a required property by key
        Parameters:
        key - key
        Returns:
        value
      • getProperty

        public static String getProperty​(String key,
                                         boolean required)
        Get a property by key
        Parameters:
        key - key
        required - true if required
        Returns:
        value
      • getProperty

        public static String getProperty​(String... properties)
        Get a required property by property parts
        Parameters:
        properties - property parts
        Returns:
        value
        Since:
        4.0.0
      • getProperty

        public static String getProperty​(boolean required,
                                         String... properties)
        Get a property by property parts
        Parameters:
        required - true if required
        properties - property parts
        Returns:
        value
        Since:
        4.0.0
      • getIntegerProperty

        public static int getIntegerProperty​(String key)
        Get a required integer property by key
        Parameters:
        key - key
        Returns:
        integer value
      • getIntegerProperty

        public static Integer getIntegerProperty​(String key,
                                                 boolean required)
        Get an integer property by key
        Parameters:
        key - key
        required - true if required
        Returns:
        integer value
      • getIntegerProperty

        public static int getIntegerProperty​(String... properties)
        Get a required integer property by property parts
        Parameters:
        properties - property parts
        Returns:
        integer value
        Since:
        4.0.0
      • getIntegerProperty

        public static Integer getIntegerProperty​(boolean required,
                                                 String... properties)
        Get an integer property by property parts
        Parameters:
        required - true if required
        properties - property parts
        Returns:
        integer value
        Since:
        4.0.0
      • getFloatProperty

        public static float getFloatProperty​(String key)
        Get a required float by key
        Parameters:
        key - key
        Returns:
        float value
      • getFloatProperty

        public static Float getFloatProperty​(String key,
                                             boolean required)
        Get a float by key
        Parameters:
        key - key
        required - true if required
        Returns:
        float value
      • getFloatProperty

        public static float getFloatProperty​(String... properties)
        Get a required float property by property parts
        Parameters:
        properties - property parts
        Returns:
        float value
        Since:
        4.0.0
      • getFloatProperty

        public static Float getFloatProperty​(boolean required,
                                             String... properties)
        Get a float property by property parts
        Parameters:
        required - true if required
        properties - property parts
        Returns:
        float value
        Since:
        4.0.0
      • getBooleanProperty

        public static boolean getBooleanProperty​(String key)
        Get a required boolean by key
        Parameters:
        key - key
        Returns:
        boolean value
      • getBooleanProperty

        public static Boolean getBooleanProperty​(String key,
                                                 boolean required)
        Get a boolean by key
        Parameters:
        key - key
        required - true if required
        Returns:
        boolean value
      • getBooleanProperty

        public static boolean getBooleanProperty​(String... properties)
        Get a required boolean property by property parts
        Parameters:
        properties - property parts
        Returns:
        boolean value
        Since:
        4.0.0
      • getBooleanProperty

        public static Boolean getBooleanProperty​(boolean required,
                                                 String... properties)
        Get a boolean property by property parts
        Parameters:
        required - true if required
        properties - property parts
        Returns:
        boolean value
        Since:
        4.0.0
      • buildProperty

        public static String buildProperty​(String... properties)
        Build a combined property separated by PropertyConstants.PROPERTY_DIVIDER
        Parameters:
        properties - property parts
        Returns:
        combined property
        Since:
        4.0.0