org.infinispan.schematic.internal.schema
Class JsonSchemaValidatorFactory.ItemCountValidator
java.lang.Object
   org.infinispan.schematic.internal.schema.JsonSchemaValidatorFactory.ItemCountValidator
org.infinispan.schematic.internal.schema.JsonSchemaValidatorFactory.ItemCountValidator
- All Implemented Interfaces: 
- Serializable, Validator
- Direct Known Subclasses: 
- JsonSchemaValidatorFactory.MaximumItemsValidator, JsonSchemaValidatorFactory.MinimumItemsValidator
- Enclosing class:
- JsonSchemaValidatorFactory
- protected abstract static class JsonSchemaValidatorFactory.ItemCountValidator 
- extends Object- implements Validator
- See Also:
- Serialized Form
 
 
 
 
 
JsonSchemaValidatorFactory.ItemCountValidator
protected JsonSchemaValidatorFactory.ItemCountValidator(String propertyName,
                                                        int number)
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:
- validatein interface- Validator
 
- 
- Parameters:
- 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
- parent- the document; never null
- pathToParent- 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
 
evaluate
protected abstract boolean evaluate(double value,
                                    double actualValue)
- 
 
- 
 
ruleDescription
protected abstract String ruleDescription()
- 
 
- 
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Object
 
- 
 
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.