|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.validator.ap.util.MessagerAdapter
public class MessagerAdapter
Wrapper around Messager
, which adds the ability to format error messages using MessageFormat
.
Constructor Summary | |
---|---|
MessagerAdapter(Messager messager,
Diagnostic.Kind diagnosticKind)
Creates a new MessagerAdapter. |
Method Summary | |
---|---|
Messager |
getDelegate()
Returns the messager used by this adapter. |
void |
reportErrors(Set<ConstraintCheckError> errors)
Reports the given errors against the underlying Messager using
the specified Diagnostic.Kind . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessagerAdapter(Messager messager, Diagnostic.Kind diagnosticKind)
messager
- The underlying messager.diagnosticKind
- The kind with which messages shall be reported.Method Detail |
---|
public Messager getDelegate()
public void reportErrors(Set<ConstraintCheckError> errors)
Messager
using
the specified Diagnostic.Kind
.
errors
- A set with errors to report. May be empty but must not be
null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |