Package org.esa.snap.core.param
Class ParamValidatorRegistry
java.lang.Object
org.esa.snap.core.param.ParamValidatorRegistry
A
ParamValidatorRegistry stores the different validators for each of the different parameter types.- Version:
- $Revision$ $Date$
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanderegisterValidator(Class valueType) static ParamValidatorReturns the default validator, which is guaranteed to be different fromnull.static ParamValidatorgetValidator(Class valueType) Returns a validator for the given value type, which is guaranteed to be different fromnull.static voidregisterValidator(Class valueType, ParamValidator validator)
-
Method Details
-
getDefaultValidator
Returns the default validator, which is guaranteed to be different fromnull. The method first look for a validator registred for theStringclass, if it is not found then a new instance ofStringValidatoris returned.- See Also:
-
getValidator
Returns a validator for the given value type, which is guaranteed to be different fromnull.If given value type is
null, the method returns the value ofgetDefaultValidator().- See Also:
-
registerValidator
-
deregisterValidator
-