org.infinispan.schematic.internal.schema
Class JsonSchemaValidatorFactory.CompositeValidator
java.lang.Object
org.infinispan.schematic.internal.schema.JsonSchemaValidatorFactory.CompositeValidator
- All Implemented Interfaces:
- Serializable, Iterable<Validator>, JsonSchemaValidatorFactory.ValidatorCollection, Validator
- Enclosing class:
- JsonSchemaValidatorFactory
protected static class JsonSchemaValidatorFactory.CompositeValidator
- extends Object
- implements Validator, JsonSchemaValidatorFactory.ValidatorCollection
- See Also:
- Serialized Form
JsonSchemaValidatorFactory.CompositeValidator
public JsonSchemaValidatorFactory.CompositeValidator()
add
protected void add(Validator validator)
size
protected int size()
getFirst
protected Validator getFirst()
validate
public void validate(Object fieldValue,
String fieldName,
Document parent,
Path pathToParent,
Problems problems,
Validator.SchemaDocumentResolver resolver)
- Description copied from interface:
Validator
- Validate a portion of the supplied document.
- Specified by:
validate
in interface Validator
- Parameters:
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 documents
iterator
public Iterator<Validator> iterator()
- Specified by:
iterator
in interface Iterable<Validator>
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.