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

com.reprezen.genflow.openapi.diagram.openapi3.OpenApi3Anchors Maven / Gradle / Ivy

/**
 * 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.openapi3;

import com.reprezen.jsonoverlay.IModelPart;
import com.reprezen.kaizen.oasparser.model3.OpenApi3;
import com.reprezen.kaizen.oasparser.model3.Operation;
import com.reprezen.kaizen.oasparser.model3.Path;
import java.util.Arrays;

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