Class Messages
java.lang.Object
org.tigris.subversion.svnclientadapter.utils.Messages
A helper class used for binding NLS supported message strings
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Gets a string from the resource bundle.static String
Gets a string from the resource bundle and binds it with the given arguments.static String
Lookup the message with the given ID in this catalog and bind its substitution locations with the given string.static String
Lookup the message with the given ID in this catalog and bind its substitution locations with the given strings.
-
Field Details
-
bundle
-
-
Constructor Details
-
Messages
public Messages()
-
-
Method Details
-
bind
Lookup the message with the given ID in this catalog and bind its substitution locations with the given string.- Parameters:
id
-binding
-- Returns:
- the message with substitutions applied
-
bind
Lookup the message with the given ID in this catalog and bind its substitution locations with the given strings.- Parameters:
id
-binding1
-binding2
-- Returns:
- the message with substitutions applied
-
bind
Gets a string from the resource bundle. We don't want to crash because of a missing String.- Parameters:
key
-- Returns:
- string from the resource bundle or the key if not found.
-
bind
Gets a string from the resource bundle and binds it with the given arguments. If the key is not found, return the key.- Parameters:
key
-args
-- Returns:
- string with substitutions from the resource bundle or the key if not found.
-