public final class ManagedObjectDefinitionI18nResource extends Object
I18N resource properties are not available for the TopCfgDefn
.
Modifier and Type | Method and Description |
---|---|
static ManagedObjectDefinitionI18nResource |
getInstance()
Gets the internationalized resource instance which can be used to
retrieve the localized descriptions for the managed objects and their
associated properties and relations.
|
static ManagedObjectDefinitionI18nResource |
getInstanceForProfile(String profile)
Gets the internationalized resource instance for the named profile.
|
LocalizableMessage |
getMessage(AbstractManagedObjectDefinition<?,?> d,
String key)
Get the internationalized message associated with the specified key in
the default locale.
|
LocalizableMessage |
getMessage(AbstractManagedObjectDefinition<?,?> d,
String key,
Locale locale)
Get the internationalized message associated with the specified key and
locale.
|
LocalizableMessage |
getMessage(AbstractManagedObjectDefinition<?,?> d,
String key,
Locale locale,
String... args)
Get the parameterized internationalized message associated with the
specified key and locale.
|
LocalizableMessage |
getMessage(AbstractManagedObjectDefinition<?,?> d,
String key,
String... args)
Get the parameterized internationalized message associated with the
specified key in the default locale.
|
public static ManagedObjectDefinitionI18nResource getInstance()
public static ManagedObjectDefinitionI18nResource getInstanceForProfile(String profile)
profile
- The name of the profile.public LocalizableMessage getMessage(AbstractManagedObjectDefinition<?,?> d, String key)
d
- The managed object definition.key
- The resource key.MissingResourceException
- If the key was not found.UnsupportedOperationException
- If the provided managed object definition was the
TopCfgDefn
.public LocalizableMessage getMessage(AbstractManagedObjectDefinition<?,?> d, String key, Locale locale)
d
- The managed object definition.key
- The resource key.locale
- The locale.MissingResourceException
- If the key was not found.UnsupportedOperationException
- If the provided managed object definition was the
TopCfgDefn
.public LocalizableMessage getMessage(AbstractManagedObjectDefinition<?,?> d, String key, Locale locale, String... args)
d
- The managed object definition.key
- The resource key.locale
- The locale.args
- Arguments that should be inserted into the retrieved message.MissingResourceException
- If the key was not found.UnsupportedOperationException
- If the provided managed object definition was the
TopCfgDefn
.public LocalizableMessage getMessage(AbstractManagedObjectDefinition<?,?> d, String key, String... args)
d
- The managed object definition.key
- The resource key.args
- Arguments that should be inserted into the retrieved message.MissingResourceException
- If the key was not found.UnsupportedOperationException
- If the provided managed object definition was the
TopCfgDefn
.Copyright 2010-2022 ForgeRock AS.