DefaultTextResource

org.beangle.commons.text.i18n.DefaultTextResource
class DefaultTextResource(val locale: Locale, val registry: TextBundleRegistry, val formater: TextFormater) extends TextResource

Abstract BundleTextResource class.

Attributes

Graph
Supertypes
trait TextResource
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

def apply(key: String, defaultValue: String, args: Any*): String

getText.

getText.

Attributes

def apply(key: String): Option[String]

Gets a message based on a message key, or null if no message is found.

Gets a message based on a message key, or null if no message is found.

Value parameters

key

the resource bundle key that is to be searched for

Attributes

Returns

the message as found in the resource bundle, or null if none is found.

protected def get(key: String): Option[String]
def isKeyAsDefault(): Boolean
def setKeyAsDefault(keyAsDefault: Boolean): Unit

Concrete fields

protected val formater: TextFormater
protected var keyAsDefault: Boolean
val locale: Locale

Attributes

Returns

locale

protected val registry: TextBundleRegistry