sji18n
Interface L10nResource


public interface L10nResource

Represents a localization resource.

See Also:
L10nResourceFactory

Method Summary
 Object getObject(String key)
          Returns a localized object for the specified key.
 String getString(String key)
          Returns a localized string for the specified key.
 

Method Detail

getString

String getString(String key)
Returns a localized string for the specified key.

Parameters:
key - the key identifying a localized string to look up and return.
Returns:
the string matching the specified key.
Throws:
MissingResourceException - may be thrown when no object can be found for the specified key.
ClassCastException - when the object found for the specified key cannot be cast to a String.

getObject

Object getObject(String key)
Returns a localized object for the specified key.

Parameters:
key - the key identifying a localized object to look up and return.
Returns:
the object for the specified key.
Throws:
MissingResourceException - may be thrown when no object can be found for the specified key.

Get sji18n at SourceForge.net. Fast, secure and Free Open Source software downloadsCopyright © 2009-2010, Paul Neyens
All Rights Reserved.