net.sf.jsefa.common.validator
Class ValidatorConfiguration

java.lang.Object
  extended by net.sf.jsefa.common.validator.ValidatorConfiguration

public final class ValidatorConfiguration
extends Object

A configuration for a <Validator.

Author:
Norman Lahme-Huetig

Method Summary
static ValidatorConfiguration create(Class<?> objectType, Map<String,String> constraints)
          Constructs a new ValidatorConfiguration.
 Map<String,String> getConstraints()
           
<T> Class<T>
getObjectType()
          Returns the object type the validator is intended for.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static ValidatorConfiguration create(Class<?> objectType,
                                            Map<String,String> constraints)
Constructs a new ValidatorConfiguration.

Parameters:
objectType - the object type the validator is intended for
constraints - the constraints the validator shall be initialized with
Returns:
a validator configuration

getObjectType

public <T> Class<T> getObjectType()
Returns the object type the validator is intended for.

Type Parameters:
T - the expected type
Returns:
the object type

getConstraints

public Map<String,String> getConstraints()
Returns:
the constraints the validator shall be initialized with.


Copyright © 2014. All rights reserved.