| java.lang.Object org.sakaiproject.metaobj.shared.model.ValidationError
ValidationError | public class ValidationError (Code) | | This object contains information reguarding an error on an individual field
that occurs during validation
See Also: ElementBean |
Constructor Summary | |
public | ValidationError(String label, String fieldName, String errorCode, Object[] errorInfo, String defaultMessage) Construct a ValidationError with all the required parameters
Parameters: fieldName - the name of the field within this element. |
ValidationError | public ValidationError(String label, String fieldName, String errorCode, Object[] errorInfo, String defaultMessage)(Code) | | Construct a ValidationError with all the required parameters
Parameters: fieldName - the name of the field within this element. if the fieldis from a nested element, the parent field name will be prepended with a "." Parameters: errorCode - Code that is suitable for dereferencing into a properties file fori8n purposes. errorCode will contain the proper formatting for use as a default message.for instance, "Value {1} for field {0} must match pattern {2}". With the error info, this could beused by a message formater. Parameters: errorInfo - an array of information related to the error. Parameters: defaultMessage - the fields applied to the error code. |
setDefaultMessage | public void setDefaultMessage(String defaultMessage)(Code) | | |
setErrorCode | public void setErrorCode(String errorCode)(Code) | | |
setErrorInfo | public void setErrorInfo(Object[] errorInfo)(Code) | | |
setFieldName | public void setFieldName(String fieldName)(Code) | | |
|
|