Class AnnotatedBuilderUtils

java.lang.Object
io.jmix.reports.impl.builder.AnnotatedBuilderUtils

@Component("reports_AnnotatedBuilderUtils") public class AnnotatedBuilderUtils extends Object
  • Constructor Details

    • AnnotatedBuilderUtils

      public AnnotatedBuilderUtils()
  • Method Details

    • extractMessageKey

      public String extractMessageKey(String reference, Class<?> declarationOwner)
      Extract message key from the message reference. Reference can be in one of three formats, like in view descriptors:
      • with implicit group - starting with msg://, group must be taken fromdefaultGroup
      • with explicitly specified group: msg://group/key
      • without a group, starting with msg:///
      Parameters:
      reference - message reference in one of 3 formats
      declarationOwner - class defining default group for the message - which is its package name
      Returns:
      message key ready to be passed to Messages.getMessage(String)
    • getPackage

      protected String getPackage(Class<?> ownerClass)