Custom Validator

Overview

You can create custom validator and attach it to the model. To do it first you must create custom method (see this link).

Attributes

name

type

required

default value

description

class

string

yes

none

Name of the class defining validator.

method

string

yes

none

Name of the method defining validator.

Example

<hooks>
    <validatesWith class="com.sample.SampleValidator" method="validate" />
    ...
</hooks>