org.osconsulting.l10n
Class MessageCategoryBase

java.lang.Object
  extended by org.osconsulting.l10n.MessageCategoryBase
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MessageCategory

public abstract class MessageCategoryBase
extends java.lang.Object
implements java.io.Serializable

L10nBaseCategory is the base class of all L10nCategories. The user must extend this class and list all string keys for this new category. See L10nCategory for an example implementation.

Author:
kstam Copyright 2006 osConsulting.org Kurt Stam and Shahar Bar
See Also:
Serialized Form

Constructor Summary
MessageCategoryBase()
           
 
Method Summary
 java.util.List<LocalizedMessage> getLocalizedMessageList()
          Returns a list of keys of all errorCode defined in the current JErrorCategory.
 java.util.List<MessageStore> getMessageStores(java.lang.Class messageCategory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageCategoryBase

public MessageCategoryBase()
Method Detail

getLocalizedMessageList

public java.util.List<LocalizedMessage> getLocalizedMessageList()
                                                         throws java.lang.IllegalAccessException
Returns a list of keys of all errorCode defined in the current JErrorCategory.

Returns:
- List of all keys defined in this category.
Throws:
java.lang.IllegalAccessException - if a key is inaccessable

getMessageStores

public java.util.List<MessageStore> getMessageStores(java.lang.Class messageCategory)


Copyright © 2006-2007. All Rights Reserved.