net.sf.jsefa.common.validator
Class MapValidator

java.lang.Object
  extended by net.sf.jsefa.common.validator.MapValidator
All Implemented Interfaces:
Validator

public final class MapValidator
extends Object
implements Validator

A validator for Map values.

It is thread-safe and immutable.

Author:
Norman Lahme-Huetig

Method Summary
static MapValidator create(ValidatorConfiguration configuration)
          Constructs a new MapValidator.
 ValidationResult validate(Object value)
          Validates the given value and returns a ValidationResult describing the result of the validation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static MapValidator create(ValidatorConfiguration configuration)
Constructs a new MapValidator.

Parameters:
configuration - the validator configuration
Returns:
a map validator

validate

public ValidationResult validate(Object value)
Validates the given value and returns a ValidationResult describing the result of the validation.

Specified by:
validate in interface Validator
Parameters:
value - the value to validate
Returns:
the result of the validation.


Copyright © 2014. All rights reserved.