org.raml.model.Action.setDescription()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(133)

本文整理了Java中org.raml.model.Action.setDescription()方法的一些代码示例,展示了Action.setDescription()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Action.setDescription()方法的具体详情如下:
包路径:org.raml.model.Action
类名称:Action
方法名:setDescription

Action.setDescription介绍

暂无

代码示例

代码示例来源:origin: com.sap.cloud.yaas.service-generator/service-generator-raml

@Override
public Map<ActionType, Action> resolve(final Resource resource)
{
  final ImmutableMap.Builder<ActionType, Action> actions = ImmutableMap.builder();
  for (final Method m : resource.getMethods())
  {
    final Action action = new Action();
    action.setDescription(m.getDescription());
    action.setBody(bodyParamResolver.resolve(m));
    action.setQueryParameters(queryParamsResolver.resolve(getParametersFor(m.getParameters(), ParameterType.QUERY)));
    action.setHeaders(headerParamsResolver.resolve(getParametersFor(m.getParameters(), ParameterType.HEADER)));
    // action.setResource();
    action.setResponses(responseResolver.resolve(m));
    actions.put(getActionType(m.getMethodType()), action);
  }
  return actions.build();
}

代码示例来源:origin: org.restlet.jee/org.restlet.ext.apispark

for (Operation operation : resource.getOperations()) {
  action = new Action();
  action.setDescription(operation.getDescription());
  action.setResource(ramlResource);

代码示例来源:origin: org.restlet.gae/org.restlet.ext.platform

for (Operation operation : resource.getOperations()) {
  action = new Action();
  action.setDescription(operation.getDescription());
  action.setResource(ramlResource);

代码示例来源:origin: org.restlet.jee/org.restlet.ext.platform

for (Operation operation : resource.getOperations()) {
  action = new Action();
  action.setDescription(operation.getDescription());
  action.setResource(ramlResource);

代码示例来源:origin: org.restlet.jse/org.restlet.ext.platform

for (Operation operation : resource.getOperations()) {
  action = new Action();
  action.setDescription(operation.getDescription());
  action.setResource(ramlResource);

代码示例来源:origin: org.restlet.osgi/org.restlet.ext.platform

for (Operation operation : resource.getOperations()) {
  action = new Action();
  action.setDescription(operation.getDescription());
  action.setResource(ramlResource);

相关文章