Package io.jmix.core

Interface MessageResolver

All Known Implementing Classes:
DynamicMessageResolver, DynAttrMessageResolver

@NullMarked public interface MessageResolver
Interface to provide a caption of property, for example if the property is a dynamic attribute.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
    getPropertyCaption(MetaProperty property, @Nullable Locale locale)
    Returns localized caption of an entity property
  • Method Details

    • getPropertyCaption

      @Nullable String getPropertyCaption(MetaProperty property, @Nullable Locale locale)
      Returns localized caption of an entity property
      Parameters:
      property - meta property
      locale - locale, if value is null locale of current user is used
      Returns:
      localized property caption