org.apache.cocoon.i18n
Interface Bundle
- All Known Implementing Classes:
- XMLResourceBundle
- public interface Bundle
Resource bundle component interface.
Provide the minimal number of methods to be used for i18n.
- Version:
- $Id: Bundle.html 1304280 2012-03-23 11:18:01Z ilgrosso $
ROLE
public static final String ROLE
getString
public String getString(String key)
throws MissingResourceException
- Get string value by key.
- Parameters:
key
-
- Returns:
- Resource as string.
- Throws:
MissingResourceException
- if resource was not found
getObject
public Object getObject(String key)
throws MissingResourceException
- Get object value by key.
- Parameters:
key
- The resource key.
- Returns:
- The resource as object.
- Throws:
MissingResourceException
- if resource was not found
Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.