com.cisco.oss.foundation.configuration.validation.params
Class ParamValidators
java.lang.Object
com.cisco.oss.foundation.configuration.validation.params.ParamValidators
public class ParamValidators
- extends Object
Created By: kgreen
Date-Time: 10/3/13 8:48 AM
|
Method Summary |
static
|
getValidator(Class<T> clazz,
boolean required)
return the relevant Validator by the given class type and required indication |
static
|
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 |
ParamValidators
public ParamValidators()
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.