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

A

args(Object) - Method in class yakworks.i18n.DefaultMsgContext
 
args(MsgArgs) - Method in class yakworks.i18n.DefaultMsgContext
 
args(Object) - Method in class yakworks.i18n.DefaultMsgKey
 
args(MsgArgs) - Method in class yakworks.i18n.DefaultMsgKey
 
args(Object) - Method in class yakworks.i18n.MsgArgs
 
asMap() - Method in class yakworks.i18n.MsgArgs
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

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 class yakworks.i18n.MsgArgs
gets an instance initialzed with and empty map
empty() - Static method in interface yakworks.i18n.MsgContext
 
empty() - Static method in interface yakworks.i18n.MsgKey
Make key form code

F

fallbackMessage(String) - Method in class yakworks.i18n.DefaultMsgKey
 
formatWith(Format) - Method in class yakworks.i18n.MsgArgs
calls messageFormat.format on the passed in messageFormat.

G

get() - Method in class yakworks.i18n.MsgArgs
 
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.
getArgs() - Method in interface yakworks.i18n.MsgKeyDecorator
 
getCode() - Method in class yakworks.i18n.DefaultMsgContext
 
getCode() - Method in class yakworks.i18n.DefaultMsgKey
 
getCode() - Method in interface yakworks.i18n.MsgKey
 
getCode() - Method in interface yakworks.i18n.MsgKeyDecorator
 
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 class yakworks.i18n.MsgArgs
static helper to lookup the fallback in the args if its a map
getFallbackMessage() - Method in interface yakworks.i18n.MsgKey
fallbackMessage is the same as defaultMessage for example in spring.
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.
getMsg() - Method in interface yakworks.i18n.MsgKeyDecorator
the MsgKey

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 class yakworks.i18n.MsgArgs
 
isEmpty() - Method in class yakworks.i18n.MsgArgs
 
isEmpty(Object) - Static method in class yakworks.i18n.MsgArgs
 
isFirstItemMap(Object...) - Static method in class yakworks.i18n.MsgArgs
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.
isMap() - Method in class yakworks.i18n.MsgArgs
 
isPresent() - Method in class yakworks.i18n.MsgArgs
 

L

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

M

MsgArgs - Class in yakworks.i18n
An arg wrapper that allows the args to be an array, List or Map
MsgArgs() - Constructor for class yakworks.i18n.MsgArgs
 
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 - Interface in yakworks.i18n
ICUMsgKey contains the lookup code for the message and the argument map for name substitutions.
MsgKeyDecorator - Interface in yakworks.i18n
add to a class that has a MsgKey reference as field msg
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 class yakworks.i18n.MsgArgs
 
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

put(Object, Object) - Method in class yakworks.i18n.MsgArgs
adds an arg to the map, see getArgMap, will set one up
putIfAbsent(Object, Object) - Method in class yakworks.i18n.MsgArgs
adds an enrty to the msg arg if its a map returns the map or null if its list/array based args

S

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

T

toArray() - Method in class yakworks.i18n.MsgArgs
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 D E F G I L M O P S T Y 
Skip navigation links