org.apache.avalon.excalibur.i18n
Class DefaultMapper

java.lang.Object
  |
  +--org.apache.avalon.excalibur.i18n.DefaultMapper
All Implemented Interfaces:
BundleInfoMapper, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.configuration.Configurable
Direct Known Subclasses:
DirectoryMapper

public class DefaultMapper
extends java.lang.Object
implements BundleInfoMapper, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.configuration.Configurable

Maps the locale using the standard Java mapping: en-US would be mapped to file ending with en_US.

Version:
CVS $Revision: 1.6 $ $Date: 2002/01/02 19:04:56 $ $Author: neeme $
Author:
Neeme Praks

Inner Class Summary
static class DefaultMapper.ConfigurationKeys
           
 
Fields inherited from interface org.apache.avalon.excalibur.i18n.BundleInfoMapper
ROLE
 
Constructor Summary
DefaultMapper()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
           
protected  java.lang.String getPrefix()
           
protected  java.lang.String getSuffix()
           
 java.lang.String map(BundleInfo bundleInfo)
          Get the URI for the bundle, based on locale and filename.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMapper

public DefaultMapper()
Method Detail

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable

getPrefix

protected java.lang.String getPrefix()

getSuffix

protected java.lang.String getSuffix()

map

public java.lang.String map(BundleInfo bundleInfo)
Get the URI for the bundle, based on locale and filename.
Specified by:
map in interface BundleInfoMapper
Returns:
the URI


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.