Class

org.beangle.commons.i18n

HierarchicalTextResource

Related Doc: package i18n

Permalink

class HierarchicalTextResource extends DefaultTextResource

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HierarchicalTextResource
  2. DefaultTextResource
  3. TextResource
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HierarchicalTextResource(clazz: Class[_], locale: Locale, registry: TextBundleRegistry, formater: TextFormater)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(key: String): Option[String]

    Permalink

    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.

    key

    the resource bundle key that is to be searched for

    returns

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

    Definition Classes
    DefaultTextResourceTextResource
  5. def apply(key: String, defaultValue: String, args: Any*): String

    Permalink

    getText.

    getText.

    key

    the resource bundle key that is to be searched for

    defaultValue

    the default value which will be returned if no message is found

    returns

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

    Definition Classes
    DefaultTextResourceTextResource
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def findMessage(clazz: Class[_], key: String, checked: Set[String]): String

    Permalink

    • Look for message in aClass' class hierarchy.
    • Look for the message in a resource bundle for aClass
    • If not found, look for the message in a resource bundle for any implemented interface
    • If not found, traverse up the Class' hierarchy and repeat from the first sub-step
    Attributes
    protected
  12. final def findPackageMessage(className: String, key: String, checkedSet: Set[String]): String

    Permalink
    Attributes
    protected
  13. val formater: TextFormater

    Permalink
    Attributes
    protected
    Definition Classes
    DefaultTextResource
  14. def get(key: String): Option[String]

    Permalink
    Attributes
    protected
    Definition Classes
    HierarchicalTextResourceDefaultTextResource
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def getClassMessage(className: String, key: String): String

    Permalink

    Gets the message from the named resource bundle.

    Gets the message from the named resource bundle.

    Attributes
    protected
  17. final def getPackageMessage(packageName: String, key: String): String

    Permalink

    Gets the message from the named resource bundle.

    Gets the message from the named resource bundle.

    Attributes
    protected
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def isKeyAsDefault(): Boolean

    Permalink
    Definition Classes
    DefaultTextResource
  21. var keyAsDefault: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    DefaultTextResource
  22. val locale: Locale

    Permalink

    returns

    locale

    Definition Classes
    DefaultTextResourceTextResource
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. val registry: TextBundleRegistry

    Permalink
    Attributes
    protected
    Definition Classes
    DefaultTextResource
  27. def setKeyAsDefault(keyAsDefault: Boolean): Unit

    Permalink
    Definition Classes
    DefaultTextResource
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DefaultTextResource

Inherited from TextResource

Inherited from AnyRef

Inherited from Any

Ungrouped