Skip navigation links
A C D E F G I L M O P S T Y 

A

args(Object) - Method in interface yakworks.i18n.MsgKey
 

C

code(String) - Method in interface yakworks.i18n.MsgKey
 

D

DefaultMsgContext - Class in yakworks.i18n
Context and Holder for arguments so its easier to keep compatibility between named map based palceholders like icu4j and ordinal array based placeholder like like spring and java.text.messageFormat
DefaultMsgContext() - Constructor for class yakworks.i18n.DefaultMsgContext
 
DefaultMsgKey - Class in yakworks.i18n
Default implementation of the MsgKey, normally should be build with MsgKey.of('somekey',....), not directly with this class
DefaultMsgKey() - Constructor for class yakworks.i18n.DefaultMsgKey
 
DefaultMsgKey(String) - Constructor for class yakworks.i18n.DefaultMsgKey
 

E

empty() - Static method in interface yakworks.i18n.MsgContext
 

F

fallbackMessage(String) - Method in interface yakworks.i18n.MsgKey
 
formatWith(Format) - Method in interface yakworks.i18n.MsgKey
calls format on the passed in messageFormat.

G

getArgMap() - Method in interface yakworks.i18n.MsgKey
if args is null or empty then this initializes it to a map for names args should check that return map as null means it didnt succeed
getArgs() - Method in class yakworks.i18n.DefaultMsgContext
 
getArgs() - Method in class yakworks.i18n.DefaultMsgKey
 
getArgs() - Method in interface yakworks.i18n.MsgKey
Return the Map of arguments to be used to resolve this message as ICU.
getArgsMap() - Method in interface yakworks.i18n.MsgKey
get the args as a Map, returns null if they are a list and not a map
getCode() - Method in class yakworks.i18n.DefaultMsgContext
 
getCode() - Method in class yakworks.i18n.DefaultMsgKey
 
getCode() - Method in interface yakworks.i18n.MsgKey
 
getFallbackMessage() - Method in class yakworks.i18n.DefaultMsgContext
If one is set then return it, if not it looks at args and if its a map then returns the defaultMessage key if it exists
getFallbackMessage() - Method in class yakworks.i18n.DefaultMsgKey
If one is set then return it, if not it looks at args and if its a map then returns the defaultMessage key if it exists
getFallbackMessage() - Method in interface yakworks.i18n.MsgKey
fallbackMessage is the same as defaultMessage for example in spring.
getFallbackMessage(String, Object) - Static method in interface yakworks.i18n.MsgKey
 
getLocale() - Method in class yakworks.i18n.DefaultMsgContext
 
getLocale() - Method in interface yakworks.i18n.MsgContext
 
getMessage(String) - Method in interface yakworks.i18n.MsgService
 
getMessage(MsgKey) - Method in interface yakworks.i18n.MsgService
 
getMessage(MsgKey, Locale) - Method in interface yakworks.i18n.MsgService
 
getMessage(String, Object, String) - Method in interface yakworks.i18n.MsgService
 
getMessage(String, Object) - Method in interface yakworks.i18n.MsgService
 
getMessage(String, MsgContext) - Method in interface yakworks.i18n.MsgService
This is the primary getMessage that the rest flow through.

I

interpolate(String, MsgContext) - Method in interface yakworks.i18n.MsgService
Process the string template through whatever i18n engine your are using.
isArray(Object) - Static method in interface yakworks.i18n.MsgKey
 
isEmpty() - Method in interface yakworks.i18n.MsgKey
 
isEmpty(Object) - Static method in interface yakworks.i18n.MsgKey
 
isFirstItemMap(Object...) - Static method in interface yakworks.i18n.MsgKey
Checks if args is Array or List and if the first item is a map, if so then it should use that map for the args and ignores the rest.

L

locale(Locale) - Method in class yakworks.i18n.DefaultMsgContext
 
locale(Locale) - Method in interface yakworks.i18n.MsgContext
 

M

MsgContext<E> - Interface in yakworks.i18n
Context and Holder for arguments so its easier to keep compatibility between named map based palceholders like icu4j and ordinal array based placeholder like like spring and java.text.messageFormat
MsgKey<E> - Interface in yakworks.i18n
ICUMsgKey contains the lookup code for the message and the argument map for name substitutions.
MsgService - Interface in yakworks.i18n
Similiar to org.springframework.context.MessageSource but no dependencies so can be used across spring, micronaut and grails

O

of(Object) - Static method in interface yakworks.i18n.MsgContext
 
of(MsgKey) - Static method in interface yakworks.i18n.MsgContext
 
of(String) - Static method in interface yakworks.i18n.MsgKey
Make key form code
of(String, Object) - Static method in interface yakworks.i18n.MsgKey
key from code and map args

P

putArg(Object, Object) - Method in interface yakworks.i18n.MsgKey
adds an arg to the map, see getArgMap, will set one up

S

setArgs(Object) - Method in class yakworks.i18n.DefaultMsgContext
 
setArgs(Object) - Method in class yakworks.i18n.DefaultMsgKey
 
setArgs(Object) - Method in interface yakworks.i18n.MsgKey
 
setCode(String) - Method in class yakworks.i18n.DefaultMsgContext
 
setCode(String) - Method in class yakworks.i18n.DefaultMsgKey
 
setCode(String) - Method in interface yakworks.i18n.MsgKey
 
setFallbackMessage(String) - Method in class yakworks.i18n.DefaultMsgContext
 
setFallbackMessage(String) - Method in class yakworks.i18n.DefaultMsgKey
 
setFallbackMessage(String) - Method in interface yakworks.i18n.MsgKey
 

T

toArray() - Method in interface yakworks.i18n.MsgKey
converts the args list to array
transform(Function) - Method in interface yakworks.i18n.MsgContext
transforms the arguments with the transformation Function and returns a new MsgContext.
transformList(Function) - Method in interface yakworks.i18n.MsgContext
 
transformMap(Function) - Method in interface yakworks.i18n.MsgContext
 

Y

yakworks.i18n - package yakworks.i18n
 
A C D E F G I L M O P S T Y 
Skip navigation links