
public class ReflectionMessageInterface extends AbstractMessageInterface
MessageInterface.factory| Constructor and Description |
|---|
ReflectionMessageInterface(GwtLocaleFactory factory,
Class<? extends LocalizableResource> msgIntf) |
| Modifier and Type | Method and Description |
|---|---|
<A extends Annotation> |
getAnnotation(Class<A> annotClass)
Return the requested annotation present on this message, including parents
if the annotation is inherited.
|
String |
getClassName()
Get the unqualified class name (including parent classes for nested
classes - ie, "Foo.Bar") of this
MessageInterface. |
Iterable<Message> |
getMessages()
Gets the list of messages defined in this interface, including inherited.
|
String |
getPackageName()
Get the package name (ie, "org.example") of this
MessageInterface. |
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.
|
boolean |
isAnnotationPresent(Class<? extends Annotation> annotClass)
Check if a specified annotation is present on this message (including
via inheritance if the annotation is inherited).
|
accept, accept, toStringpublic ReflectionMessageInterface(GwtLocaleFactory factory, Class<? extends LocalizableResource> msgIntf)
public <A extends Annotation> A getAnnotation(Class<A> annotClass)
MessageInterfacegetAnnotation in interface MessageInterfacegetAnnotation in class AbstractMessageInterfacepublic String getClassName()
MessageInterfaceMessageInterface.getClassName in interface MessageInterfacegetClassName in class AbstractMessageInterfacepublic Iterable<Message> getMessages() throws MessageProcessingException
AbstractMessageInterfaceMessage.getKey().getMessages in class AbstractMessageInterfaceMessage instancesMessageProcessingExceptionpublic String getPackageName()
MessageInterfaceMessageInterface.getPackageName in interface MessageInterfacegetPackageName in class AbstractMessageInterfacepublic String getQualifiedName()
MessageInterfacegetQualifiedName in interface MessageInterfacegetQualifiedName in class AbstractMessageInterfacepublic boolean isAnnotationPresent(Class<? extends Annotation> annotClass)
MessageInterfaceisAnnotationPresent in interface MessageInterfaceisAnnotationPresent in class AbstractMessageInterfaceCopyright © 2018. All rights reserved.