org.apache.avalon.excalibur.i18n
Class BundleInfo
java.lang.Object
|
+--org.apache.avalon.excalibur.i18n.BundleInfo
- Direct Known Subclasses:
- ConfigurableBundleInfo
- public class BundleInfo
- extends java.lang.Object
Used to map locale information to URI space, to find the relevant bundle.
- Version:
- CVS $Revision: 1.6 $ $Date: 2002/01/02 19:04:56 $ $Author: neeme $
- Author:
- Neeme Praks
Constructor Summary |
BundleInfo()
|
BundleInfo(java.lang.String name,
java.util.Locale locale)
|
BundleInfo(java.lang.String name,
java.util.Locale locale,
java.lang.String ext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BundleInfo
public BundleInfo()
BundleInfo
public BundleInfo(java.lang.String name,
java.util.Locale locale)
BundleInfo
public BundleInfo(java.lang.String name,
java.util.Locale locale,
java.lang.String ext)
setName
protected void setName(java.lang.String name)
setLocale
protected void setLocale(java.util.Locale locale)
setExtensionParameter
protected void setExtensionParameter(java.lang.String ext)
getName
public java.lang.String getName()
getLocale
public java.util.Locale getLocale()
getExtensionParameter
public java.lang.String getExtensionParameter()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getParent
public BundleInfo getParent()
getParentLocale
protected java.util.Locale getParentLocale()
- Returns the next locale up the parent hierarchy.
E.g. the parent of new Locale("en","us","mac") would be
new Locale("en", "us", "").
- Parameters:
locale
- the locale- Returns:
- the parent locale
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.