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
MessageInterface
accept
in interface MessageInterface
MessageProcessingException
public void accept(MessageInterfaceVisitor cv, GwtLocale locale) throws MessageProcessingException
MessageInterface
accept
in interface MessageInterface
MessageProcessingException
public abstract <A extends Annotation> A getAnnotation(Class<A> annotClass)
MessageInterface
getAnnotation
in interface MessageInterface
public abstract String getClassName()
MessageInterface
MessageInterface
.getClassName
in interface MessageInterface
public abstract Iterable<Message> getMessages() throws MessageProcessingException
Message.getKey()
.Message
instancesMessageProcessingException
public abstract String getPackageName()
MessageInterface
MessageInterface
.getPackageName
in interface MessageInterface
public abstract String getQualifiedName()
MessageInterface
getQualifiedName
in interface MessageInterface
public abstract boolean isAnnotationPresent(Class<? extends Annotation> annotClass)
MessageInterface
isAnnotationPresent
in interface MessageInterface
Copyright © 2018. All rights reserved.