Interface ResourceDescriptionResolver
- All Known Subinterfaces:
ParentResourceDescriptionResolver
- All Known Implementing Classes:
ChildResourceDescriptionResolver,DeprecatedResourceDescriptionResolver,NonResolvingResourceDescriptionResolver,StandardResourceDescriptionResolver,SubsystemResourceDescriptionResolver
public interface ResourceDescriptionResolver
Resolves localized text descriptions of resources and their components.
- Author:
- Brian Stansberry (c) 2011 Red Hat Inc.
-
Method Summary
Modifier and TypeMethodDescriptiongetChildTypeDescription(String childType, Locale locale, ResourceBundle bundle) Gets the description of one of the resource's child types.getNotificationDescription(String notificationType, Locale locale, ResourceBundle bundle) Gets the description of one of the resource's notification.getOperationDeprecatedDescription(String operationName, Locale locale, ResourceBundle bundle) Gets the description of one of the resource's operations.getOperationDescription(String operationName, Locale locale, ResourceBundle bundle) Gets the description of one of the resource's operations.getOperationParameterDeprecatedDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle) Gets the description of one of the resource's operation's parameters.getOperationParameterDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle) Gets the description of one of the resource's operation's parameters.getOperationParameterValueTypeDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle, String... suffixes) Gets the description of a portion of a complex value type of one of the resource's operation's parameters.getOperationReplyDescription(String operationName, Locale locale, ResourceBundle bundle) Gets the description of the reply value for one of the resource's operations, ornullif there is no description.getOperationReplyValueTypeDescription(String operationName, Locale locale, ResourceBundle bundle, String... suffixes) Gets the description of a portion of a complex value type of the reply value for one of the resource's operations, ornullif there is no description.getResourceAttributeDeprecatedDescription(String attributeName, Locale locale, ResourceBundle bundle) Gets the description of one of the resource's attributes.getResourceAttributeDescription(String attributeName, Locale locale, ResourceBundle bundle) Gets the description of one of the resource's attributes.getResourceAttributeValueTypeDescription(String attributeName, Locale locale, ResourceBundle bundle, String... suffixes) Gets the description of a portion of a complex value type of one of the resource's attributes.getResourceBundle(Locale locale) Returns aResourceBundlefor the givenLocale, ornullif this resolver is not based on resource bundles.getResourceDeprecatedDescription(Locale locale, ResourceBundle bundle) Gets the description of the resource.getResourceDescription(Locale locale, ResourceBundle bundle) Gets the description of the resource.
-
Method Details
-
getResourceBundle
Returns aResourceBundlefor the givenLocale, ornullif this resolver is not based on resource bundles.This method will be invoked at least once before a series of invocations of the other methods in this interface, and the returned bundle will be passed to those methods as a parameter. The intent is to cache a resource bundle on the stack during the execution of all the methods needed to describe a resource or operation.
- Parameters:
locale- the locale- Returns:
- the resource bundle, or
null
-
getResourceDescription
Gets the description of the resource.- Parameters:
locale- the localebundle- a resource bundle previously obtained from a call togetResourceBundle(java.util.Locale), ornullif that call returnednull- Returns:
- the localized description
-
getResourceAttributeDescription
Gets the description of one of the resource's attributes.- Parameters:
attributeName- the name of the attributelocale- the localebundle- a resource bundle previously obtained from a call togetResourceBundle(java.util.Locale), ornullif that call returnednull- Returns:
- the localized description
-
getResourceAttributeValueTypeDescription
String getResourceAttributeValueTypeDescription(String attributeName, Locale locale, ResourceBundle bundle, String... suffixes) Gets the description of a portion of a complex value type of one of the resource's attributes.- Parameters:
attributeName- the name of the attributelocale- the localebundle- a resource bundle previously obtained from a call togetResourceBundle(java.util.Locale), ornullif that call returnednullsuffixes- suffixes to dot-append to the base attribute key to generate a key- Returns:
- the localized description
-
getOperationDescription
Gets the description of one of the resource's operations.- Parameters:
operationName- the name of the operationlocale- the localebundle- a resource bundle previously obtained from a call togetResourceBundle(java.util.Locale), ornullif that call returnednull- Returns:
- the localized description
-
getOperationParameterDescription
String getOperationParameterDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle) Gets the description of one of the resource's operation's parameters.- Parameters:
operationName- the name of the operationparamName- the name of the operation's parameterlocale- the localebundle- a resource bundle previously obtained from a call togetResourceBundle(java.util.Locale), ornullif that call returnednull- Returns:
- the localized description
-
getOperationParameterValueTypeDescription
String getOperationParameterValueTypeDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle, String... suffixes) Gets the description of a portion of a complex value type of one of the resource's operation's parameters.- Parameters:
operationName- the name of the operationparamName- the name of the operation's parameterlocale- the localebundle- a resource bundle previously obtained from a call togetResourceBundle(java.util.Locale), ornullif that call returnednullsuffixes- suffixes to dot-append to the base attribute key to generate a key- Returns:
- the localized description
-
getOperationReplyDescription
Gets the description of the reply value for one of the resource's operations, ornullif there is no description.- Parameters:
operationName- the name of the operationlocale- the localebundle- a resource bundle previously obtained from a call togetResourceBundle(java.util.Locale), ornullif that call returnednull- Returns:
- the localized description , or
null
-
getOperationReplyValueTypeDescription
String getOperationReplyValueTypeDescription(String operationName, Locale locale, ResourceBundle bundle, String... suffixes) Gets the description of a portion of a complex value type of the reply value for one of the resource's operations, ornullif there is no description.- Parameters:
operationName- the name of the operationlocale- the localebundle- a resource bundle previously obtained from a call togetResourceBundle(java.util.Locale), ornullif that call returnednullsuffixes- suffixes to dot-append to the base attribute key to generate a key- Returns:
- the localized description , or
null
-
getNotificationDescription
Gets the description of one of the resource's notification.- Parameters:
notificationType- the type of the notificationlocale- the localebundle- a resource bundle previously obtained from a call togetResourceBundle(java.util.Locale), ornullif that call returnednull- Returns:
- the localized description
-
getChildTypeDescription
Gets the description of one of the resource's child types.- Parameters:
childType- the name of the child typelocale- the localebundle- a resource bundle previously obtained from a call togetResourceBundle(java.util.Locale), ornullif that call returnednull- Returns:
- the localized description
-
getResourceDeprecatedDescription
Gets the description of the resource.- Parameters:
locale- the localebundle- a resource bundle previously obtained from a call togetResourceBundle(java.util.Locale), ornullif that call returnednull- Returns:
- the localized description
-
getResourceAttributeDeprecatedDescription
String getResourceAttributeDeprecatedDescription(String attributeName, Locale locale, ResourceBundle bundle) Gets the description of one of the resource's attributes.- Parameters:
attributeName- the name of the attributelocale- the localebundle- a resource bundle previously obtained from a call togetResourceBundle(java.util.Locale), ornullif that call returnednull- Returns:
- the localized description
-
getOperationDeprecatedDescription
String getOperationDeprecatedDescription(String operationName, Locale locale, ResourceBundle bundle) Gets the description of one of the resource's operations.- Parameters:
operationName- the name of the operationlocale- the localebundle- a resource bundle previously obtained from a call togetResourceBundle(java.util.Locale), ornullif that call returnednull- Returns:
- the localized description
-
getOperationParameterDeprecatedDescription
String getOperationParameterDeprecatedDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle) Gets the description of one of the resource's operation's parameters.- Parameters:
operationName- the name of the operationparamName- the name of the operation's parameterlocale- the localebundle- a resource bundle previously obtained from a call togetResourceBundle(java.util.Locale), ornullif that call returnednull- Returns:
- the localized description
-