モジュール pro.eng.yui.YuiFramework

インタフェース IEnvPropUtil


public interface IEnvPropUtil
Define common Environment and Properties operations
導入されたバージョン:
1.0.0
バージョン:
1.0.0
作成者:
yui-KITAMURA
  • メソッドの詳細

    • getEnv

      String getEnv(String key)
      Get System Environment Value stored with key
      パラメータ:
      key - system environment variables key
      戻り値:
      if exists, then that value, else ""(Empty string)
    • getEnv

      String getEnv(String key, String defaultValue)
      Get System Environment Value stored with key. If not exists, then return the defaultValue
      パラメータ:
      key - system environment variables key
      defaultValue - default value when the variables not exists
      戻り値:
      if exists, then that value, else the defaultValue
    • getProp

      String getProp(String key)
      Get properties value.
      パラメータ:
      key - properties key
      戻り値:
      if exists, then that value, else ""(Empty string)
    • getProp

      String getProp(String key, String defaultValue)
      Get properties value. If not exists, then return the defaultValue
      パラメータ:
      key - properties key
      defaultValue - default value when the properties not exists
      戻り値:
      if exists, then that properties value, else the defaultValue
    • setProp

      void setProp(String key, String value) throws IllegalStateException
      Set properties value. If already exist, then throw exception.
      パラメータ:
      key - properties key
      value - set value
      例外:
      IllegalStateException - Already properties key-value set exists
    • setPropForce

      boolean setPropForce(String key, String value)
      Set properties value. If already exist, then overwrite the value.
      パラメータ:
      key - properties key
      value - set value
      戻り値:
      true when overwrite