Skip navigation links
A D E F G I L M O P S T U W 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
 
DefaultMsgMultiKey - Class in yakworks.i18n
Default implementation of the MsgKey, normally should be build with MsgKey.of('somekey',....), not directly with this class
DefaultMsgMultiKey() - Constructor for class yakworks.i18n.DefaultMsgMultiKey
 
DefaultMsgMultiKey(List<String>) - Constructor for class yakworks.i18n.DefaultMsgMultiKey
 
DefaultMsgMultiKey(MsgKey) - Constructor for class yakworks.i18n.DefaultMsgMultiKey
 

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
 

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
 
get(String, MsgContext) - Method in interface yakworks.i18n.MsgService
shorter alias to getMessage
get(String) - Method in interface yakworks.i18n.MsgService
gets the message using a MsgKey, will make a context using the args and fallback in the msgKey.
get(MsgKey) - Method in interface yakworks.i18n.MsgService
gets the message using a MsgKey, will make a context using the args and fallback in the msgKey.
get(MsgContext) - Method in interface yakworks.i18n.MsgService
gets the message using MsgContext, which contains args and locale as well
get(String, Object, String) - Method in interface yakworks.i18n.MsgService
 
get(String, Object) - Method in interface yakworks.i18n.MsgService
 
get(MsgMultiKey) - Method in interface yakworks.i18n.MsgService
Get first found message for multiKey
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
 
getArgs() - Method in interface yakworks.i18n.MsgMultiKey
 
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
 
getCode() - Method in interface yakworks.i18n.MsgMultiKey
 
getCodes() - Method in class yakworks.i18n.DefaultMsgMultiKey
 
getCodes() - Method in interface yakworks.i18n.MsgMultiKey
 
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.
getFallbackMessage() - Method in interface yakworks.i18n.MsgMultiKey
 
getLocale() - Method in class yakworks.i18n.DefaultMsgContext
 
getLocale() - Method in interface yakworks.i18n.MsgContext
 
getMessage(String, MsgContext) - Method in interface yakworks.i18n.MsgService
This is the Main/primary getMessage method that needs to be implements and that the rest flow through.
getMsg() - Method in interface yakworks.i18n.MsgKeyDecorator
the MsgKey
getMsgKey() - Method in class yakworks.i18n.DefaultMsgMultiKey
 
getMsgKey() - Method in interface yakworks.i18n.MsgMultiKey
the wrapped MsgKey

I

interpolate(String, MsgContext) - Method in interface yakworks.i18n.MsgService
Process the string template through the prefered i18n engine..
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
 
isUseCodeAsDefaultMessage() - Method in class yakworks.i18n.DefaultMsgContext
 
isUseCodeAsDefaultMessage() - Method in interface yakworks.i18n.MsgContext
 

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
MsgKey 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
MsgMultiKey - Interface in yakworks.i18n
MsgKey that has multiple codes to lookup.
MsgService - Interface in yakworks.i18n
Similiar to org.springframework.context.MessageSource but no dependencies so can be used outside spring, micronaut and grails without needing to depend on any framework

O

of(Object) - Static method in class yakworks.i18n.MsgArgs
 
of(Locale) - Static method in interface yakworks.i18n.MsgContext
 
of(Object) - Static method in interface yakworks.i18n.MsgContext
 
of(MsgKey) - Static method in interface yakworks.i18n.MsgContext
makes context using the args and fallback message from msgKey.
of(String, Object) - Static method in interface yakworks.i18n.MsgKey
key from code and map args
of(MsgKey) - Static method in interface yakworks.i18n.MsgMultiKey
key from code and msgKey
ofCode(String) - Static method in interface yakworks.i18n.MsgKey
Make key form code
ofCodes(List<String>) - Static method in interface yakworks.i18n.MsgMultiKey
 

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
 
setArgs(MsgArgs) - Method in interface yakworks.i18n.MsgMultiKey
 
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
 
setCode(String) - Method in interface yakworks.i18n.MsgMultiKey
 
setCodes(List<String>) - Method in class yakworks.i18n.DefaultMsgMultiKey
 
setCodes(List<String>) - Method in interface yakworks.i18n.MsgMultiKey
 
setFallbackMessage(String) - Method in class yakworks.i18n.DefaultMsgContext
 
setFallbackMessage(String) - Method in class yakworks.i18n.DefaultMsgKey
 
setFallbackMessage(String) - Method in interface yakworks.i18n.MsgKey
 
setFallbackMessage(String) - Method in interface yakworks.i18n.MsgMultiKey
 
setMsg(MsgKey) - Method in interface yakworks.i18n.MsgKeyDecorator
 
setMsgKey(MsgKey) - Method in class yakworks.i18n.DefaultMsgMultiKey
 
setMsgKey(MsgKey) - Method in interface yakworks.i18n.MsgMultiKey
 

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
 

U

useCodeAsDefaultMessage(boolean) - Method in class yakworks.i18n.DefaultMsgContext
 

W

withFallback(String) - Static method in interface yakworks.i18n.MsgContext
 

Y

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