protected static class JsonSchemaValidatorFactory.CompositeValidator extends Object implements Validator, JsonSchemaValidatorFactory.ValidatorCollection
Validator.Factory, Validator.SchemaDocumentResolver
Constructor and Description |
---|
CompositeValidator() |
Modifier and Type | Method and Description |
---|---|
protected void |
add(Validator validator) |
protected Validator |
getFirst() |
Iterator<Validator> |
iterator() |
protected int |
size() |
String |
toString() |
void |
validate(Object fieldValue,
String fieldName,
Document parent,
Path pathToParent,
Problems problems,
Validator.SchemaDocumentResolver resolver)
Validate a portion of the supplied document.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected void add(Validator validator)
protected int size()
protected Validator getFirst()
public void validate(Object fieldValue, String fieldName, Document parent, Path pathToParent, Problems problems, Validator.SchemaDocumentResolver resolver)
Validator
validate
in interface Validator
fieldValue
- the field value to be validated; may be nullfieldName
- the field name to be validated; may be null if the field value is not known or the validator is to
validate the documentparent
- the document; never nullpathToParent
- the path to the supplied document; never null but may be a zero-length path if the document is the
top-level documentproblems
- the problems where any errors or warnings should be recorded; never nullresolver
- the component that can be used to resolve references to other schema documentsCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.