@Override public String getOperationParameterDeprecatedDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle) { for (PathElement path : this.paths) { String key = this.getBundleKey(path, operationName.equals(ModelDescriptionConstants.ADD) ? new String[] { paramName } : new String[] { operationName, paramName }, ModelDescriptionConstants.DEPRECATED); if (bundle.containsKey(key)) { return bundle.getString(key); } } return this.parent.getOperationParameterDeprecatedDescription(operationName, paramName, locale, bundle); }
@Override public String getOperationParameterDeprecatedDescription(String operationName, String paramName, Locale locale, ResourceBundle bundle) { for (PathElement path : this.paths) { String key = this.getBundleKey(path, operationName.equals(ModelDescriptionConstants.ADD) ? new String[] { paramName } : new String[] { operationName, paramName }, ModelDescriptionConstants.DEPRECATED); if (bundle.containsKey(key)) { return bundle.getString(key); } } return this.parent.getOperationParameterDeprecatedDescription(operationName, paramName, locale, bundle); }
/** * Creates a returns a basic model node describing a parameter that sets this attribute, after attaching it to the * given overall operation description model node. The node describing the parameter is returned to make it easy * to perform further modification. * * @param resourceDescription the overall resource description * @param operationName the operation name * @param resolver provider of localized text descriptions * @param locale locale to pass to the resolver * @param bundle bundle to pass to the resolver * @return the attribute description node */ public ModelNode addOperationReplyDescription(final ModelNode resourceDescription, final String operationName, final ResourceDescriptionResolver resolver, final Locale locale, final ResourceBundle bundle) { final ModelNode param = getNoTextDescription(true); String description = resolver.getOperationReplyValueTypeDescription(operationName, locale, bundle, getName()); param.get(ModelDescriptionConstants.DESCRIPTION).set(description); final ModelNode result = resourceDescription.get(ModelDescriptionConstants.REPLY_PROPERTIES, getName()).set(param); ModelNode deprecated = addDeprecatedInfo(result); if (deprecated != null) { deprecated.get(ModelDescriptionConstants.REASON).set(resolver.getOperationParameterDeprecatedDescription(operationName, getName(), locale, bundle)); } return result; }
/** * Creates a returns a basic model node describing a parameter that sets this attribute, after attaching it to the * given overall operation description model node. The node describing the parameter is returned to make it easy * to perform further modification. * * @param resourceDescription the overall resource description * @param operationName the operation name * @param resolver provider of localized text descriptions * @param locale locale to pass to the resolver * @param bundle bundle to pass to the resolver * @return the attribute description node */ public ModelNode addOperationReplyDescription(final ModelNode resourceDescription, final String operationName, final ResourceDescriptionResolver resolver, final Locale locale, final ResourceBundle bundle) { final ModelNode param = getNoTextDescription(true); String description = resolver.getOperationReplyValueTypeDescription(operationName, locale, bundle, getName()); param.get(ModelDescriptionConstants.DESCRIPTION).set(description); final ModelNode result = resourceDescription.get(ModelDescriptionConstants.REPLY_PROPERTIES, getName()).set(param); ModelNode deprecated = addDeprecatedInfo(result); if (deprecated != null) { deprecated.get(ModelDescriptionConstants.REASON).set(resolver.getOperationParameterDeprecatedDescription(operationName, getName(), locale, bundle)); } return result; }
/** * Creates a returns a basic model node describing a parameter that sets this attribute, after attaching it to the * given overall operation description model node. The node describing the parameter is returned to make it easy * to perform further modification. * * @param resourceDescription the overall resource description * @param operationName the operation name * @param resolver provider of localized text descriptions * @param locale locale to pass to the resolver * @param bundle bundle to pass to the resolver * @return the attribute description node */ public ModelNode addOperationParameterDescription(final ModelNode resourceDescription, final String operationName, final ResourceDescriptionResolver resolver, final Locale locale, final ResourceBundle bundle) { final ModelNode param = getNoTextDescription(true); final String description = resolver.getOperationParameterDescription(operationName, getName(), locale, bundle); param.get(ModelDescriptionConstants.DESCRIPTION).set(description); final ModelNode result = resourceDescription.get(ModelDescriptionConstants.REQUEST_PROPERTIES, getName()).set(param); ModelNode deprecated = addDeprecatedInfo(result); if (deprecated != null) { deprecated.get(ModelDescriptionConstants.REASON).set(resolver.getOperationParameterDeprecatedDescription(operationName, getName(), locale, bundle)); } return result; }
/** * Creates a returns a basic model node describing a parameter that sets this attribute, after attaching it to the * given overall operation description model node. The node describing the parameter is returned to make it easy * to perform further modification. * * @param resourceDescription the overall resource description * @param operationName the operation name * @param resolver provider of localized text descriptions * @param locale locale to pass to the resolver * @param bundle bundle to pass to the resolver * @return the attribute description node */ public ModelNode addOperationParameterDescription(final ModelNode resourceDescription, final String operationName, final ResourceDescriptionResolver resolver, final Locale locale, final ResourceBundle bundle) { final ModelNode param = getNoTextDescription(true); final String description = resolver.getOperationParameterDescription(operationName, getName(), locale, bundle); param.get(ModelDescriptionConstants.DESCRIPTION).set(description); final ModelNode result = resourceDescription.get(ModelDescriptionConstants.REQUEST_PROPERTIES, getName()).set(param); ModelNode deprecated = addDeprecatedInfo(result); if (deprecated != null) { deprecated.get(ModelDescriptionConstants.REASON).set(resolver.getOperationParameterDeprecatedDescription(operationName, getName(), locale, bundle)); } return result; }
/** * Creates a returns a basic model node describing a parameter that sets this attribute, after attaching it to the * given overall operation description model node. The node describing the parameter is returned to make it easy * to perform further modification. * * @param resourceDescription the overall resource description * @param operationName the operation name * @param resolver provider of localized text descriptions * @param locale locale to pass to the resolver * @param bundle bundle to pass to the resolver * @return the attribute description node */ public ModelNode addOperationParameterDescription(final ModelNode resourceDescription, final String operationName, final ResourceDescriptionResolver resolver, final Locale locale, final ResourceBundle bundle) { final ModelNode param = getNoTextDescription(true); final String description = resolver.getOperationParameterDescription(operationName, getName(), locale, bundle); param.get(ModelDescriptionConstants.DESCRIPTION).set(description); final ModelNode result = resourceDescription.get(ModelDescriptionConstants.REQUEST_PROPERTIES, getName()).set(param); ModelNode deprecated = addDeprecatedInfo(result); if (deprecated != null) { deprecated.get(ModelDescriptionConstants.REASON).set(resolver.getOperationParameterDeprecatedDescription(operationName, getName(), locale, bundle)); } return result; }
/** * Creates a returns a basic model node describing a parameter that sets this attribute, after attaching it to the * given overall operation description model node. The node describing the parameter is returned to make it easy * to perform further modification. * * @param resourceDescription the overall resource description * @param operationName the operation name * @param resolver provider of localized text descriptions * @param locale locale to pass to the resolver * @param bundle bundle to pass to the resolver * @return the attribute description node */ public ModelNode addOperationParameterDescription(final ModelNode resourceDescription, final String operationName, final ResourceDescriptionResolver resolver, final Locale locale, final ResourceBundle bundle) { final ModelNode param = getNoTextDescription(true); final String description = resolver.getOperationParameterDescription(operationName, getName(), locale, bundle); param.get(ModelDescriptionConstants.DESCRIPTION).set(description); final ModelNode result = resourceDescription.get(ModelDescriptionConstants.REQUEST_PROPERTIES, getName()).set(param); ModelNode deprecated = addDeprecatedInfo(result); if (deprecated != null) { deprecated.get(ModelDescriptionConstants.REASON).set(resolver.getOperationParameterDeprecatedDescription(operationName, getName(), locale, bundle)); } return result; }
ModelNode deprecated = ad.addDeprecatedInfo(result); if (deprecated != null) { deprecated.get(ModelDescriptionConstants.REASON).set(attributeDescriptionResolver.getOperationParameterDeprecatedDescription(operationName, ad.getName(), locale, attributeBundle));
ModelNode deprecated = ad.addDeprecatedInfo(result); if (deprecated != null) { deprecated.get(ModelDescriptionConstants.REASON).set(attributeDescriptionResolver.getOperationParameterDeprecatedDescription(operationName, ad.getName(), locale, attributeBundle));