This table is a list of validator components, followed by additional information on some of the components:
Component | Description |
---|
BeanValidator
| This is the interface for validating and updating an entire bean. The BeanValidator is the core interface and uses two methods: validateBean – Validates the properties of the source bean, adding any validation errors to the errors property of pContext
updateBean – Validates property values and places them into the target object.
|
ListUpdatingValidator
| This class extends the UnorderedCollection ’s component UpdatingValidator to add code that updates an order in the case where order is important. |
MapUpdatingValidator
| The class that implements UpdatingValidator and BeanValidator and can update the map with homogeneous values. |
PayloadSchemaBuilder
| This helper class creates validators from the configuration beans. |
PayloadSchemaRegistry
| The class that parses the payload schema XML and builds configuration beans and instantiates validators. This class provides a way to fetch a named validator or its schema configuration. For additional information on the PayloadSchemaRegistry , refer to Using the Payload Schema Registry section. |
UpdatingValidator
| This is the interface that extends Validator and allows you to update a single property. |
Validator
| This is the interface for validating a single property value. The Validator interface, which validates individual properties, uses the following methods: validateBeanProperty – Retrieves the named property and invokes the validateValue method. This enables simple validators to be written by overriding the validateValue method
validateValue – This method can be overridden when creating simple validators
|
ValidatorContext
| This class holds the errors, the current parent property path and other contextual data that is used during validation. For detailed information on the ValidatorContext , refer to Configuring the Validator Context Class section. |
ValidatorManager
| The class that implements UpdatingValidator and BeanValidator . It also contains a map from property names to Validator , as well as validates and updates named properties of a dynamic bean. |
For additional information on validation classes and components, refer to the ATG Platform API Reference.