public class MessagerAdapter extends Object
Messager, which adds the ability to format error messages using MessageFormat.| Constructor and Description |
|---|
MessagerAdapter(Messager messager,
Diagnostic.Kind diagnosticKind)
Creates a new MessagerAdapter.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
public MessagerAdapter(Messager messager, Diagnostic.Kind diagnosticKind)
messager - The underlying messager.diagnosticKind - The kind with which messages shall be reported.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.Copyright © 2007-2014 Red Hat Middleware, LLC. All Rights Reserved