org.apache.hivemind.util
Class LocalizedNameGenerator
java.lang.Object
   org.apache.hivemind.util.LocalizedNameGenerator
org.apache.hivemind.util.LocalizedNameGenerator
- public class LocalizedNameGenerator 
- extends java.lang.Object
Used in a wide variety of resource searches.  Generates
  a series of name variations from a base name, a 
  Locale and an optional suffix.
- Author:
- Howard Lewis Ship
| Constructor Summary | 
| LocalizedNameGenerator(java.lang.String baseName,
                                             java.util.Locale locale,
                                             java.lang.String suffix)
 | 
 
| Method Summary | 
|  java.util.Locale | getCurrentLocale()
 | 
|  boolean | more()Returns true if there are more name variants to be
  returned, false otherwise.
 | 
|  java.lang.String | next()Returns the next localized variant.
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
LocalizedNameGenerator
public LocalizedNameGenerator(java.lang.String baseName,
                              java.util.Locale locale,
                              java.lang.String suffix)
more
public boolean more()
- Returns true if there are more name variants to be
  returned, false otherwise.
 
- 
 
next
public java.lang.String next()
- Returns the next localized variant.
 
- 
- Throws:
- java.util.NoSuchElementException- if all variants have been
  returned.
 
getCurrentLocale
public java.util.Locale getCurrentLocale()
- 
 
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.