Used to translate values from map entries for setting on corresponding bean fields. Methods are implemented per map key and have the arg signature [key value]. Defaults to identity.
Used to translate values from map entries for setting on corresponding bean fields. Methods are implemented per map key and have the arg signature [key value]. Defaults to identity.
Used to translate values from bean fields for using in corresponding map entries. Methods are implemented per map key and have the arg signature [key value]. Defaults to identity.
Used to translate values from bean fields for using in corresponding map entries. Methods are implemented per map key and have the arg signature [key value]. Defaults to identity.
Override the default builder method invocation per field. Useful when builders have usage not covered by the single-arity-method-per-field-name convention.
Override the default builder method invocation per field. Useful when builders have usage not covered by the single-arity-method-per-field-name convention.
(def-builder-translation bean-class-sym
builder-class-sym
field-specs
&
[{:keys [builder-form get-only-fields set-only-fields
build-method]}])
(def-map->bean-builder var-sym bean-class-sym builder-form field-specs)
(def-map->bean-via-builder map->bean
map->builder
bean-class-sym
build-method-sym)
(def-translation bean-class-sym field-specs)
Defines functions for bidirectional translation between instances of the given bean class and maps. For translation from maps the function defined is named map->[MyBeanClass] (like defrecord creates), and for translation to maps it's [MyBeanClass]->map.
Defines functions for bidirectional translation between instances of the given bean class and maps. For translation from maps the function defined is named map->[MyBeanClass] (like defrecord creates), and for translation to maps it's [MyBeanClass]->map.
(bean->map this)
Converts a Java bean to a map according to the key spec registered via extend-mappable (usually via deftranslation)
Converts a Java bean to a map according to the key spec registered via extend-mappable (usually via deftranslation)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close