Package org.daisy.dotify.api.formatter
Class TextProperties.Builder
- java.lang.Object
-
- org.daisy.dotify.api.formatter.TextProperties.Builder
-
- Enclosing class:
- TextProperties
public static class TextProperties.Builder extends Object
Provides a builder for creating text properties instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextProperties
build()
Builds a new TextProperties object using the current status of this builder.TextProperties.Builder
hyphenate(boolean value)
Sets the hyphenate value for this builderTextProperties.Builder
translationMode(String mode)
Sets the translation mode for the builder
-
-
-
Constructor Detail
-
Builder
public Builder(String locale)
Creates a new builder with the specified locale- Parameters:
locale
- the locale for the builder
-
-
Method Detail
-
hyphenate
public TextProperties.Builder hyphenate(boolean value)
Sets the hyphenate value for this builder- Parameters:
value
- the value- Returns:
- returns this object
-
translationMode
public TextProperties.Builder translationMode(String mode)
Sets the translation mode for the builder- Parameters:
mode
- the translation mode- Returns:
- returns this object
-
build
public TextProperties build()
Builds a new TextProperties object using the current status of this builder.- Returns:
- returns a TextProperties instance
-
-