public class Translatable extends Object
Provides a specification for a text to translate. The text to translate is a simple string, optionally with style attributes associated with all and/or part of the text.
This class has the following characteristics:
TranslatableWithContext
Modifier and Type | Class and Description |
---|---|
static class |
Translatable.Builder
Provides a builder for translatable objects
|
Modifier and Type | Method and Description |
---|---|
TextAttribute |
getAttributes()
Gets the text attributes for the text
|
String |
getLocale()
Gets the locale for the text
|
String |
getText()
Gets the text
|
Boolean |
isHyphenating()
Returns true if the text should be hyphenated.
|
boolean |
shouldMarkCapitalLetters()
Returns true if the text should mark capital letters.
|
static Translatable.Builder |
text(String text)
Creates a new Translatable.Builder with the specified text.
|
public static Translatable.Builder text(String text)
text
- the text to translatepublic String getText()
public String getLocale()
public TextAttribute getAttributes()
public Boolean isHyphenating()
public boolean shouldMarkCapitalLetters()