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.java 312970 2005-10-11 22:50:06Z vgritsenko $
- Author:
- Konstantin Piroumian
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-2005 The Apache Software Foundation. All Rights Reserved.