public class CoserCheckDoubleValidator extends AbstractFieldValidator
Modifier and Type | Field and Description |
---|---|
protected static Pattern |
DOUBLE_PATTERN
Pattern pour un double
- group0 => all double
- group1 => .xxxx
- group2 => xxxx (after .)
- group3 => exposant with e
- group4 => exposant without e
|
protected Integer |
minDecimals |
protected String |
notAvailable |
Constructor and Description |
---|
CoserCheckDoubleValidator() |
Modifier and Type | Method and Description |
---|---|
Integer |
getMinDecimals() |
String |
getNotAvailable() |
void |
setMinDecimals(Integer minDecimals) |
void |
setNotAvailable(String notAvailable) |
void |
validate(Object object) |
getFieldValue, setValueStack
getFieldName, getValidatorType, setFieldName, setValidatorType
addActionError, addFieldError, getDefaultMessage, getFieldValue, getMessage, getMessageKey, getMessageParameters, getValidatorContext, isShortCircuit, parse, setDefaultMessage, setMessageKey, setMessageParameters, setShortCircuit, setValidatorContext
protected static final Pattern DOUBLE_PATTERN
protected String notAvailable
protected Integer minDecimals
public String getNotAvailable()
public void setNotAvailable(String notAvailable)
public Integer getMinDecimals()
public void setMinDecimals(Integer minDecimals)
public void validate(Object object) throws com.opensymphony.xwork2.validator.ValidationException
com.opensymphony.xwork2.validator.ValidationException
Copyright © 2010–2015 Ifremer. All rights reserved.