enumeratum.PlayUppercaseEnum.scala Maven / Gradle / Ivy
package enumeratum
/**
* An Enum that has a lot of the Play-related implicits built-in so you can avoid
* boilerplate.
*
* Note, the binders created here transform to upper case.
*
* Things included are:
*
* - implicit JSON format
* - implicit PathBindable (for binding from request path)
* - implicit QueryStringBindable (for binding from query strings)
* - formField for doing things like `Form("hello" -> MyEnum.formField)`
*
*/
trait PlayUppercaseEnum[A <: EnumEntry]
extends Enum[A]
with PlayUppercaseJsonEnum[A]
with PlayUppercasePathBindableEnum[A]
with PlayUppercaseQueryBindableEnum[A]
with PlayUppercaseFormFieldEnum[A]
© 2015 - 2025 Weber Informatics LLC | Privacy Policy