org.apache.avalon.excalibur.i18n
Class DefaultBundleMatcher

java.lang.Object
  |
  +--org.apache.avalon.excalibur.i18n.DefaultBundleMatcher
All Implemented Interfaces:
BundleMatcher, org.apache.avalon.framework.configuration.Configurable

public class DefaultBundleMatcher
extends java.lang.Object
implements BundleMatcher, org.apache.avalon.framework.configuration.Configurable

Used to map bundle information to string representation (e.g. URI), to find the relevant bundle.

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

Fields inherited from interface org.apache.avalon.excalibur.i18n.BundleMatcher
ROLE
 
Constructor Summary
DefaultBundleMatcher()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
          Configure the component.
 java.lang.String getType(BundleInfo bundleInfo)
          Get the string form of the bundle, based on bundle info.
protected  boolean match(BundleInfo src, BundleInfo compareTo)
           
protected  boolean match(java.util.Locale locale, java.util.Locale reference)
           
protected  boolean match(java.lang.String str, java.lang.String reference)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBundleMatcher

public DefaultBundleMatcher()
Method Detail

getType

public java.lang.String getType(BundleInfo bundleInfo)
Get the string form of the bundle, based on bundle info.
Specified by:
getType in interface BundleMatcher
Returns:
the string form

configure

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

match

protected boolean match(BundleInfo src,
                        BundleInfo compareTo)

match

protected boolean match(java.lang.String str,
                        java.lang.String reference)

match

protected boolean match(java.util.Locale locale,
                        java.util.Locale reference)


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.