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

com.reprezen.genflow.openapi.diagram.swagger.Anchors 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.openapi.diagram.swagger;

import io.swagger.models.Operation;
import io.swagger.models.Path;
import io.swagger.models.Swagger;
import java.util.Arrays;

@SuppressWarnings("all")
public class Anchors {
  protected String _htmlLink(final Swagger swagger) {
    return "";
  }
  
  protected String _htmlLink(final Path path) {
    return "";
  }
  
  protected String _htmlLink(final Operation operation) {
    return "";
  }
  
  public String htmlLink(final Object operation) {
    if (operation instanceof Operation) {
      return _htmlLink((Operation)operation);
    } else if (operation instanceof Path) {
      return _htmlLink((Path)operation);
    } else if (operation instanceof Swagger) {
      return _htmlLink((Swagger)operation);
    } else {
      throw new IllegalArgumentException("Unhandled parameter types: " +
        Arrays.asList(operation).toString());
    }
  }
}