org.apache.avalon.excalibur.i18n
Class DirectoryMapper

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

public class DirectoryMapper
extends DefaultMapper

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 classes inherited from class org.apache.avalon.excalibur.i18n.DefaultMapper
DefaultMapper.ConfigurationKeys
 
Fields inherited from interface org.apache.avalon.excalibur.i18n.BundleInfoMapper
ROLE
 
Constructor Summary
DirectoryMapper()
           
 
Method Summary
 java.lang.String map(BundleInfo bundleInfo)
          Get the URI for the bundle, based on locale and filename.
 
Methods inherited from class org.apache.avalon.excalibur.i18n.DefaultMapper
configure, getPrefix, getSuffix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryMapper

public DirectoryMapper()
Method Detail

map

public java.lang.String map(BundleInfo bundleInfo)
Get the URI for the bundle, based on locale and filename.
Overrides:
map in class DefaultMapper
Returns:
the URI


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.