T - type of valuepublic class NullValuePropagationStopper<T> extends NoDataRule<T>
| Modifier and Type | Method and Description |
|---|---|
static <T> NullValuePropagationStopper<T> |
create()
Use this factory method to create object
|
static <T> NullValuePropagationStopper<T> |
create(String message)
Use this factory method to create object
|
protected Integer |
getCode()
Override this method to define code of rule
|
protected String |
getMessage(T value)
Override this method to define fail validation message
You can use value to make message more clear
|
protected String |
getName()
Override this method to define name of your derived rule
|
protected ViolationLevel |
getViolationLevel()
Override this method to define violation level of your derived rule
|
protected boolean |
validate(T value)
Override this method to implement your validation process
|
public static <T> NullValuePropagationStopper<T> create(String message)
T - type of valuemessage - message to showpublic static <T> NullValuePropagationStopper<T> create()
T - type of valueprotected boolean validate(T value)
Ruleprotected String getName()
Ruleprotected String getMessage(T value)
RulegetMessage in class Rule<T,Object>value - valueprotected ViolationLevel getViolationLevel()
RulegetViolationLevel in class Rule<T,Object>Copyright © 2015. All Rights Reserved.