Package mil.nga.grid.property
Class GridProperties
- java.lang.Object
-
- mil.nga.grid.property.GridProperties
-
public abstract class GridProperties extends Object
Grid property loader- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description protected Properties
mProperties
Properties
-
Constructor Summary
Constructors Constructor Description GridProperties()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
buildProperty(String... properties)
Build a combined property separated byPropertyConstants.PROPERTY_DIVIDER
Boolean
getBooleanProperty(boolean required, String... properties)
Get a boolean property by property partsboolean
getBooleanProperty(String key)
Get a required boolean by keyboolean
getBooleanProperty(String... properties)
Get a required boolean property by property partsBoolean
getBooleanProperty(String key, boolean required)
Get a boolean by keyDouble
getDoubleProperty(boolean required, String... properties)
Get a double property by property partsdouble
getDoubleProperty(String key)
Get a required double by keydouble
getDoubleProperty(String... properties)
Get a required double property by property partsDouble
getDoubleProperty(String key, boolean required)
Get a double by keyabstract String
getFile()
Get the properties file nameFloat
getFloatProperty(boolean required, String... properties)
Get a float property by property partsfloat
getFloatProperty(String key)
Get a required float by keyfloat
getFloatProperty(String... properties)
Get a required float property by property partsFloat
getFloatProperty(String key, boolean required)
Get a float by keyInteger
getIntegerProperty(boolean required, String... properties)
Get an integer property by property partsint
getIntegerProperty(String key)
Get a required integer property by keyint
getIntegerProperty(String... properties)
Get a required integer property by property partsInteger
getIntegerProperty(String key, boolean required)
Get an integer property by keyString
getProperty(boolean required, String... properties)
Get a property by property partsString
getProperty(String key)
Get a required property by keyString
getProperty(String... properties)
Get a required property by property partsString
getProperty(String key, boolean required)
Get a property by key
-
-
-
Field Detail
-
mProperties
protected Properties mProperties
Properties
-
-
Method Detail
-
getFile
public abstract String getFile()
Get the properties file name- Returns:
- file name
-
getProperty
public String getProperty(String key)
Get a required property by key- Parameters:
key
- key- Returns:
- value
-
getProperty
public String getProperty(String key, boolean required)
Get a property by key- Parameters:
key
- keyrequired
- true if required- Returns:
- value
-
getProperty
public String getProperty(String... properties)
Get a required property by property parts- Parameters:
properties
- property parts- Returns:
- value
-
getProperty
public String getProperty(boolean required, String... properties)
Get a property by property parts- Parameters:
required
- true if requiredproperties
- property parts- Returns:
- value
-
getIntegerProperty
public int getIntegerProperty(String key)
Get a required integer property by key- Parameters:
key
- key- Returns:
- integer value
-
getIntegerProperty
public Integer getIntegerProperty(String key, boolean required)
Get an integer property by key- Parameters:
key
- keyrequired
- true if required- Returns:
- integer value
-
getIntegerProperty
public int getIntegerProperty(String... properties)
Get a required integer property by property parts- Parameters:
properties
- property parts- Returns:
- integer value
-
getIntegerProperty
public Integer getIntegerProperty(boolean required, String... properties)
Get an integer property by property parts- Parameters:
required
- true if requiredproperties
- property parts- Returns:
- integer value
-
getFloatProperty
public float getFloatProperty(String key)
Get a required float by key- Parameters:
key
- key- Returns:
- float value
-
getFloatProperty
public Float getFloatProperty(String key, boolean required)
Get a float by key- Parameters:
key
- keyrequired
- true if required- Returns:
- float value
-
getFloatProperty
public float getFloatProperty(String... properties)
Get a required float property by property parts- Parameters:
properties
- property parts- Returns:
- float value
-
getFloatProperty
public Float getFloatProperty(boolean required, String... properties)
Get a float property by property parts- Parameters:
required
- true if requiredproperties
- property parts- Returns:
- float value
-
getDoubleProperty
public double getDoubleProperty(String key)
Get a required double by key- Parameters:
key
- key- Returns:
- double value
-
getDoubleProperty
public Double getDoubleProperty(String key, boolean required)
Get a double by key- Parameters:
key
- keyrequired
- true if required- Returns:
- double value
-
getDoubleProperty
public double getDoubleProperty(String... properties)
Get a required double property by property parts- Parameters:
properties
- property parts- Returns:
- double value
-
getDoubleProperty
public Double getDoubleProperty(boolean required, String... properties)
Get a double property by property parts- Parameters:
required
- true if requiredproperties
- property parts- Returns:
- double value
-
getBooleanProperty
public boolean getBooleanProperty(String key)
Get a required boolean by key- Parameters:
key
- key- Returns:
- boolean value
-
getBooleanProperty
public Boolean getBooleanProperty(String key, boolean required)
Get a boolean by key- Parameters:
key
- keyrequired
- true if required- Returns:
- boolean value
-
getBooleanProperty
public boolean getBooleanProperty(String... properties)
Get a required boolean property by property parts- Parameters:
properties
- property parts- Returns:
- boolean value
-
getBooleanProperty
public Boolean getBooleanProperty(boolean required, String... properties)
Get a boolean property by property parts- Parameters:
required
- true if requiredproperties
- property parts- Returns:
- boolean value
-
buildProperty
public String buildProperty(String... properties)
Build a combined property separated byPropertyConstants.PROPERTY_DIVIDER
- Parameters:
properties
- property parts- Returns:
- combined property
-
-