|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.util.l10n.ContainerClassInfo
public class ContainerClassInfo
Holder of meta-information about a message container class, such as
Messages. Note that only static, non-null fields are
introspected.
org.marketcetera.util.log| Constructor Summary | |
|---|---|
ContainerClassInfo(Class<?> container)
Creates a new meta-information holder for the given message container class. |
|
| Method Summary | |
|---|---|
protected void |
addMessage(I18NMessage message)
Adds the given message to the receiver's meta-information. |
Class<?> |
getContainer()
Returns the receiver's container class. |
List<MessageInfo> |
getMessageInfo()
Returns the receiver's meta-information. |
I18NMessageProvider |
getProvider()
Returns the internationalized message provider declared in the receiver's container class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContainerClassInfo(Class<?> container)
throws I18NException
container - The class.
I18NException - Thrown if introspection of the given
class fails, or the class does not contain a message provider.| Method Detail |
|---|
protected void addMessage(I18NMessage message)
throws I18NException
message - The message.
I18NException - Thrown if addition of the message fails
due to the message having a different message provider than
other messages in the receiver's container class.public Class<?> getContainer()
public I18NMessageProvider getProvider()
public List<MessageInfo> getMessageInfo()
MessageInfoProvider
getMessageInfo in interface MessageInfoProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||