@Deprecated public class RangeValidator extends java.lang.Object implements Field.Validator
Constructor and Description |
---|
RangeValidator(java.lang.Class<? extends java.lang.Comparable> type,
java.lang.Comparable minValue,
java.lang.Comparable maxValue)
Deprecated.
|
RangeValidator(org.dom4j.Element element,
java.lang.String messagesPack)
Deprecated.
|
RangeValidator(java.lang.String message,
java.lang.String messagesPack,
java.lang.Class<? extends java.lang.Comparable> type,
java.lang.Comparable minValue,
java.lang.Comparable maxValue)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Comparable |
getMaxValue()
Deprecated.
|
java.lang.Comparable |
getMinValue()
Deprecated.
|
boolean |
isIgnoreCase()
Deprecated.
|
boolean |
isIncludeMaxValue()
Deprecated.
|
boolean |
isIncludeMinValue()
Deprecated.
|
void |
setIgnoreCase(boolean ignoreCase)
Deprecated.
|
void |
setIncludeMaxValue(boolean includeMaxValue)
Deprecated.
|
void |
setIncludeMinValue(boolean includeMinValue)
Deprecated.
|
void |
setMaxValue(java.lang.Comparable maxValue)
Deprecated.
|
void |
setMinValue(java.lang.Comparable minValue)
Deprecated.
|
void |
validate(java.lang.Object value)
Deprecated.
|
public RangeValidator(org.dom4j.Element element, java.lang.String messagesPack)
public RangeValidator(java.lang.String message, java.lang.String messagesPack, java.lang.Class<? extends java.lang.Comparable> type, java.lang.Comparable minValue, java.lang.Comparable maxValue)
public RangeValidator(java.lang.Class<? extends java.lang.Comparable> type, java.lang.Comparable minValue, java.lang.Comparable maxValue)
public void validate(java.lang.Object value) throws ValidationException
validate
in interface Field.Validator
value
- field value to validateValidationException
- this exception must be thrown by the validator if the value is not validpublic boolean isIncludeMinValue()
public void setIncludeMinValue(boolean includeMinValue)
public boolean isIncludeMaxValue()
public void setIncludeMaxValue(boolean includeMaxValue)
public boolean isIgnoreCase()
public void setIgnoreCase(boolean ignoreCase)
public java.lang.Comparable getMinValue()
public void setMinValue(java.lang.Comparable minValue)
public java.lang.Comparable getMaxValue()
public void setMaxValue(java.lang.Comparable maxValue)