| | |
| | | */ |
| | | |
| | | package org.opends.server.admin; |
| | | import org.opends.messages.Message; |
| | | |
| | | |
| | | |
| | |
| | | * in the default locale, or <code>null</code> if there is |
| | | * no description. |
| | | */ |
| | | public final String getDescription() { |
| | | public final Message getDescription() { |
| | | return getDescription(Locale.getDefault()); |
| | | } |
| | | |
| | |
| | | * in the specified locale, or <code>null</code> if there |
| | | * is no description. |
| | | */ |
| | | public final String getDescription(Locale locale) { |
| | | public final Message getDescription(Locale locale) { |
| | | try { |
| | | return ManagedObjectDefinitionI18NResource.getInstance() |
| | | .getMessage(this, "description", locale); |
| | |
| | | * @return Returns the synopsis of this managed object definition in |
| | | * the default locale. |
| | | */ |
| | | public final String getSynopsis() { |
| | | public final Message getSynopsis() { |
| | | return getSynopsis(Locale.getDefault()); |
| | | } |
| | | |
| | |
| | | * @return Returns the synopsis of this managed object definition in |
| | | * the specified locale. |
| | | */ |
| | | public final String getSynopsis(Locale locale) { |
| | | public final Message getSynopsis(Locale locale) { |
| | | return ManagedObjectDefinitionI18NResource.getInstance() |
| | | .getMessage(this, "synopsis", locale); |
| | | } |
| | |
| | | * @return Returns the user friendly name of this managed object |
| | | * definition in the default locale. |
| | | */ |
| | | public final String getUserFriendlyName() { |
| | | public final Message getUserFriendlyName() { |
| | | return getUserFriendlyName(Locale.getDefault()); |
| | | } |
| | | |
| | |
| | | * @return Returns the user friendly name of this managed object |
| | | * definition in the specified locale. |
| | | */ |
| | | public final String getUserFriendlyName(Locale locale) { |
| | | return ManagedObjectDefinitionI18NResource.getInstance() |
| | | .getMessage(this, "user-friendly-name", locale); |
| | | public final Message getUserFriendlyName(Locale locale) { |
| | | // TODO: have admin framework getMessage return a Message |
| | | return Message.raw(ManagedObjectDefinitionI18NResource.getInstance() |
| | | .getMessage(this, "user-friendly-name", locale)); |
| | | } |
| | | |
| | | |
| | |
| | | * @return Returns the user friendly plural name of this managed |
| | | * object definition in the default locale. |
| | | */ |
| | | public final String getUserFriendlyPluralName() { |
| | | public final Message getUserFriendlyPluralName() { |
| | | return getUserFriendlyPluralName(Locale.getDefault()); |
| | | } |
| | | |
| | |
| | | * @return Returns the user friendly plural name of this managed |
| | | * object definition in the specified locale. |
| | | */ |
| | | public final String getUserFriendlyPluralName(Locale locale) { |
| | | public final Message getUserFriendlyPluralName(Locale locale) { |
| | | return ManagedObjectDefinitionI18NResource.getInstance() |
| | | .getMessage(this, "user-friendly-plural-name", locale); |
| | | } |