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, toString
public ReflectionMessageInterface(GwtLocaleFactory factory, Class<? extends LocalizableResource> msgIntf)
public <A extends Annotation> A getAnnotation(Class<A> annotClass)
MessageInterface
getAnnotation
in interface MessageInterface
getAnnotation
in class AbstractMessageInterface
public String getClassName()
MessageInterface
MessageInterface
.getClassName
in interface MessageInterface
getClassName
in class AbstractMessageInterface
public Iterable<Message> getMessages() throws MessageProcessingException
AbstractMessageInterface
Message.getKey()
.getMessages
in class AbstractMessageInterface
Message
instancesMessageProcessingException
public String getPackageName()
MessageInterface
MessageInterface
.getPackageName
in interface MessageInterface
getPackageName
in class AbstractMessageInterface
public String getQualifiedName()
MessageInterface
getQualifiedName
in interface MessageInterface
getQualifiedName
in class AbstractMessageInterface
public boolean isAnnotationPresent(Class<? extends Annotation> annotClass)
MessageInterface
isAnnotationPresent
in interface MessageInterface
isAnnotationPresent
in class AbstractMessageInterface
Copyright © 2018. All rights reserved.