com.pelzer.util.l10n.localizers
Class ScriptLocalizer

java.lang.Object
  extended by com.pelzer.util.l10n.localizers.Localizer
      extended by com.pelzer.util.l10n.localizers.ScriptLocalizer
All Implemented Interfaces:
Serializable, Comparable<Localizer>

public class ScriptLocalizer
extends Localizer

Used to localize based on ISO 15924 script codes (English would be 'latn' for Latin)

See Also:
Serialized Form

Field Summary
static ScriptLocalizer ANY
          Matches any ScriptLocalizer (not in .equals(), but when the Localizable class is searching)
static ScriptLocalizer DEFAULT
          Unknown (#unknown), a custom script code
 
Fields inherited from class com.pelzer.util.l10n.localizers.Localizer
id, WILDCARD_IDENTIFIER
 
Constructor Summary
ScriptLocalizer(String script, String description)
          Always lowercases the script, should be something like 'latn'
ScriptLocalizer(String script, String description, String nativeDescription)
          Always lowercases the script, should be something like 'latn'
 
Method Summary
 
Methods inherited from class com.pelzer.util.l10n.localizers.Localizer
compareTo, equals, getDescription, getIdentifier, getNativeDescription, hashCode, isWildCard
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final ScriptLocalizer DEFAULT
Unknown (#unknown), a custom script code


ANY

public static final ScriptLocalizer ANY
Matches any ScriptLocalizer (not in .equals(), but when the Localizable class is searching)

Constructor Detail

ScriptLocalizer

public ScriptLocalizer(String script,
                       String description)
Always lowercases the script, should be something like 'latn'


ScriptLocalizer

public ScriptLocalizer(String script,
                       String description,
                       String nativeDescription)
Always lowercases the script, should be something like 'latn'



Copyright © 2012. All Rights Reserved.