
public abstract class AbstractMessageInterface extends Object implements MessageInterface
MessageInterface.| Modifier and Type | Field and Description |
|---|---|
protected GwtLocaleFactory |
factory |
| Constructor and Description |
|---|
AbstractMessageInterface(GwtLocaleFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(MessageInterfaceVisitor cv)
Visit this class and all messages within it, using the default locale.
|
void |
accept(MessageInterfaceVisitor cv,
GwtLocale locale)
Visit this class and all messages within it.
|
abstract <A extends Annotation> |
getAnnotation(Class<A> annotClass)
Return the requested annotation present on this message, including parents
if the annotation is inherited.
|
abstract String |
getClassName()
Get the unqualified class name (including parent classes for nested
classes - ie, "Foo.Bar") of this
MessageInterface. |
abstract Iterable<Message> |
getMessages()
Gets the list of messages defined in this interface, including inherited.
|
abstract String |
getPackageName()
Get the package name (ie, "org.example") of this
MessageInterface. |
abstract String |
getQualifiedName()
Get the fully qualified source name (ie, "org.example.Foo.Bar": if Bar is
an inner class of Foo) of this message interface - generally used for
error messages.
|
abstract boolean |
isAnnotationPresent(Class<? extends Annotation> annotClass)
Check if a specified annotation is present on this message (including
via inheritance if the annotation is inherited).
|
String |
toString() |
protected final GwtLocaleFactory factory
public AbstractMessageInterface(GwtLocaleFactory factory)
public void accept(MessageInterfaceVisitor cv) throws MessageProcessingException
MessageInterfaceaccept in interface MessageInterfaceMessageProcessingExceptionpublic void accept(MessageInterfaceVisitor cv, GwtLocale locale) throws MessageProcessingException
MessageInterfaceaccept in interface MessageInterfaceMessageProcessingExceptionpublic abstract <A extends Annotation> A getAnnotation(Class<A> annotClass)
MessageInterfacegetAnnotation in interface MessageInterfacepublic abstract String getClassName()
MessageInterfaceMessageInterface.getClassName in interface MessageInterfacepublic abstract Iterable<Message> getMessages() throws MessageProcessingException
Message.getKey().Message instancesMessageProcessingExceptionpublic abstract String getPackageName()
MessageInterfaceMessageInterface.getPackageName in interface MessageInterfacepublic abstract String getQualifiedName()
MessageInterfacegetQualifiedName in interface MessageInterfacepublic abstract boolean isAnnotationPresent(Class<? extends Annotation> annotClass)
MessageInterfaceisAnnotationPresent in interface MessageInterfaceCopyright © 2018. All rights reserved.