All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.reprezen.genflow.rapidml.wadl.xtend.XGenerateSoapUiWadl Maven / Gradle / Ivy

The newest version!
/**
 * Copyright © 2013, 2016 Modelsolv, Inc.
 * All Rights Reserved.
 * 
 * NOTICE: All information contained herein is, and remains the property
 * of ModelSolv, Inc. See the file license.html in the root directory of
 * this project for further information.
 */
package com.reprezen.genflow.rapidml.wadl.xtend;

import com.reprezen.genflow.rapidml.wadl.xtend.XGenerateWadl;
import com.reprezen.rapidml.Method;
import com.reprezen.rapidml.ResourceAPI;
import com.reprezen.rapidml.ResourceDefinition;
import com.reprezen.rapidml.ServiceDataResource;
import com.reprezen.rapidml.URI;
import org.eclipse.emf.common.util.EList;
import org.eclipse.xtend2.lib.StringConcatenation;

@SuppressWarnings("all")
public class XGenerateSoapUiWadl extends XGenerateWadl {
  @Override
  public CharSequence generateResourcesElement(final ResourceAPI resourceAPI) {
    StringConcatenation _builder = new StringConcatenation();
    _builder.append("");
    _builder.newLineIfNotEmpty();
    {
      EList _ownedResourceDefinitions = resourceAPI.getOwnedResourceDefinitions();
      for(final ResourceDefinition resourceDef : _ownedResourceDefinitions) {
        CharSequence _generateResource = this.generateResource(resourceDef);
        _builder.append(_generateResource);
        _builder.newLineIfNotEmpty();
      }
    }
    _builder.append("");
    _builder.newLine();
    return _builder;
  }
  
  @Override
  public CharSequence generateResource(final ResourceDefinition resourceDef) {
    StringConcatenation _builder = new StringConcatenation();
    _builder.append("");
    _builder.newLineIfNotEmpty();
    CharSequence _generateParameters = this.generateParameters(resourceDef);
    _builder.append(_generateParameters);
    _builder.newLineIfNotEmpty();
    {
      EList _methods = resourceDef.getMethods();
      for(final Method method : _methods) {
        CharSequence _generateMethod = this.generateMethod(method, ((ServiceDataResource) resourceDef));
        _builder.append(_generateMethod);
        _builder.newLineIfNotEmpty();
      }
    }
    _builder.append("");
    _builder.newLine();
    return _builder;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy