public class ValidationResult extends Object implements INoticesSupport
IValidator.| Constructor and Description |
|---|
ValidationResult(Object target) |
| Modifier and Type | Method and Description |
|---|---|
void |
addError(String text,
Object detail) |
void |
addInfo(String text,
Object detail) |
void |
addNotice(int severity,
String text,
Object detail,
boolean sticky) |
void |
addNotice(Notice notification)
Add a new
Notice |
void |
addNotices(INoticesSupport ns) |
void |
addWarning(String text,
Object detail) |
void |
clearNotices()
Remove all
Notice instances from the target. |
List<Notice> |
getNotices()
A list of
Notice instances associated with this object. |
String |
getSummary() |
Object |
getTarget() |
long |
getTimestamp() |
boolean |
hasError() |
boolean |
hasInfo() |
boolean |
hasNotices() |
boolean |
hasWarning() |
boolean |
removeNotice(Notice notice)
Remove the
Notice from the target. |
public ValidationResult(Object target)
public void addNotice(Notice notification)
INoticesSupportNoticeaddNotice in interface INoticesSupportpublic void addNotices(INoticesSupport ns)
public void clearNotices()
INoticesSupportNotice instances from the target.clearNotices in interface INoticesSupportpublic List<Notice> getNotices()
INoticesSupportNotice instances associated with this object.
Notice instances are added and removed directly.getNotices in interface INoticesSupportNotice instances associated with this object.public String getSummary()
public Object getTarget()
public long getTimestamp()
public boolean hasError()
public boolean hasInfo()
public boolean hasNotices()
public boolean hasWarning()
public boolean removeNotice(Notice notice)
INoticesSupportNotice from the target.removeNotice in interface INoticesSupportCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.