org.sakaiproject.entitybroker.util.core
Class EntityPropertiesServiceSimple.ResourceBundleMessageSource
java.lang.Object
org.sakaiproject.entitybroker.util.core.EntityPropertiesServiceSimple.ResourceBundleMessageSource
- All Implemented Interfaces:
- AbstractEntityPropertiesService.MessageBundle
- Enclosing class:
- EntityPropertiesServiceSimple
protected class EntityPropertiesServiceSimple.ResourceBundleMessageSource
- extends Object
- implements AbstractEntityPropertiesService.MessageBundle
Message source based on the standard resource bundle
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityPropertiesServiceSimple.ResourceBundleMessageSource
public EntityPropertiesServiceSimple.ResourceBundleMessageSource(ResourceBundle bundle)
getPropertyMessage
public String getPropertyMessage(String code,
Object[] args,
Locale locale)
- Description copied from interface:
AbstractEntityPropertiesService.MessageBundle
- Try to resolve the message. Treat as an error if the message can't be found.
- Specified by:
getPropertyMessage in interface AbstractEntityPropertiesService.MessageBundle
- Parameters:
code - the code to lookup up, such as 'calculator.noRateSet'args - Array of arguments that will be filled in for params within
the message (params look like "{0}", "{1,date}", "{2,time}" within a message),
or null if none.locale - the Locale in which to do the lookup
- Returns:
- the resolved message
getPropertyKeys
public List<String> getPropertyKeys(Locale locale)
- Description copied from interface:
AbstractEntityPropertiesService.MessageBundle
- Get all the keys for a specific Locale
- Specified by:
getPropertyKeys in interface AbstractEntityPropertiesService.MessageBundle
- Parameters:
locale - the Locale in which to do the lookup
- Returns:
- the list of all keys found for the given Locale
Copyright © 2007-2012 CARET, University of Cambridge. All Rights Reserved.