Class GridProperties


  • public abstract class GridProperties
    extends Object
    Grid property loader
    Author:
    osbornb
    • Field Detail

      • mProperties

        protected Properties mProperties
        Properties
    • Constructor Detail

      • GridProperties

        public GridProperties()
    • 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 - key
        required - 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 required
        properties - 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 - key
        required - 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 required
        properties - 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 - key
        required - 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 required
        properties - 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 - key
        required - 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 required
        properties - 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 - key
        required - 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 required
        properties - property parts
        Returns:
        boolean value