public class NotExistingFileFieldValidator extends NuitonFieldValidatorSupport
<validators>
<!-- Plain-Validator Syntax -->
<validator type="notExistingFile">
<param name="fieldName">tmp</param>
<message>tmp is an existing file</message>
</validator>
<!-- Field-Validator Syntax -->
<field name="tmp">
<field-validator type="notExistingFile">
<message>tmp is an existing file</message>
</field-validator>
</field>
</validators>
skip| Constructor and Description |
|---|
NotExistingFileFieldValidator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getValidatorType() |
void |
validateWhenNotSkip(Object object)
Method to be invoked when skip parameter was not evaludated to
true. |
evaluateSkipParameter, getFieldValue, setSkip, validategetFieldName, setFieldName, setValidatorTypeaddActionError, addFieldError, conditionalParse, getDefaultMessage, getMessage, getMessageKey, getMessageParameters, getParse, getValidatorContext, isShortCircuit, setDefaultMessage, setMessageKey, setMessageParameters, setParse, setShortCircuit, setValidatorContext, setValueStackpublic void validateWhenNotSkip(Object object) throws com.opensymphony.xwork2.validator.ValidationException
NuitonFieldValidatorSupporttrue.validateWhenNotSkip in class NuitonFieldValidatorSupportobject - the object to be validated.com.opensymphony.xwork2.validator.ValidationException - is thrown if there is validation error(s).public String getValidatorType()
getValidatorType in interface com.opensymphony.xwork2.validator.ValidatorgetValidatorType in class com.opensymphony.xwork2.validator.validators.FieldValidatorSupportCopyright © 2011-2013 CodeLutin. All Rights Reserved.