Package org.opencms.jsp.util
Interface I_CmsFormatterInfo
- All Superinterfaces:
I_CmsInfoWrapper
- All Known Implementing Classes:
CmsFormatterInfoWrapper
,CmsResourceTypeInfoWrapper
Common interface for accessing formatter / resource type infos in JSPs.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Mode which controls whether / how localized strings should be resolved. -
Method Summary
Modifier and TypeMethodDescriptionGets the description in the given locale.boolean
Checks if this is active.boolean
Checks if this wraps a (non-function) formatter.boolean
Checks if this wraps a dynamic function.boolean
Checks if this wraps a resource type.getName()
Gets the name.Gets the nice name for the current locale.Gets the localization key for the nice name, if one was used, or null otherwise.Gets the raw nice name, without resolving any macros.Gets the nice name in the given locale.Methods inherited from interface org.opencms.jsp.util.I_CmsInfoWrapper
getDescription, getDescriptionKey, getDescriptionRaw
-
Method Details
-
description
Gets the description in the given locale.- Parameters:
l
- the locale to use- Returns:
- the description
-
getIsActive
boolean getIsActive()Checks if this is active.- Returns:
- true if this is active
-
getIsFormatter
boolean getIsFormatter()Checks if this wraps a (non-function) formatter.- Returns:
- true if this wraps a normal formatter
-
getIsFunction
boolean getIsFunction()Checks if this wraps a dynamic function.- Returns:
- true if this wraps a dynamic function
-
getIsResourceType
boolean getIsResourceType()Checks if this wraps a resource type.- Returns:
- true if this is a resource type
-
getName
Gets the name.- Returns:
- the name
-
getNiceName
Gets the nice name for the current locale.- Returns:
- the nice name for the current locale
-
getNiceNameKey
Gets the localization key for the nice name, if one was used, or null otherwise.- Returns:
- the localization key
-
getNiceNameRaw
Gets the raw nice name, without resolving any macros.- Returns:
- the raw nice name
-
niceName
Gets the nice name in the given locale.- Parameters:
l
- the locale to use- Returns:
- the nice name for the locale
-