Class SimpleValidationError
- java.lang.Object
- 
- com.evolveum.midpoint.web.util.validation.SimpleValidationError
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class SimpleValidationError extends Object implements Serializable This is just a simple representation of custom form validation error. Currently, it holds only a simple String 'message' attribute as an information about validation error and an ItemPathType 'attribute' as a path to the source of error. Feel free to add any information about validation errors that your custom validator requires.- Author:
- shood
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description SimpleValidationError()SimpleValidationError(String message, ItemPathType attribute)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ItemPathTypegetAttribute()StringgetMessage()inthashCode()StringprintAttribute()Override to create custom implementation of printing the attribute (for logging and GUI purposes)voidsetAttribute(ItemPathType attribute)voidsetMessage(String message)
 
- 
- 
- 
Constructor Detail- 
SimpleValidationErrorpublic SimpleValidationError() 
 - 
SimpleValidationErrorpublic SimpleValidationError(String message, ItemPathType attribute) 
 
- 
 - 
Method Detail- 
getMessagepublic String getMessage() 
 - 
setMessagepublic void setMessage(String message) 
 - 
getAttributepublic ItemPathType getAttribute() 
 - 
setAttributepublic void setAttribute(ItemPathType attribute) 
 - 
printAttributepublic String printAttribute() Override to create custom implementation of printing the attribute (for logging and GUI purposes)
 
- 
 
-