The ValidatorContext
represents the current state and setting for the validator. It also contains an attributes map that allows validators to pass or share state, as well as the following properties:
Property | Description |
---|---|
| Obtains the names of properties that are not defined in the schema and should not cause validation errors. |
| If set to |
| Returns any extra property attributes. |
| If the validation is for a |
| Identifies the default error code. |
| This read only property provides a count of the validation errors or exceptions encountered during validation. |
| List of error or exceptions encountered during validation. |
| If set to |
| Returns a list of properties filters to include or exclude. |
| Identifies if the filter includes or excludes data. The default is |
| Indicates if a value was updated. |
| Identifies if target properties should be set to null if a source property is present in a source map or object. |
| Obtains a count of the number of parents. |
| The source parent stack that is being updated. Note: This property should be modified only by methods of this class. |
| The property path that leads to the current parent. |
| Identifies listeners that are notified when properties change. |
| Identifies and sets a repository item helper. |
| Indicates if validation should recurse into validators for sub-properties. |
| Indicates if the validation or update source uses external property names. |
| Identifies whether to treat unknown properties in the input data as errors. |
| Indicates if an update is in progress. If set to |
| Controls whether the COMPLETE – All properties should be present. Properties that can be updated but are unset are considered null, and collections and maps are trimmed down to match the input. SPARSE –Properties that can be are updated. All other properties are left untouched. SPARSE only updates properties that exist in the source. HYBRID (merged) – Most input can be identified as SPARSE, with the exception of lists and maps, which must contain enough information to identify existing items. |
| Indicates if existing properties should be validated. |
| Identifies a list of validator listeners. |
For additional information on validation classes and components, refer to the ATG Platform API Reference.