|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.param.ParamValidatorRegistry
public class ParamValidatorRegistry
A ParamValidatorRegistry stores the different validators for each of the different parameter types.
| Method Summary | |
|---|---|
static boolean |
deregisterValidator(Class valueType)
|
static ParamValidator |
getDefaultValidator()
Returns the default validator, which is guaranteed to be different from null. |
static ParamValidator |
getValidator(Class valueType)
Returns a validator for the given value type, which is guaranteed to be different from null. |
static void |
registerValidator(Class valueType,
ParamValidator validator)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ParamValidator getDefaultValidator()
null. The method first look
for a validator registred for the String class, if it is not found then a new instance of
StringValidator is returned.
getValidator(Class)public static ParamValidator getValidator(Class valueType)
null. If
given value type is null, the method returns the value of getDefaultValidator().
getDefaultValidator()
public static void registerValidator(Class valueType,
ParamValidator validator)
public static boolean deregisterValidator(Class valueType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||