Package org.daisy.dotify.api.formatter
Class TextProperties
- java.lang.Object
-
- org.daisy.dotify.api.formatter.TextProperties
-
public class TextProperties extends Object
Defines properties for a chunk of text.
A note to developers of this API: These properties must not have any meaning or effect beyond rendering of the text to which the properties belong. In an XML-context, these properties are typically inherited from higher levels down to all text nodes. Therefore, properties that cannot be inherited or do not pertain to the text itself, should be added elsewhere.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TextProperties.Builder
Provides a builder for creating text properties instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getLocale()
Gets the locale of this text propertiesString
getTranslationMode()
Gets the translation modeint
hashCode()
boolean
isHyphenating()
Returns true if the hyphenating property is true, false otherwise
-
-
-
Method Detail
-
getLocale
public String getLocale()
Gets the locale of this text properties- Returns:
- returns the locale
-
getTranslationMode
public String getTranslationMode()
Gets the translation mode- Returns:
- the translation mode
-
isHyphenating
public boolean isHyphenating()
Returns true if the hyphenating property is true, false otherwise- Returns:
- returns true if the hyphenating property is true
-
-