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

be.doeraene.webcomponents.ui5.configkeys.ValueState.scala Maven / Gradle / Ivy

The newest version!
package be.doeraene.webcomponents.ui5.configkeys

sealed trait ValueState {
  final def value: String = toString
}

object ValueState extends EnumerationString[ValueState] {

  case object None        extends ValueState
  case object Negative    extends ValueState
  case object Critical    extends ValueState
  case object Positive    extends ValueState
  case object Information extends ValueState

  @deprecated("Error value state has been renamed to Negative", since = "2.0.0")
  def Error = Negative

  @deprecated("Warning value state has been renamed to Critical", since = "2.0.0")
  def Warning = Critical

  @deprecated("Success value state has been renamed to Positive", since = "2.0.0")
  def Success = Positive

  val allValues: List[ValueState] = deriveAllValues

  def valueOf(value: ValueState): String = value.value
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy