Package org.xbill.DNS.dnssec
Class R
java.lang.Object
org.xbill.DNS.dnssec.R
Utility class to retrieve messages from
ResourceBundles.- Since:
- 3.5
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringGets a translated message.static voidsetBundle(ResourceBundle resourceBundle) Programmatically set the ResourceBundle to be used.static voidsetUseNeutralMessages(boolean useNeutral) If set totrue, messages will not be obtained from resource bundles but formatted askey:param1:...:paramN.
-
Method Details
-
setBundle
Programmatically set the ResourceBundle to be used.- Parameters:
resourceBundle- the bundle to be used.
-
setUseNeutralMessages
public static void setUseNeutralMessages(boolean useNeutral) If set totrue, messages will not be obtained from resource bundles but formatted askey:param1:...:paramN.- Parameters:
useNeutral-trueto use neutral messages,falseotherwise
-
get
Gets a translated message.- Parameters:
key- The message key to retrieve.values- The values that fill placeholders in the message.- Returns:
- The formatted message.
-