Index
All Classes and Interfaces|All Packages|Serialized Form
A
- add(T) - Method in class com.lokalized.Range
-
Deprecated.Unsupported operation; this type is immutable.
- addAll(Collection) - Method in class com.lokalized.Range
-
Deprecated.Unsupported operation; this type is immutable.
- alternatives(List) - Method in class com.lokalized.LocalizedString.Builder
-
Applies alternative expression-driven translations to this builder.
- Animacy - Enum in com.lokalized
-
Language animacy forms.
- ANIMATE - Enum constant in enum com.lokalized.Animacy
-
Animate/sentient.
B
- bestMatchFor(List) - Method in class com.lokalized.DefaultStrings
- bestMatchFor(List) - Method in interface com.lokalized.LocaleMatcher
-
Given a list of language ranges (e.g. as parsed from an
Accept-LanguageHTTP request header), determine the best-matching localized strings file's locale. - bestMatchFor(Locale) - Method in class com.lokalized.DefaultStrings
- bestMatchFor(Locale) - Method in interface com.lokalized.LocaleMatcher
-
Given a language range, determine the best-matching localized strings file's locale.
- build() - Method in class com.lokalized.DefaultStrings.Builder
-
Constructs an instance of
DefaultStrings. - build() - Method in class com.lokalized.LocalizedString.Builder
-
Constructs an instance of
LocalizedString. - Builder(String) - Constructor for class com.lokalized.LocalizedString.Builder
-
Constructs a localized string builder with the given key.
C
- Cardinality - Enum in com.lokalized
-
Language plural cardinality forms.
- clear() - Method in class com.lokalized.Range
-
Deprecated.Unsupported operation; this type is immutable.
- Clusivity - Enum in com.lokalized
-
Language clusivity forms.
- com.lokalized - package com.lokalized
-
Lokalized facilitates natural-sounding software translations.
- commentary(String) - Method in class com.lokalized.LocalizedString.Builder
-
Applies commentary (usage/translation notes) to this builder.
- COMMON - Enum constant in enum com.lokalized.Gender
-
Common gender (masculine + feminine), e.g.
- CONSONANT - Enum constant in enum com.lokalized.Phonetic
-
Word begins with a typical consonant sound.
- contains(Object) - Method in class com.lokalized.Range
-
Returns true if this range contains the specified value.
- containsAll(Collection) - Method in class com.lokalized.Range
-
Returns true if this range contains all of the elements of the specified collection.
D
- DefaultStrings - Class in com.lokalized
-
Default implementation of a localized string provider.
- DefaultStrings.Builder - Class in com.lokalized
-
Builder used to construct instances of
DefaultStrings. - DefaultStrings.FailureMode - Enum in com.lokalized
-
Strategies for handling localized string lookup failures.
E
- emptyFiniteRange() - Static method in class com.lokalized.Range
-
Gets the empty finite range.
- emptyInfiniteRange() - Static method in class com.lokalized.Range
-
Gets the empty infinite range.
- equals(Object) - Method in class com.lokalized.LocalizedString
-
Checks if this object is equal to another one.
- equals(Object) - Method in class com.lokalized.LocalizedString.LanguageFormTranslation
-
Checks if this object is equal to another one.
- equals(Object) - Method in class com.lokalized.LocalizedString.LanguageFormTranslationRange
-
Checks if this object is equal to another one.
- equals(Object) - Method in class com.lokalized.Range
-
Checks if this object is equal to another one.
- exampleDecimalValuesForLocale(Locale) - Static method in enum com.lokalized.Cardinality
-
Gets a mapping of cardinalities to example decimal values for the given locale.
- exampleIntegerValuesForLocale(Locale) - Static method in enum com.lokalized.Cardinality
-
Gets a mapping of cardinalities to example integer values for the given locale.
- exampleIntegerValuesForLocale(Locale) - Static method in enum com.lokalized.Ordinality
-
Gets a mapping of ordinalities to example integer values for the given locale.
- EXCLUSIVE - Enum constant in enum com.lokalized.Clusivity
-
Exclusive "we/us" (excludes the addressee).
- ExpressionEvaluationException - Exception Class in com.lokalized
-
Exception which indicates a problem encountered while evaluating a localized string expression.
- ExpressionEvaluationException(String) - Constructor for exception class com.lokalized.ExpressionEvaluationException
-
Constructs a new exception with the specified message.
- ExpressionEvaluationException(String, Throwable) - Constructor for exception class com.lokalized.ExpressionEvaluationException
-
Constructs a new exception with the specified message and cause.
F
- FAIL_FAST - Enum constant in enum com.lokalized.DefaultStrings.FailureMode
-
The system will throw an exception if a localization is missing for the specified locale.
- failureMode(DefaultStrings.FailureMode) - Method in class com.lokalized.DefaultStrings.Builder
-
Applies a failure mode to this builder.
- FEMININE - Enum constant in enum com.lokalized.Gender
-
Feminine gender.
- FEW - Enum constant in enum com.lokalized.Cardinality
-
The form that falls between
TWOandMANY. - FEW - Enum constant in enum com.lokalized.Ordinality
-
The form that falls between
TWOandMANY. - FORMAL - Enum constant in enum com.lokalized.Formality
-
Formal register.
- Formality - Enum in com.lokalized
-
Language formality forms.
- forNumber(Number, Integer, Locale) - Static method in enum com.lokalized.Cardinality
-
Gets an appropriate plural cardinality for the given number, visible decimal places, and locale.
- forNumber(Number, Locale) - Static method in enum com.lokalized.Cardinality
-
Gets an appropriate plural cardinality for the given number and locale.
- forNumber(Number, Locale) - Static method in enum com.lokalized.Ordinality
-
Gets an appropriate plural ordinality for the given number and locale.
- forRange(Cardinality, Cardinality, Locale) - Static method in enum com.lokalized.Cardinality
-
Gets an appropriate plural cardinality for the given range (start, end) and locale.
G
- Gender - Enum in com.lokalized
-
Language gender forms.
- get(String) - Method in class com.lokalized.DefaultStrings
- get(String) - Method in interface com.lokalized.Strings
-
Gets a localized string for the given key.
- get(String, Map) - Method in class com.lokalized.DefaultStrings
- get(String, Map) - Method in interface com.lokalized.Strings
-
Gets a localized string for the given key.
- getAlternatives() - Method in class com.lokalized.LocalizedString
-
Gets alternative expression-driven translations for this string.
- getCommentary() - Method in class com.lokalized.LocalizedString
-
Gets this string's commentary (usage/translation notes).
- getEnd() - Method in class com.lokalized.LocalizedString.LanguageFormTranslationRange
-
The end value for this range.
- getFailureMode() - Method in class com.lokalized.DefaultStrings
-
Gets the strategy for handling string lookup failures.
- getFallbackLocale() - Method in class com.lokalized.DefaultStrings
-
Gets the fallback locale.
- getInfinite() - Method in class com.lokalized.Range
-
Gets whether this range is infinite.
- getKey() - Method in class com.lokalized.LocalizedString
-
Gets this string's translation key.
- getKey() - Method in exception class com.lokalized.MissingTranslationException
-
The translation key that triggered this exception.
- getLanguageFormTranslationsByPlaceholder() - Method in class com.lokalized.LocalizedString
-
Gets per-language-form translations that correspond to a placeholder value.
- getLocale() - Method in exception class com.lokalized.MissingTranslationException
-
The locale that triggered this exception.
- getLocale() - Method in exception class com.lokalized.UnsupportedLocaleException
-
The unsupported locale that triggered this exception.
- getLocaleSupplier() - Method in class com.lokalized.DefaultStrings
-
Gets the locale supplier.
- getLocalizedStringsByLocale() - Method in class com.lokalized.DefaultStrings
-
Gets the set of localized strings for each locale.
- getPlaceholders() - Method in exception class com.lokalized.MissingTranslationException
-
The placeholders specified for the failed translation attempt.
- getRange() - Method in class com.lokalized.LocalizedString.LanguageFormTranslation
-
Gets the range for this per-language-form translation set.
- getStart() - Method in class com.lokalized.LocalizedString.LanguageFormTranslationRange
-
The start value for this range.
- getSupportedLanguageCodes() - Static method in enum com.lokalized.Cardinality
-
Gets the ISO 639 language codes for which cardinality operations are supported.
- getSupportedLanguageCodes() - Static method in enum com.lokalized.Ordinality
-
Gets the ISO 639 language codes for which ordinality operations are supported.
- getTiebreakerLocalesByLanguageCode() - Method in class com.lokalized.DefaultStrings
-
Gets the mapping of a mapping of an ISO 639 language code to its ordered "tiebreaker" fallback locales.
- getTranslation() - Method in class com.lokalized.LocalizedString
-
Gets this string's default translation, if available.
- getTranslationsByLanguageForm() - Method in class com.lokalized.LocalizedString.LanguageFormTranslation
-
Gets the translations by language form for this per-language-form translation set.
- getValue() - Method in class com.lokalized.LocalizedString.LanguageFormTranslation
-
Gets the value for this per-language-form translation set.
- getValues() - Method in class com.lokalized.Range
-
Gets the values that comprise this range.
- GLIDE_W - Enum constant in enum com.lokalized.Phonetic
-
Word begins with W functioning as a consonantal glide /w/.
- GLIDE_Y - Enum constant in enum com.lokalized.Phonetic
-
Word begins with Y functioning as a consonantal glide /j/.
- GN - Enum constant in enum com.lokalized.Phonetic
-
Word begins with the palatal nasal cluster GN.
H
- H_ASPIRATED - Enum constant in enum com.lokalized.Phonetic
-
Word begins with an aspirated (pronounced) H.
- H_SILENT - Enum constant in enum com.lokalized.Phonetic
-
Word begins with a silent H, making it phonetically vowel-initial.
- hashCode() - Method in class com.lokalized.LocalizedString
-
A hash code for this object.
- hashCode() - Method in class com.lokalized.LocalizedString.LanguageFormTranslation
-
A hash code for this object.
- hashCode() - Method in class com.lokalized.LocalizedString.LanguageFormTranslationRange
-
A hash code for this object.
- hashCode() - Method in class com.lokalized.Range
-
A hash code for this object.
- HONORIFIC - Enum constant in enum com.lokalized.Formality
-
Honorific register.
I
- INANIMATE - Enum constant in enum com.lokalized.Animacy
-
Inanimate.
- INCLUSIVE - Enum constant in enum com.lokalized.Clusivity
-
Inclusive "we/us" (includes the addressee).
- INFORMAL - Enum constant in enum com.lokalized.Formality
-
Informal register.
- isEmpty() - Method in class com.lokalized.Range
-
Returns true if this range contains no elements.
- iterator() - Method in class com.lokalized.Range
-
Returns an iterator over the values in this range in proper sequence.
L
- LanguageForm - Interface in com.lokalized
-
Marker interface which signifies a language construct (genders, animacy, clusivity, formality, cardinalities, ordinalities, phonetics).
- LanguageFormTranslation(LocalizedString.LanguageFormTranslationRange, Map) - Constructor for class com.lokalized.LocalizedString.LanguageFormTranslation
-
Constructs a per-language-form translation set with the given placeholder range and mapping of translations by language form.
- LanguageFormTranslation(String, Map) - Constructor for class com.lokalized.LocalizedString.LanguageFormTranslation
-
Constructs a per-language-form translation set with the given placeholder value and mapping of translations by language form.
- LanguageFormTranslationRange(String, String) - Constructor for class com.lokalized.LocalizedString.LanguageFormTranslationRange
-
Constructs a translation range with the given start and end values.
- languageFormTranslationsByPlaceholder(Map) - Method in class com.lokalized.LocalizedString.Builder
-
Applies per-language-form translations to this builder.
- loadFromClasspath(String) - Static method in class com.lokalized.LocalizedStringLoader
-
Loads all localized string files present in the specified package on the classpath.
- loadFromFilesystem(Path) - Static method in class com.lokalized.LocalizedStringLoader
-
Loads all localized string files present in the specified directory.
- LocaleMatcher - Interface in com.lokalized
-
Contract for matching an input
LocaleorList<Locale.LanguageRange>to an appropriate localized stringsLocale. - localeSupplier(Function) - Method in class com.lokalized.DefaultStrings.Builder
-
Applies a locale supplier to this builder.
- LocalizedString - Class in com.lokalized
-
Represents a single localized string - its key, translated value, and any associated translation rules.
- LocalizedString.Builder - Class in com.lokalized
-
Builder used to construct instances of
LocalizedString. - LocalizedString.LanguageFormTranslation - Class in com.lokalized
-
Container for per-language-form (gender, cardinal, ordinal) translation information.
- LocalizedString.LanguageFormTranslationRange - Class in com.lokalized
-
Container for per-language-form cardinality translation information over a range (start, end) of values.
- LocalizedStringLoader - Class in com.lokalized
-
Utility methods for loading localized strings files.
- LocalizedStringLoadingException - Exception Class in com.lokalized
-
Exception which indicates a problem encountered while processing a localized strings file.
- LocalizedStringLoadingException(String) - Constructor for exception class com.lokalized.LocalizedStringLoadingException
-
Constructs a new exception with the specified message.
- LocalizedStringLoadingException(String, Throwable) - Constructor for exception class com.lokalized.LocalizedStringLoadingException
-
Constructs a new exception with the specified message and cause.
- localizedStringSupplier(Supplier) - Method in class com.lokalized.DefaultStrings.Builder
-
Applies a localized string supplier to this builder.
- LUNAR - Enum constant in enum com.lokalized.Phonetic
-
Arabic moon letter (الحروف القمرية).
M
- MANY - Enum constant in enum com.lokalized.Cardinality
-
The form that falls between
FEWandOTHER. - MANY - Enum constant in enum com.lokalized.Ordinality
-
The form that falls between
FEWandOTHER. - MASCULINE - Enum constant in enum com.lokalized.Gender
-
Masculine gender.
- MissingTranslationException - Exception Class in com.lokalized
-
Exception thrown when no translation is found when
DefaultStrings.FailureModeis configured to beDefaultStrings.FailureMode.FAIL_FAST. - MissingTranslationException(String, String, Map, Locale) - Constructor for exception class com.lokalized.MissingTranslationException
-
Constructs a new exception with the unsupported locale.
N
O
- ofFiniteValues(T...) - Static method in class com.lokalized.Range
-
Provides a finite range for the given values.
- ofFiniteValues(Collection) - Static method in class com.lokalized.Range
-
Provides a finite range for the given values.
- ofInfiniteValues(T...) - Static method in class com.lokalized.Range
-
Provides an infinite range for the given values.
- ofInfiniteValues(Collection) - Static method in class com.lokalized.Range
-
Provides an infinite range for the given values.
- ONE - Enum constant in enum com.lokalized.Cardinality
-
The form used with 1.
- ONE - Enum constant in enum com.lokalized.Ordinality
-
The form used with 1.
- Ordinality - Enum in com.lokalized
-
Language plural ordinality forms.
- OTHER - Enum constant in enum com.lokalized.Cardinality
-
General "catchall" form which comprises any cases not handled by the other forms.
- OTHER - Enum constant in enum com.lokalized.Ordinality
-
General "catchall" form which comprises any cases not handled by the other forms.
- OTHER - Enum constant in enum com.lokalized.Phonetic
-
Fallback category for edge cases not covered by other values.
P
- Phonetic - Enum in com.lokalized
-
Represents the phonetic onset category of a word, used to select context-appropriate word forms in localized strings.
- phoneticResolver(PhoneticResolver) - Method in class com.lokalized.DefaultStrings.Builder
-
Applies a phonetic resolver to this builder.
- PhoneticResolver - Interface in com.lokalized
-
Resolves
Phoneticcategories for terms at runtime. - PN - Enum constant in enum com.lokalized.Phonetic
-
Word begins with the PN cluster.
- PS - Enum constant in enum com.lokalized.Phonetic
-
Word begins with the PS cluster.
R
- Range<T> - Class in com.lokalized
-
Represents a concrete range of values.
- remove(Object) - Method in class com.lokalized.Range
-
Deprecated.Unsupported operation; this type is immutable.
- removeAll(Collection) - Method in class com.lokalized.Range
-
Deprecated.Unsupported operation; this type is immutable.
- resolve(String, Locale) - Method in interface com.lokalized.PhoneticResolver
-
Determines the phonetic category for a term.
- retainAll(Collection) - Method in class com.lokalized.Range
-
Deprecated.Unsupported operation; this type is immutable.
S
- S_IMPURE - Enum constant in enum com.lokalized.Phonetic
-
Word begins with s + consonant cluster (s impura).
- size() - Method in class com.lokalized.Range
-
Returns the number of elements in this range.
- SOLAR - Enum constant in enum com.lokalized.Phonetic
-
Arabic sun letter (الحروف الشمسية).
- STRESSED_A - Enum constant in enum com.lokalized.Phonetic
-
Word begins with a stressed A or HA sound.
- Strings - Interface in com.lokalized
-
Contract for localized string providers - given a key and optional placeholders, return a localized string.
- supportedCardinalitiesForLocale(Locale) - Static method in enum com.lokalized.Cardinality
-
Gets the set of cardinalities supported for the given locale.
- supportedOrdinalitiesForLocale(Locale) - Static method in enum com.lokalized.Ordinality
-
Gets the set of ordinalities supported for the given locale.
T
- tiebreakerLocalesByLanguageCode(Map) - Method in class com.lokalized.DefaultStrings.Builder
-
Applies a mapping of an ISO 639 language code to its ordered "tiebreaker" fallback locales to this builder.
- toArray() - Method in class com.lokalized.Range
-
Returns an array containing all of the values in this range in proper sequence (from first to last value).
- toArray(T1[]) - Method in class com.lokalized.Range
-
Returns an array containing all of the values in this range in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array.
- toString() - Method in class com.lokalized.LocalizedString.LanguageFormTranslation
-
Generates a
Stringrepresentation of this object. - toString() - Method in class com.lokalized.LocalizedString.LanguageFormTranslationRange
-
Generates a
Stringrepresentation of this object. - toString() - Method in class com.lokalized.LocalizedString
-
Generates a
Stringrepresentation of this object. - toString() - Method in class com.lokalized.Range
-
Generates a
Stringrepresentation of this object. - translation(String) - Method in class com.lokalized.LocalizedString.Builder
-
Applies a default translation to this builder.
- TWO - Enum constant in enum com.lokalized.Cardinality
-
Normally the form used with 2, if it is limited to numbers whose integer values end with 2.
- TWO - Enum constant in enum com.lokalized.Ordinality
-
Normally the form used with 2, if it is limited to numbers whose integer values end with 2.
U
- UnsupportedLocaleException - Exception Class in com.lokalized
-
Exception thrown when an operation was performed on a locale that is not recognized by the system.
- UnsupportedLocaleException(Locale) - Constructor for exception class com.lokalized.UnsupportedLocaleException
-
Constructs a new exception with the unsupported locale.
- USE_FALLBACK - Enum constant in enum com.lokalized.DefaultStrings.FailureMode
-
The system will attempt a series of fallbacks in order to not throw an exception at runtime.
V
- valueOf(String) - Static method in enum com.lokalized.Animacy
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.lokalized.Cardinality
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.lokalized.Clusivity
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.lokalized.DefaultStrings.FailureMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.lokalized.Formality
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.lokalized.Gender
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.lokalized.Ordinality
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.lokalized.Phonetic
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.lokalized.Animacy
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.lokalized.Cardinality
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.lokalized.Clusivity
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.lokalized.DefaultStrings.FailureMode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.lokalized.Formality
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.lokalized.Gender
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.lokalized.Ordinality
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.lokalized.Phonetic
-
Returns an array containing the constants of this enum type, in the order they are declared.
- VOWEL - Enum constant in enum com.lokalized.Phonetic
-
Word begins with a vowel sound.
W
- withFallbackLocale(Locale) - Static method in interface com.lokalized.Strings
-
Vends a
Stringsinstance builder for the specified fallback locale.
X
Z
- Z - Enum constant in enum com.lokalized.Phonetic
-
Word begins with Z sound or affricates /ts/, /dz/.
- ZERO - Enum constant in enum com.lokalized.Cardinality
-
Normally the form used with 0, if it is limited to numbers whose integer values end with 0.
- ZERO - Enum constant in enum com.lokalized.Ordinality
-
Normally the form used with 0, if it is limited to numbers whose integer values end with 0.
All Classes and Interfaces|All Packages|Serialized Form