Package io.jmix.reports.impl.builder
Class AnnotatedBuilderUtils
java.lang.Object
io.jmix.reports.impl.builder.AnnotatedBuilderUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractMessageKey(String reference, Class<?> declarationOwner) Extract message key from the message reference.protected StringgetPackage(Class<?> ownerClass)
-
Constructor Details
-
AnnotatedBuilderUtils
public AnnotatedBuilderUtils()
-
-
Method Details
-
extractMessageKey
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 from
defaultGroup - with explicitly specified group: msg://group/key
- without a group, starting with msg:///
- Parameters:
reference- message reference in one of 3 formatsdeclarationOwner- class defining default group for the message - which is its package name- Returns:
- message key ready to be passed to
Messages.getMessage(String)
- with implicit group - starting with msg://, group must be taken from
-
getPackage
-