public class PropertyValidationVO extends Object implements Serializable
Constructor and Description |
---|
PropertyValidationVO(Property<?> property)
Constructor, where the exception is
null . |
PropertyValidationVO(Property<?> property,
Exception exception)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Exception |
getException()
Gets the exception for the property validation, if the property validation did not fail this is
null . |
String |
getExceptionMessage() |
Property<?> |
getProperty()
the property that has been validated.
|
boolean |
isValid()
Did the property validation failed.
|
public PropertyValidationVO(Property<?> property, Exception exception)
property
- the property that has been validated.exception
- if the validation fails.public PropertyValidationVO(Property<?> property)
null
.property
- the property that has been validated.public Exception getException()
null
.public Property<?> getProperty()
public boolean isValid()
true
if the exception null
, otherwise false
is returned.public String getExceptionMessage()