const mixinafBedSheet::ValueEncoders

afBedSheet::ValueEncoders

Holds a list of ValueEncoders.

@Contribute { serviceType=ValueEncoders# }
static Void contributeValueEncoders(MappedConfig conf) {
  conf[MyEntity#] = conf.autobuild(MyEntityEncoder#)
}

@uses a MappedConfig of Type:ValueEncoder

toClient

Source

abstract Str toClient(Type valType, Obj value)

Converts the given value to Str via a contributed ValueEncoder. If no ValueEncoder is found, toStr() is used.

toValue

Source

abstract Obj toValue(Type valType, Str clientValue)

Converts the given clientValue into the given valType via a contributed ValueEncoder. If no ValueEncoder is found the value is coerced.