public static class Form.FieldVisitorValidatorWrapper extends Object implements FieldValidator
Constructor and Description |
---|
Form.FieldVisitorValidatorWrapper(FieldValidator fv,
String namePrefix) |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultMessage() |
String |
getFieldName() |
FieldValidator |
getFieldValidator() |
String |
getMessage(Object object) |
String |
getMessageKey() |
String[] |
getMessageParameters() |
String |
getNamePrefix() |
ValidatorContext |
getValidatorContext() |
String |
getValidatorType() |
void |
setDefaultMessage(String message) |
void |
setFieldName(String fieldName) |
void |
setFieldValidator(FieldValidator fieldValidator) |
void |
setMessageKey(String key) |
void |
setMessageParameters(String[] messageParameters) |
void |
setNamePrefix(String namePrefix) |
void |
setValidatorContext(ValidatorContext validatorContext) |
void |
setValidatorType(String type) |
void |
setValueStack(ValueStack stack) |
void |
validate(Object object) |
public Form.FieldVisitorValidatorWrapper(FieldValidator fv, String namePrefix)
public String getValidatorType()
getValidatorType
in interface Validator
public String getFieldName()
getFieldName
in interface FieldValidator
public FieldValidator getFieldValidator()
public void setFieldValidator(FieldValidator fieldValidator)
public String getDefaultMessage()
getDefaultMessage
in interface Validator
public String getMessage(Object object)
getMessage
in interface Validator
public String getMessageKey()
getMessageKey
in interface Validator
public String[] getMessageParameters()
getMessageParameters
in interface Validator
public ValidatorContext getValidatorContext()
getValidatorContext
in interface Validator
public void setDefaultMessage(String message)
setDefaultMessage
in interface Validator
public void setFieldName(String fieldName)
setFieldName
in interface FieldValidator
public void setMessageKey(String key)
setMessageKey
in interface Validator
public void setMessageParameters(String[] messageParameters)
setMessageParameters
in interface Validator
public void setValidatorContext(ValidatorContext validatorContext)
setValidatorContext
in interface Validator
public void setValidatorType(String type)
setValidatorType
in interface Validator
public void setValueStack(ValueStack stack)
setValueStack
in interface Validator
public void validate(Object object) throws ValidationException
validate
in interface Validator
ValidationException
public String getNamePrefix()
public void setNamePrefix(String namePrefix)
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.