abk.messages
Class ABundleKey

java.lang.Object
  extended by abk.messages.ABundleKey

public class ABundleKey
extends Object


Field Summary
static char EXTENSION_SEPARATOR
           
private  String iBaseName
           
private  String iExtension
           
private  Locale iLocale
           
private static Pattern PT_COUNTRY
           
private static Pattern PT_LANG
           
private static Pattern PT_VARIANT
           
 
Constructor Summary
ABundleKey(File file)
           
ABundleKey(File file, Locale locale)
           
ABundleKey(String baseName, Locale locale)
           
 
Method Summary
 boolean equals(Object obj)
           
private  void evalFile(File file)
           
 String getBaseName()
           
 Locale getLocale()
           
 int hashCode()
           
 boolean isFile()
           
private static boolean isLocale(Pattern pattern, CharSequence s)
           
static Locale localeOf(String value)
          Crea una instancia de Locale a partir una especificación de texto estándar colocada al final de un nombre detrás de un guión bajo (_), como por ejemplo: "xx_en", "xxx_de_DE", "xxx__GB", "xxx_en_US_WIN", "xxx_de__POSIX" o "xxx_fr__MAC".
private  void normalizaBaseName(String locale)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EXTENSION_SEPARATOR

public static final char EXTENSION_SEPARATOR
See Also:
Constant Field Values

iBaseName

private String iBaseName

iLocale

private Locale iLocale

iExtension

private String iExtension

PT_LANG

private static final Pattern PT_LANG

PT_COUNTRY

private static final Pattern PT_COUNTRY

PT_VARIANT

private static final Pattern PT_VARIANT
Constructor Detail

ABundleKey

public ABundleKey(String baseName,
                  Locale locale)

ABundleKey

public ABundleKey(File file,
                  Locale locale)

ABundleKey

public ABundleKey(File file)
Method Detail

getBaseName

public String getBaseName()

isFile

public boolean isFile()

getLocale

public Locale getLocale()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

isLocale

private static boolean isLocale(Pattern pattern,
                                CharSequence s)

localeOf

public static Locale localeOf(String value)
Crea una instancia de Locale a partir una especificación de texto estándar colocada al final de un nombre detrás de un guión bajo (_), como por ejemplo: "xx_en", "xxx_de_DE", "xxx__GB", "xxx_en_US_WIN", "xxx_de__POSIX" o "xxx_fr__MAC".

Parameters:
value - Cadena de texto que termina es una especificación de Locale.
Returns:
Nuevo Locale.
Throws:
NullPointerException - si value es nulo.
IllegalArgumentException - si value no termina en una cadena de Locale detrás de un guión bajo (_).
See Also:
Locale

evalFile

private void evalFile(File file)

normalizaBaseName

private void normalizaBaseName(String locale)


Copyright © 2024. All rights reserved.