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, isUseUnprefixedChildTypes
public static NonResolvingResourceDescriptionResolver INSTANCE
public NonResolvingResourceDescriptionResolver()
public ResourceBundle getResourceBundle(Locale locale)
StandardResourceDescriptionResolver
ResourceBundle
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 ResourceDescriptionResolver
getResourceBundle
in class StandardResourceDescriptionResolver
locale
- the localenull
public String getResourceDescription(Locale locale, ResourceBundle bundle)
StandardResourceDescriptionResolver
getResourceDescription
in interface ResourceDescriptionResolver
getResourceDescription
in class StandardResourceDescriptionResolver
locale
- the localebundle
- a resource bundle previously obtained from a call to ResourceDescriptionResolver.getResourceBundle(java.util.Locale)
,
or null
if that call returned null
public String getResourceAttributeDescription(String attributeName, Locale locale, ResourceBundle bundle)
StandardResourceDescriptionResolver
getResourceAttributeDescription
in interface ResourceDescriptionResolver
getResourceAttributeDescription
in class StandardResourceDescriptionResolver
attributeName
- 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 null
public String getResourceAttributeValueTypeDescription(String attributeName, Locale locale, ResourceBundle bundle, String... suffixes)
StandardResourceDescriptionResolver
getResourceAttributeValueTypeDescription
in interface ResourceDescriptionResolver
getResourceAttributeValueTypeDescription
in class StandardResourceDescriptionResolver
attributeName
- 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 null
suffixes
- suffixes to dot-append to the base attribute key to generate a keypublic String getOperationDescription(String operationName, Locale locale, ResourceBundle bundle)
StandardResourceDescriptionResolver
getOperationDescription
in interface ResourceDescriptionResolver
getOperationDescription
in class StandardResourceDescriptionResolver
operationName
- 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 null
public String getOperationParameterDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle)
StandardResourceDescriptionResolver
getOperationParameterDescription
in interface ResourceDescriptionResolver
getOperationParameterDescription
in class StandardResourceDescriptionResolver
operationName
- 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 null
public String getOperationParameterValueTypeDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle, String... suffixes)
StandardResourceDescriptionResolver
getOperationParameterValueTypeDescription
in interface ResourceDescriptionResolver
getOperationParameterValueTypeDescription
in class StandardResourceDescriptionResolver
operationName
- 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 null
suffixes
- suffixes to dot-append to the base attribute key to generate a keypublic String getOperationReplyDescription(String operationName, Locale locale, ResourceBundle bundle)
StandardResourceDescriptionResolver
null
if there is
no description.getOperationReplyDescription
in interface ResourceDescriptionResolver
getOperationReplyDescription
in class StandardResourceDescriptionResolver
operationName
- 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 null
null
public String getOperationReplyValueTypeDescription(String operationName, Locale locale, ResourceBundle bundle, String... suffixes)
StandardResourceDescriptionResolver
null
if there is
no description.getOperationReplyValueTypeDescription
in interface ResourceDescriptionResolver
getOperationReplyValueTypeDescription
in class StandardResourceDescriptionResolver
operationName
- 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 null
suffixes
- suffixes to dot-append to the base attribute key to generate a keynull
public String getChildTypeDescription(String childType, Locale locale, ResourceBundle bundle)
StandardResourceDescriptionResolver
getChildTypeDescription
in interface ResourceDescriptionResolver
getChildTypeDescription
in class StandardResourceDescriptionResolver
childType
- 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 null
public String getResourceDeprecatedDescription(Locale locale, ResourceBundle bundle)
StandardResourceDescriptionResolver
getResourceDeprecatedDescription
in interface ResourceDescriptionResolver
getResourceDeprecatedDescription
in class StandardResourceDescriptionResolver
locale
- the localebundle
- a resource bundle previously obtained from a call to ResourceDescriptionResolver.getResourceBundle(java.util.Locale)
,
or null
if that call returned null
public String getResourceAttributeDeprecatedDescription(String attributeName, Locale locale, ResourceBundle bundle)
StandardResourceDescriptionResolver
getResourceAttributeDeprecatedDescription
in interface ResourceDescriptionResolver
getResourceAttributeDeprecatedDescription
in class StandardResourceDescriptionResolver
attributeName
- 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 null
public String getOperationDeprecatedDescription(String operationName, Locale locale, ResourceBundle bundle)
StandardResourceDescriptionResolver
getOperationDeprecatedDescription
in interface ResourceDescriptionResolver
getOperationDeprecatedDescription
in class StandardResourceDescriptionResolver
operationName
- 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 null
public String getOperationParameterDeprecatedDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle)
StandardResourceDescriptionResolver
getOperationParameterDeprecatedDescription
in interface ResourceDescriptionResolver
getOperationParameterDeprecatedDescription
in class StandardResourceDescriptionResolver
operationName
- 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 null
public StandardResourceDescriptionResolver getChildResolver(String key)
getChildResolver
in class StandardResourceDescriptionResolver
Copyright © 2023 JBoss by Red Hat. All rights reserved.