This project has retired. For details please refer to its
Attic page.
Bundle (Cocoon API 2.1.12-dev [March 20 2012])
org.apache.cocoon.i18n
Interface Bundle
- All Superinterfaces:
- Component
- All Known Implementing Classes:
- XMLResourceBundle
public interface Bundle
- extends Component
Resource bundle component interface.
Provide the minimal number of methods to be used for i18n.
- Version:
- $Id: Bundle.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Konstantin Piroumian
ROLE
static final String ROLE
getString
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
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-2010 The Apache Software Foundation. All Rights Reserved.