Class LocalizedStringWarning
java.lang.Object
com.lokalized.LocalizedStringWarning
Describes a non-fatal validation problem detected while loading a localized strings file.
Instances are supplied to a LocalizedStringWarningHandler. Lokalized constructs these objects;
application code should normally only inspect them. A warning never aborts loading on its own - the configured
handler decides what to do (log it, ignore it, collect it, or throw to fail the load).
- Since:
- 3.0.0
- Author:
- Mark Allen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe kind of problem aLocalizedStringWarningrepresents. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetKey()Gets the translation key that triggered the warning, when applicable.Gets the locale the file was being loaded for, when the warning applies to a parsed localized strings file.Gets a human-readable description of the warning.Gets the missing language-form names, in localized strings file format (e.g.Gets the placeholder within the key that triggered the warning, when applicable.Gets the file path or URL that was being loaded.getType()Gets the kind of problem this warning represents.inthashCode()toString()
-
Method Details
-
getType
Gets the kind of problem this warning represents.- Returns:
- the warning type, not null
-
getSource
-
getLocale
-
getKey
-
getPlaceholder
Gets the placeholder within the key that triggered the warning, when applicable.- Returns:
- the placeholder, if applicable, not null
-
getMissingLanguageForms
Gets the missing language-form names, in localized strings file format (e.g.CARDINALITY_MANY).- Returns:
- the missing language-form names, not null
-
getMessage
Gets a human-readable description of the warning.- Returns:
- the message, not null
-
toString
-
equals
-
hashCode
-