public interface FieldConstraintDocChecker extends FieldConstraintChecker
| Modifier and Type | Method and Description |
|---|---|
void |
checkConstraint(ConstraintValidator validator,
FieldTreeNode fieldMetadata,
Path fieldMetadataPath,
FieldConstraint constraint,
JsonDoc doc)
Field constraint checker function that is run once for the document
|
void checkConstraint(ConstraintValidator validator, FieldTreeNode fieldMetadata, Path fieldMetadataPath, FieldConstraint constraint, JsonDoc doc)
validator - The constraint validator instance from which the
implementation can access the metadata and context informationfieldMedata - The field metadatafieldMetadataPath - The path for the field metadata (i.e. may
contain *)constraint - field constraintdoc - The document
The function should add the errors to validatorCopyright © 2015. All rights reserved.