public class NonResolvingResourceDescriptionResolver extends StandardResourceDescriptionResolver
| Modifier and Type | Field and Description |
|---|---|
static NonResolvingResourceDescriptionResolver |
INSTANCE |
REPLY| Constructor and Description |
|---|
NonResolvingResourceDescriptionResolver() |
| Modifier and Type | Method and Description |
|---|---|
StandardResourceDescriptionResolver |
getChildResolver(String key) |
String |
getChildTypeDescription(String childType,
Locale locale,
ResourceBundle bundle)
Gets the description of one of the resource's child types.
|
String |
getOperationDeprecatedDescription(String operationName,
Locale locale,
ResourceBundle bundle)
Gets the description of one of the resource's operations.
|
String |
getOperationDescription(String operationName,
Locale locale,
ResourceBundle bundle)
Gets the description of one of the resource's operations.
|
String |
getOperationParameterDeprecatedDescription(String operationName,
String paramName,
Locale locale,
ResourceBundle bundle)
Gets the description of one of the resource's operation's parameters.
|
String |
getOperationParameterDescription(String operationName,
String paramName,
Locale locale,
ResourceBundle bundle)
Gets the description of one of the resource's operation's parameters.
|
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.
|
String |
getOperationReplyDescription(String operationName,
Locale locale,
ResourceBundle bundle)
Gets the description of the reply value for one of the resource's operations, or
null if there is
no description. |
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, or
null if there is
no description. |
String |
getResourceAttributeDeprecatedDescription(String attributeName,
Locale locale,
ResourceBundle bundle)
Gets the description of one of the resource's attributes.
|
String |
getResourceAttributeDescription(String attributeName,
Locale locale,
ResourceBundle bundle)
Gets the description of one of the resource's attributes.
|
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.
|
ResourceBundle |
getResourceBundle(Locale locale)
Returns a
ResourceBundle for the given Locale, or null if this resolver
is not based on resource bundles. |
String |
getResourceDeprecatedDescription(Locale locale,
ResourceBundle bundle)
Gets the description of the resource.
|
String |
getResourceDescription(Locale locale,
ResourceBundle bundle)
Gets the description of the resource.
|
getBundleKey, getKeyPrefix, getNotificationDescription, isReuseAttributesForAdd, isUseUnprefixedChildTypespublic static NonResolvingResourceDescriptionResolver INSTANCE
public NonResolvingResourceDescriptionResolver()
public ResourceBundle getResourceBundle(Locale locale)
StandardResourceDescriptionResolverResourceBundle for the given Locale, or null if 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.
getResourceBundle in interface ResourceDescriptionResolvergetResourceBundle in class StandardResourceDescriptionResolverlocale - the localenullpublic String getResourceDescription(Locale locale, ResourceBundle bundle)
StandardResourceDescriptionResolvergetResourceDescription in interface ResourceDescriptionResolvergetResourceDescription in class StandardResourceDescriptionResolverlocale - the localebundle - a resource bundle previously obtained from a call to ResourceDescriptionResolver.getResourceBundle(java.util.Locale),
or null if that call returned nullpublic String getResourceAttributeDescription(String attributeName, Locale locale, ResourceBundle bundle)
StandardResourceDescriptionResolvergetResourceAttributeDescription in interface ResourceDescriptionResolvergetResourceAttributeDescription in class StandardResourceDescriptionResolverattributeName - the name of the attributelocale - the localebundle - a resource bundle previously obtained from a call to ResourceDescriptionResolver.getResourceBundle(java.util.Locale),
or null if that call returned nullpublic String getResourceAttributeValueTypeDescription(String attributeName, Locale locale, ResourceBundle bundle, String... suffixes)
StandardResourceDescriptionResolvergetResourceAttributeValueTypeDescription in interface ResourceDescriptionResolvergetResourceAttributeValueTypeDescription in class StandardResourceDescriptionResolverattributeName - the name of the attributelocale - the localebundle - a resource bundle previously obtained from a call to ResourceDescriptionResolver.getResourceBundle(java.util.Locale),
or null if that call returned nullsuffixes - suffixes to dot-append to the base attribute key to generate a keypublic String getOperationDescription(String operationName, Locale locale, ResourceBundle bundle)
StandardResourceDescriptionResolvergetOperationDescription in interface ResourceDescriptionResolvergetOperationDescription in class StandardResourceDescriptionResolveroperationName - the name of the operationlocale - the localebundle - a resource bundle previously obtained from a call to ResourceDescriptionResolver.getResourceBundle(java.util.Locale),
or null if that call returned nullpublic String getOperationParameterDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle)
StandardResourceDescriptionResolvergetOperationParameterDescription in interface ResourceDescriptionResolvergetOperationParameterDescription in class StandardResourceDescriptionResolveroperationName - the name of the operationparamName - the name of the operation's parameterlocale - the localebundle - a resource bundle previously obtained from a call to ResourceDescriptionResolver.getResourceBundle(java.util.Locale),
or null if that call returned nullpublic String getOperationParameterValueTypeDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle, String... suffixes)
StandardResourceDescriptionResolvergetOperationParameterValueTypeDescription in interface ResourceDescriptionResolvergetOperationParameterValueTypeDescription in class StandardResourceDescriptionResolveroperationName - the name of the operationparamName - the name of the operation's parameterlocale - the localebundle - a resource bundle previously obtained from a call to ResourceDescriptionResolver.getResourceBundle(java.util.Locale),
or null if that call returned nullsuffixes - suffixes to dot-append to the base attribute key to generate a keypublic String getOperationReplyDescription(String operationName, Locale locale, ResourceBundle bundle)
StandardResourceDescriptionResolvernull if there is
no description.getOperationReplyDescription in interface ResourceDescriptionResolvergetOperationReplyDescription in class StandardResourceDescriptionResolveroperationName - the name of the operationlocale - the localebundle - a resource bundle previously obtained from a call to ResourceDescriptionResolver.getResourceBundle(java.util.Locale),
or null if that call returned nullnullpublic String getOperationReplyValueTypeDescription(String operationName, Locale locale, ResourceBundle bundle, String... suffixes)
StandardResourceDescriptionResolvernull if there is
no description.getOperationReplyValueTypeDescription in interface ResourceDescriptionResolvergetOperationReplyValueTypeDescription in class StandardResourceDescriptionResolveroperationName - the name of the operationlocale - the localebundle - a resource bundle previously obtained from a call to ResourceDescriptionResolver.getResourceBundle(java.util.Locale),
or null if that call returned nullsuffixes - suffixes to dot-append to the base attribute key to generate a keynullpublic String getChildTypeDescription(String childType, Locale locale, ResourceBundle bundle)
StandardResourceDescriptionResolvergetChildTypeDescription in interface ResourceDescriptionResolvergetChildTypeDescription in class StandardResourceDescriptionResolverchildType - the name of the child typelocale - the localebundle - a resource bundle previously obtained from a call to ResourceDescriptionResolver.getResourceBundle(java.util.Locale),
or null if that call returned nullpublic String getResourceDeprecatedDescription(Locale locale, ResourceBundle bundle)
StandardResourceDescriptionResolvergetResourceDeprecatedDescription in interface ResourceDescriptionResolvergetResourceDeprecatedDescription in class StandardResourceDescriptionResolverlocale - the localebundle - a resource bundle previously obtained from a call to ResourceDescriptionResolver.getResourceBundle(java.util.Locale),
or null if that call returned nullpublic String getResourceAttributeDeprecatedDescription(String attributeName, Locale locale, ResourceBundle bundle)
StandardResourceDescriptionResolvergetResourceAttributeDeprecatedDescription in interface ResourceDescriptionResolvergetResourceAttributeDeprecatedDescription in class StandardResourceDescriptionResolverattributeName - the name of the attributelocale - the localebundle - a resource bundle previously obtained from a call to ResourceDescriptionResolver.getResourceBundle(java.util.Locale),
or null if that call returned nullpublic String getOperationDeprecatedDescription(String operationName, Locale locale, ResourceBundle bundle)
StandardResourceDescriptionResolvergetOperationDeprecatedDescription in interface ResourceDescriptionResolvergetOperationDeprecatedDescription in class StandardResourceDescriptionResolveroperationName - the name of the operationlocale - the localebundle - a resource bundle previously obtained from a call to ResourceDescriptionResolver.getResourceBundle(java.util.Locale),
or null if that call returned nullpublic String getOperationParameterDeprecatedDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle)
StandardResourceDescriptionResolvergetOperationParameterDeprecatedDescription in interface ResourceDescriptionResolvergetOperationParameterDeprecatedDescription in class StandardResourceDescriptionResolveroperationName - the name of the operationparamName - the name of the operation's parameterlocale - the localebundle - a resource bundle previously obtained from a call to ResourceDescriptionResolver.getResourceBundle(java.util.Locale),
or null if that call returned nullpublic StandardResourceDescriptionResolver getChildResolver(String key)
getChildResolver in class StandardResourceDescriptionResolverCopyright © 2022 JBoss by Red Hat. All rights reserved.