Package me.datafox.dfxengine.text.api
Interface Text
- All Known Implementing Classes:
AbstractText,ChainedText,ConfigurationText,NameText,NumberText,NumeralText,StaticText,ValueText
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A
String generation interface. get(TextFactory, TextConfiguration) should use the provided
TextConfiguration and not TextFactory.getConfiguration(). The reference to TextFactory is
provided for access to objects like Names and NumberFormatters.-
Method Summary
Modifier and TypeMethodDescriptionget(TextFactory factory, TextConfiguration configuration) Implementation should use the providedTextConfigurationand notTextFactory.getConfiguration().
-
Method Details
-
get
Implementation should use the providedTextConfigurationand notTextFactory.getConfiguration(). The reference toTextFactoryis provided for access to objects likeNamesandNumberFormatters.- Parameters:
factory-TextFactoryfor generationconfiguration-TextConfigurationfor generation- Returns:
- generated
String - Throws:
TextConfigurationException- if theTextConfigurationis not valid for this text
-