...
Anchor | ||||
---|---|---|---|---|
|
3.1. Custom validators
TODO
Custom validator is used by model to validate entities.
Custom validator function has structure:
Code Block |
---|
public boolean validatorNamevalidatorMethodName(final DataDefinition dataDefinition, final Entity entity) { // VALIDATOR METHOD BODY } |
Where
- validatorMethodName - name of validator method
- dataDefinition - dataDefinition od of validated entity
- entity - entity to validate
...
Anchor | ||||
---|---|---|---|---|
|
2.2. Model hooks
TODO
1
2
3
4
5
6Model hooks are methods that is executed on specific model actions (defined in xml file). Model hook method has structure:
Code Block |
---|
public void modelHookMethodName(final DataDefinition dataDefinition, final Entity entity) {
// MODEL HOOK BODY
}
|
Where
- modelHookMethodName - name of model hook method
- dataDefinition - dataDefinition od model entity
- entity - hook event entity
Anchor | ||||
---|---|---|---|---|
|
2.3. View hooks
...