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 Summary
Constructors Constructor Description SimpleValidationError()
SimpleValidationError(String message, ItemPathType attribute)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
ItemPathType
getAttribute()
String
getMessage()
int
hashCode()
String
printAttribute()
Override to create custom implementation of printing the attribute (for logging and GUI purposes)void
setAttribute(ItemPathType attribute)
void
setMessage(String message)
-
-
-
Constructor Detail
-
SimpleValidationError
public SimpleValidationError()
-
SimpleValidationError
public SimpleValidationError(String message, ItemPathType attribute)
-
-
Method Detail
-
getMessage
public String getMessage()
-
setMessage
public void setMessage(String message)
-
getAttribute
public ItemPathType getAttribute()
-
setAttribute
public void setAttribute(ItemPathType attribute)
-
printAttribute
public String printAttribute()
Override to create custom implementation of printing the attribute (for logging and GUI purposes)
-
-