|Modifier and Type||Method and Description|
Validate a portion of the supplied document.
public TypeValidator(JsonSchema.Type type)
public void validate(Object fieldValue, String fieldName, Document document, Path pathToDocument, Problems problems, Validator.SchemaDocumentResolver resolver)
fieldValue- the field value to be validated; may be null
fieldName- the field name to be validated; may be null if the field value is not known or the validator is to validate the document
document- the document; never null
pathToDocument- the path to the supplied document; never null but may be a zero-length path if the document is the top-level document
problems- the problems where any errors or warnings should be recorded; never null
resolver- the component that can be used to resolve references to other schema documents
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.