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

Field Summary
static String ROLE
           
 
Method Summary
 Object getObject(String key)
          Get object value by key.
 String getString(String key)
          Get string value by key.
 

Field Detail

ROLE

static final String ROLE
Method Detail

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.