public class LongRangeValidator extends AbstractRangeValidator
noMessages
Constructor and Description |
---|
LongRangeValidator() |
Modifier and Type | Method and Description |
---|---|
void |
init()
The init method tries to generate the message keys.
|
void |
setMax(Long max) |
void |
setMin(Long min) |
protected void |
setOverMax(MessageSpecification overMax) |
void |
setType(Class<?> type) |
protected void |
setUnderMin(MessageSpecification underMin) |
ValidatorMessageHolder |
validate(Object fieldValue,
String fieldLabel)
Perform the actual validation.
|
init, isInitialized, isValueGreaterThanMin, isValueLessThanMax
isNoMessages, populateMessage, populateMessage, setNoMessages
createDetailMessage, createMessage, createSummaryMessage, getDetailArgs, getDetailMessage, getName, getSubject, getSummaryArgs, getSummaryMessage, isNoSummary, setCurrentSubject, setDetailArgs, setDetailMessage, setName, setNoSummary, setParent, setSubject, setSummaryArgs, setSummaryMessage
public ValidatorMessageHolder validate(Object fieldValue, String fieldLabel)
fieldValue
- the value to validatefieldLabel
- the logical name of the value used for generating error messagespublic void init()
MessageSpecification
init
in interface NameAware
init
in class MessageSpecification
public void setMax(Long max)
public void setMin(Long min)
public void setType(Class<?> type)
protected void setOverMax(MessageSpecification overMax)
protected void setUnderMin(MessageSpecification underMin)
Copyright © 2014. All rights reserved.