All Downloads are FREE. Search and download functionalities are using the official Maven repository.

csip.ServiceConfiguration Maven / Gradle / Ivy

Go to download

The Cloud Services Integration Platform is a SoA implementation to offer a Model-as-a-Service framework, Application Programming Interface, deployment infrastructure, and service implementations for environmental modeling.

There is a newer version: 2.6.30
Show newest version
/*
 * $Id: ServiceConfiguration.java dfa4285db04b 2020-02-11 od $
 *
 * This file is part of the Cloud Services Integration Platform (CSIP),
 * a Model-as-a-Service framework, API and application suite.
 *
 * 2012-2019, Olaf David and others, OMSLab, Colorado State University.
 *
 * OMSLab licenses this file to you under the MIT license.
 * See the LICENSE file in the project root for more information.
 */
package csip;

/**
 * ServiceConfiguration access.
 *
 * @author od
 */
public class ServiceConfiguration {

  private final ModelDataService mds;


  ServiceConfiguration(ModelDataService mds) {
    this.mds = mds;
  }


  /**
   * Check if property exists.
   *
   * @param key the property key
   * @return true if property exists.
   */
  public boolean hasProperty(String key) {
    return Config.hasProperty(key);
  }


  public boolean isString(String key, String str) {
    return Config.isString(key, str);
  }


  public String getString(String key, String def) {
    return Config.getString(key, def);
  }


  public String getString(String key) {
    return Config.getString(key);
  }


  public boolean getBoolean(String key, boolean def) {
    return Config.getBoolean(key, def);
  }


  public boolean getBoolean(String key) {
    return Config.getBoolean(key);
  }


  public int getInt(String key, int def) {
    return Config.getInt(key, def);
  }


  public int getInt(String key) {
    return Config.getInt(key);
  }


  public long getLong(String key, long def) {
    return Config.getLong(key, def);
  }


  public long getLong(String key) {
    return Config.getLong(key);
  }


  public double getDouble(String key, double def) {
    return Config.getDouble(key, def);
  }


  public double getDouble(String key) {
    return Config.getDouble(key);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy