Package org.daisy.dotify.api.translator
Class Translatable.Builder
- java.lang.Object
-
- org.daisy.dotify.api.translator.Translatable.Builder
-
- Enclosing class:
- Translatable
public static class Translatable.Builder extends Object
Provides a builder for translatable objects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Translatable.Builder
attributes(TextAttribute value)
Sets the text attributes for this builder.Translatable
build()
Builds a new Translatable object using the current status of this builder.Translatable.Builder
hyphenate(boolean value)
Sets the hyphenate property for this builder.Translatable.Builder
locale(String value)
Sets the locale for this builder.Translatable.Builder
markCapitalLetters(boolean value)
Sets the capital letters property for this builder.
-
-
-
Method Detail
-
locale
public Translatable.Builder locale(String value)
Sets the locale for this builder.- Parameters:
value
- the locale- Returns:
- returns this object
-
attributes
public Translatable.Builder attributes(TextAttribute value)
Sets the text attributes for this builder.- Parameters:
value
- the text attributes- Returns:
- returns this object
-
hyphenate
public Translatable.Builder hyphenate(boolean value)
Sets the hyphenate property for this builder.- Parameters:
value
- the hyphenate policy- Returns:
- returns this object
-
markCapitalLetters
public Translatable.Builder markCapitalLetters(boolean value)
Sets the capital letters property for this builder.- Parameters:
value
- the capital letters policy- Returns:
- this object
-
build
public Translatable build()
Builds a new Translatable object using the current status of this builder.- Returns:
- returns a Translatable instance
-
-