asia.redact.bracket.properties
Class LocaleStringBuilder

java.lang.Object
  extended by asia.redact.bracket.properties.LocaleStringBuilder

public class LocaleStringBuilder
extends Object

 Used to construct localized properties file names from a base name and a Locale.
 This is slightly deceptive, the "baseName" is actually all the part of the package path of the file up to
 but not including the extension. So, baseName could be the package name a.b.c.message where the bundle is
 localized in a.b.c.message.properties,a.b.c.message_en.properties, etc. 
 
 
 

Author:
Dave

Field Summary
(package private)  String baseName
           
(package private)  Locale locale
           
 
Constructor Summary
LocaleStringBuilder(String baseName, Locale locale)
           
 
Method Summary
 boolean equals(Object obj)
           
 List<String> getSearchStrings()
           
 int hashCode()
           
private  boolean hasLanguage()
           
private  boolean hasLanguageCountry()
           
private  boolean hasLanguageCountryVariant()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

locale

Locale locale

baseName

String baseName
Constructor Detail

LocaleStringBuilder

public LocaleStringBuilder(String baseName,
                           Locale locale)
Method Detail

getSearchStrings

public List<String> getSearchStrings()

hasLanguageCountryVariant

private boolean hasLanguageCountryVariant()

hasLanguageCountry

private boolean hasLanguageCountry()

hasLanguage

private boolean hasLanguage()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2011-2013 David R. Smith. All Rights Reserved.