Package mil.nga.geopackage.property
Class GeoPackageProperties
- java.lang.Object
-
- mil.nga.geopackage.property.GeoPackageProperties
-
public class GeoPackageProperties extends Object
GeoPackage property loader- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description GeoPackageProperties()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringbuildProperty(String... properties)Build a combined property separated byPropertyConstants.PROPERTY_DIVIDERstatic BooleangetBooleanProperty(boolean required, String... properties)Get a boolean property by property partsstatic booleangetBooleanProperty(String key)Get a required boolean by keystatic booleangetBooleanProperty(String... properties)Get a required boolean property by property partsstatic BooleangetBooleanProperty(String key, boolean required)Get a boolean by keystatic FloatgetFloatProperty(boolean required, String... properties)Get a float property by property partsstatic floatgetFloatProperty(String key)Get a required float by keystatic floatgetFloatProperty(String... properties)Get a required float property by property partsstatic FloatgetFloatProperty(String key, boolean required)Get a float by keystatic IntegergetIntegerProperty(boolean required, String... properties)Get an integer property by property partsstatic intgetIntegerProperty(String key)Get a required integer property by keystatic intgetIntegerProperty(String... properties)Get a required integer property by property partsstatic IntegergetIntegerProperty(String key, boolean required)Get an integer property by keystatic StringgetProperty(boolean required, String... properties)Get a property by property partsstatic StringgetProperty(String key)Get a required property by keystatic StringgetProperty(String... properties)Get a required property by property partsstatic StringgetProperty(String key, boolean required)Get a property by key
-
-
-
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- keyrequired- 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 requiredproperties- 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- keyrequired- 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 requiredproperties- 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- keyrequired- 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 requiredproperties- 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- keyrequired- 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 requiredproperties- property parts- Returns:
- boolean value
- Since:
- 4.0.0
-
buildProperty
public static String buildProperty(String... properties)
Build a combined property separated byPropertyConstants.PROPERTY_DIVIDER- Parameters:
properties- property parts- Returns:
- combined property
- Since:
- 4.0.0
-
-