com.cisco.oss.foundation.configuration.validation.params
Class ParamValidators

java.lang.Object
  extended by com.cisco.oss.foundation.configuration.validation.params.ParamValidators

public class ParamValidators
extends Object

Created By: kgreen Date-Time: 10/3/13 8:48 AM


Nested Class Summary
static class ParamValidators.FileValidator
           
static class ParamValidators.HEXValidator
          a validator for verifying that a given string is a valid hexadecimal value
static class ParamValidators.ParamListValidator<T,E extends Collection<T>>
           
static class ParamValidators.ParamValidator<T>
           
static class ParamValidators.ParamValidatorWrapper<T>
          reader implementations
static class ParamValidators.URLValidator
           
 
Constructor Summary
ParamValidators()
           
 
Method Summary
static
<T extends ParamValidators.ParamValidator>
T
getValidator(Class<T> clazz, boolean required)
          return the relevant Validator by the given class type and required indication
static
<E,T extends ParamValidators.ParamValidator<E>>
T
getValidator(Class<T> clazz, Param<Boolean> param)
          wrap a validator for the given class type and according to the configured value og the given parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParamValidators

public ParamValidators()
Method Detail

getValidator

public static <E,T extends ParamValidators.ParamValidator<E>> T getValidator(Class<T> clazz,
                                                                             Param<Boolean> param)
wrap a validator for the given class type and according to the configured value og the given parameter. Meaning, the relevant validator will be created according to the the current value of .


getValidator

public static <T extends ParamValidators.ParamValidator> T getValidator(Class<T> clazz,
                                                                        boolean required)
return the relevant Validator by the given class type and required indication



Copyright © 2014 Cisco. All Rights Reserved.