Module ValueHosts/ConcreteClasses/PropertyValueHost

ValueHost used to manage and validate properties on a model. Each valuehost's native value is expected to be the same as the actual property on the model. For example, if the model has an integer property, the value must be a number that does not contain any decimal information. This ValueHost is a sibling of InputValueHost, which is used to manage and validate inputs.

Business logic needs to be able to describe each property and its validators. Its rules are expected to be converted into PropertyValueHosts with Jiv's validators.

There is an interesting use case: the UI can ask for business logic to build the ValueHosts it uses, but the UI really wants InputValueHosts. You can setup the ValidationServices so that each ValueHost created by business logic will be converted into an InputValueHost. Just set the ValidationServices.valueHostFactor = new InputValueHostFactory() or pass 'client' into the createValidationServices() function.

Index

Classes

Functions

Generated using TypeDoc v0.25.12