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

org.sisioh.config.ConfigurationSyntax.scala Maven / Gradle / Ivy

There is a newer version: 0.0.15
Show newest version
package org.sisioh.config

import com.typesafe.config.ConfigSyntax

object ConfigurationSyntax extends Enumeration {

  val Json, Conf, Properties = Value

  protected[config] def apply(value: ConfigSyntax): ConfigurationSyntax.Value = {
    values.find {
      _.toString.toUpperCase == value.name().toUpperCase
    }.get
  }

  protected[config] def toCore(value: ConfigurationSyntax.Value): ConfigSyntax = {
    ConfigSyntax.values.find {
      _.name().toUpperCase == value.toString.toUpperCase
    }.get
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy