public class LongValidator extends java.lang.Object implements Field.Validator
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
message |
protected Messages |
messages |
protected java.lang.String |
messagesPack |
protected java.lang.String |
onlyPositive |
Constructor and Description |
---|
LongValidator(org.dom4j.Element element,
java.lang.String messagesPack) |
LongValidator(java.lang.String message) |
Modifier and Type | Method and Description |
---|---|
void |
validate(java.lang.Object value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept
protected java.lang.String message
protected java.lang.String messagesPack
protected java.lang.String onlyPositive
protected Messages messages
public LongValidator(org.dom4j.Element element, java.lang.String messagesPack)
public LongValidator(java.lang.String message)
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 valid