java.lang.Object
de.codecamp.messages.MessageKeyUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the message key for the given type.static StringReturns the message key for the given type and local part.static StringReturns the message key for the given type and local part.static StringReturns the message key for the given enum constant.static StringReturns the message key for the given prefix and local part.static StringReturns the message key for the given prefix and local part.
-
Method Details
-
getKeyFor
Returns the message key for the given type.- Parameters:
type- the type- Returns:
- the message key
-
getKeyFor
Returns the message key for the given enum constant.- Parameters:
enumConstant- the enum constant- Returns:
- the message key
-
getKeyFor
Returns the message key for the given type and local part.- Parameters:
type- the type containing the message keylocalPart- the local part of the message key- Returns:
- the message key
-
getKeyFor
Returns the message key for the given type and local part.- Parameters:
type- the type containing the message keylocalPartPrefix- the local part prefix of the message keylocalPart- the local part of the message key- Returns:
- the message key
-
getKeyFor
Returns the message key for the given prefix and local part.- Parameters:
prefix- the prefix of the message key (e.g. the fully qualified name of the type containing the message key)localPart- the local part of the message key- Returns:
- the message key
-
getKeyFor
Returns the message key for the given prefix and local part.- Parameters:
prefix- the prefix of the message key (e.g. the fully qualified name of the type containing the message key)localPartPrefix- the local part prefix of the message keylocalPart- the local part of the message key- Returns:
- the message key
-