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.java 433543 2006-08-22 06:22:54Z crossley $
- 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-2006 The Apache Software Foundation. All Rights Reserved.