Resolves macros in the form of %(key) or ${key} in an input String.
Starting with OpenCms 7.0, the preferred form of a macro is %(key). This is to
avoid conflicts / confusion with the JSP EL, which also uses the ${key} syntax.
The macro names that can be resolved depend of the context objects provided to the resolver
using the set... methods.
author: Alexander Kandzior author: Thomas Weckert version: $Revision: 1.26 $ since: 6.0.0
Returns true if the given input String is a macro equal to the given macro name.
Parameters: input - the input to check for a macro Parameters: macroName - the macro name to check for true if the given input String is a macro equal to the given macro name
Returns a macro for the given localization key with the given parameters.
Parameters: keyName - the name of the localized key Parameters: params - the optional parameter array a macro for the given localization key with the given parameters
If a macro is found that can not be mapped to a value by the given macro resolver,
it is left untouched in the input.
Parameters: input - the input in which to resolve the macros Parameters: cms - the OpenCms user context to use when resolving macros Parameters: messages - the message resource bundle to use when resolving macros the input with the macros resolved
If a macro is found that can not be mapped to a value by the given macro resolver,
I_CmsMacroResolver.isKeepEmptyMacros controls if the macro is replaced by
an empty String, or is left untouched in the input.
Parameters: input - the input in which to resolve the macros Parameters: resolver - the macro resolver to use the input with all macros resolved
Calls CmsMacroResolver.resolveMacros(String) until no more macros can
be resolved in the input. This way "nested" macros in the input are resolved as well.
Provides a set of additional macros to this macro resolver.
Macros added with
CmsMacroResolver.addMacro(String,String) are added to the same set
Parameters: additionalMacros - the additional macros to add this instance of the macro resolver