congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SwaggerTypes.toSwaggerType
Code IndexAdd Tabnine to your IDE (free)

How to use
toSwaggerType
method
in
org.restlet.ext.platform.internal.conversion.swagger.v1_2.SwaggerTypes

Best Java code snippets using org.restlet.ext.platform.internal.conversion.swagger.v1_2.SwaggerTypes.toSwaggerType (Showing top 20 results out of 315)

origin: org.restlet.jee/org.restlet.ext.platform

/**
 * Fills Swagger ResourceOperationDeclaration's
 * ResourceOperationParameterDeclaration from Restlet Web API definition's
 * Resource
 * 
 * @param resource
 *            The Restlet Web API definition's Resource
 * @param rod
 *            The Swagger Swagger ResourceOperationDeclaration
 */
private static void fillApiDeclarationPathVariables(Resource resource,
    ResourceOperationDeclaration rod) {
  // Get path variables
  ResourceOperationParameterDeclaration ropd;
  for (PathVariable pv : resource.getPathVariables()) {
    ropd = new ResourceOperationParameterDeclaration();
    ropd.setParamType("path");
    SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes.toSwaggerType(pv
        .getType());
    ropd.setType(swaggerTypeFormat.getType());
    ropd.setFormat(swaggerTypeFormat.getFormat());
    ropd.setRequired(true);
    ropd.setName(pv.getName());
    ropd.setAllowMultiple(false);
    ropd.setDescription(pv.getDescription());
    rod.getParameters().add(ropd);
  }
}
origin: org.restlet.osgi/org.restlet.ext.platform

/**
 * Fills Swagger ResourceOperationDeclaration's
 * ResourceOperationParameterDeclaration from Restlet Web API definition's
 * Resource
 * 
 * @param resource
 *            The Restlet Web API definition's Resource
 * @param rod
 *            The Swagger Swagger ResourceOperationDeclaration
 */
private static void fillApiDeclarationPathVariables(Resource resource,
    ResourceOperationDeclaration rod) {
  // Get path variables
  ResourceOperationParameterDeclaration ropd;
  for (PathVariable pv : resource.getPathVariables()) {
    ropd = new ResourceOperationParameterDeclaration();
    ropd.setParamType("path");
    SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes.toSwaggerType(pv
        .getType());
    ropd.setType(swaggerTypeFormat.getType());
    ropd.setFormat(swaggerTypeFormat.getFormat());
    ropd.setRequired(true);
    ropd.setName(pv.getName());
    ropd.setAllowMultiple(false);
    ropd.setDescription(pv.getDescription());
    rod.getParameters().add(ropd);
  }
}
origin: org.restlet.jse/org.restlet.ext.platform

/**
 * Fills Swagger ResourceOperationDeclaration's
 * ResourceOperationParameterDeclaration from Restlet Web API definition's
 * Resource
 * 
 * @param resource
 *            The Restlet Web API definition's Resource
 * @param rod
 *            The Swagger Swagger ResourceOperationDeclaration
 */
private static void fillApiDeclarationPathVariables(Resource resource,
    ResourceOperationDeclaration rod) {
  // Get path variables
  ResourceOperationParameterDeclaration ropd;
  for (PathVariable pv : resource.getPathVariables()) {
    ropd = new ResourceOperationParameterDeclaration();
    ropd.setParamType("path");
    SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes.toSwaggerType(pv
        .getType());
    ropd.setType(swaggerTypeFormat.getType());
    ropd.setFormat(swaggerTypeFormat.getFormat());
    ropd.setRequired(true);
    ropd.setName(pv.getName());
    ropd.setAllowMultiple(false);
    ropd.setDescription(pv.getDescription());
    rod.getParameters().add(ropd);
  }
}
origin: org.restlet.gae/org.restlet.ext.platform

/**
 * Fills Swagger ResourceOperationDeclaration's
 * ResourceOperationParameterDeclaration from Restlet Web API definition's
 * Resource
 * 
 * @param resource
 *            The Restlet Web API definition's Resource
 * @param rod
 *            The Swagger Swagger ResourceOperationDeclaration
 */
private static void fillApiDeclarationPathVariables(Resource resource,
    ResourceOperationDeclaration rod) {
  // Get path variables
  ResourceOperationParameterDeclaration ropd;
  for (PathVariable pv : resource.getPathVariables()) {
    ropd = new ResourceOperationParameterDeclaration();
    ropd.setParamType("path");
    SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes.toSwaggerType(pv
        .getType());
    ropd.setType(swaggerTypeFormat.getType());
    ropd.setFormat(swaggerTypeFormat.getFormat());
    ropd.setRequired(true);
    ropd.setName(pv.getName());
    ropd.setAllowMultiple(false);
    ropd.setDescription(pv.getDescription());
    rod.getParameters().add(ropd);
  }
}
origin: org.restlet.gae/org.restlet.ext.platform

/**
 * Fills Swagger ResourceOperationDeclaration's
 * ResourceOperationParameterDeclaration from Restlet Web API definition's
 * Operation
 * 
 * @param operation
 *            The Restlet Web API definition's Operation
 * @param rod
 *            The Swagger Swagger ResourceOperationDeclaration
 */
private static void fillApiDeclarationQueryParameters(Operation operation,
    ResourceOperationDeclaration rod) {
  // Get query parameters
  ResourceOperationParameterDeclaration ropd;
  for (QueryParameter qp : operation.getQueryParameters()) {
    ropd = new ResourceOperationParameterDeclaration();
    ropd.setParamType("query");
    SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes.toSwaggerType(qp
        .getType());
    ropd.setType(swaggerTypeFormat.getType());
    ropd.setFormat(swaggerTypeFormat.getFormat());
    ropd.setName(qp.getName());
    ropd.setAllowMultiple(true);
    ropd.setDescription(qp.getDescription());
    ropd.setEnum_(qp.getEnumeration());
    ropd.setDefaultValue(qp.getDefaultValue());
    ropd.setRequired(qp.isRequired());
    rod.getParameters().add(ropd);
  }
}
origin: org.restlet.osgi/org.restlet.ext.platform

if (Types.isPrimitiveType(type)) {
  SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes
      .toSwaggerType(type);
  tpd.getItems().setType(swaggerTypeFormat.getType());
  tpd.getItems().setFormat(swaggerTypeFormat.getFormat());
if (Types.isPrimitiveType(type)) {
  SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes
      .toSwaggerType(type);
  tpd.setType(swaggerTypeFormat.getType());
  tpd.setFormat(swaggerTypeFormat.getFormat());
origin: org.restlet.osgi/org.restlet.ext.platform

if (Types.isPrimitiveType(itemsType)) {
  SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes
      .toSwaggerType(itemsType);
  items.setType(swaggerTypeFormat.getType());
  items.setFormat(swaggerTypeFormat.getFormat());
origin: org.restlet.jse/org.restlet.ext.platform

/**
 * Fills Swagger ResourceOperationDeclaration's
 * ResourceOperationParameterDeclaration from Restlet Web API definition's
 * Operation
 * 
 * @param operation
 *            The Restlet Web API definition's Operation
 * @param rod
 *            The Swagger Swagger ResourceOperationDeclaration
 */
private static void fillApiDeclarationQueryParameters(Operation operation,
    ResourceOperationDeclaration rod) {
  // Get query parameters
  ResourceOperationParameterDeclaration ropd;
  for (QueryParameter qp : operation.getQueryParameters()) {
    ropd = new ResourceOperationParameterDeclaration();
    ropd.setParamType("query");
    SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes.toSwaggerType(qp
        .getType());
    ropd.setType(swaggerTypeFormat.getType());
    ropd.setFormat(swaggerTypeFormat.getFormat());
    ropd.setName(qp.getName());
    ropd.setAllowMultiple(true);
    ropd.setDescription(qp.getDescription());
    ropd.setEnum_(qp.getEnumeration());
    ropd.setDefaultValue(qp.getDefaultValue());
    ropd.setRequired(qp.isRequired());
    rod.getParameters().add(ropd);
  }
}
origin: org.restlet.jee/org.restlet.ext.platform

if (Types.isPrimitiveType(type)) {
  SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes
      .toSwaggerType(type);
  tpd.getItems().setType(swaggerTypeFormat.getType());
  tpd.getItems().setFormat(swaggerTypeFormat.getFormat());
if (Types.isPrimitiveType(type)) {
  SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes
      .toSwaggerType(type);
  tpd.setType(swaggerTypeFormat.getType());
  tpd.setFormat(swaggerTypeFormat.getFormat());
origin: org.restlet.jse/org.restlet.ext.platform

if (Types.isPrimitiveType(type)) {
  SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes
      .toSwaggerType(type);
  tpd.getItems().setType(swaggerTypeFormat.getType());
  tpd.getItems().setFormat(swaggerTypeFormat.getFormat());
if (Types.isPrimitiveType(type)) {
  SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes
      .toSwaggerType(type);
  tpd.setType(swaggerTypeFormat.getType());
  tpd.setFormat(swaggerTypeFormat.getFormat());
origin: org.restlet.jee/org.restlet.ext.platform

if (Types.isPrimitiveType(itemsType)) {
  SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes
      .toSwaggerType(itemsType);
  items.setType(swaggerTypeFormat.getType());
  items.setFormat(swaggerTypeFormat.getFormat());
origin: org.restlet.jee/org.restlet.ext.platform

/**
 * Fills Swagger ResourceOperationDeclaration's
 * ResourceOperationParameterDeclaration from Restlet Web API definition's
 * Operation
 * 
 * @param operation
 *            The Restlet Web API definition's Operation
 * @param rod
 *            The Swagger Swagger ResourceOperationDeclaration
 */
private static void fillApiDeclarationQueryParameters(Operation operation,
    ResourceOperationDeclaration rod) {
  // Get query parameters
  ResourceOperationParameterDeclaration ropd;
  for (QueryParameter qp : operation.getQueryParameters()) {
    ropd = new ResourceOperationParameterDeclaration();
    ropd.setParamType("query");
    SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes.toSwaggerType(qp
        .getType());
    ropd.setType(swaggerTypeFormat.getType());
    ropd.setFormat(swaggerTypeFormat.getFormat());
    ropd.setName(qp.getName());
    ropd.setAllowMultiple(true);
    ropd.setDescription(qp.getDescription());
    ropd.setEnum_(qp.getEnumeration());
    ropd.setDefaultValue(qp.getDefaultValue());
    ropd.setRequired(qp.isRequired());
    rod.getParameters().add(ropd);
  }
}
origin: org.restlet.osgi/org.restlet.ext.platform

/**
 * Fills Swagger ResourceOperationDeclaration's
 * ResourceOperationParameterDeclaration from Restlet Web API definition's
 * Operation
 * 
 * @param operation
 *            The Restlet Web API definition's Operation
 * @param rod
 *            The Swagger Swagger ResourceOperationDeclaration
 */
private static void fillApiDeclarationQueryParameters(Operation operation,
    ResourceOperationDeclaration rod) {
  // Get query parameters
  ResourceOperationParameterDeclaration ropd;
  for (QueryParameter qp : operation.getQueryParameters()) {
    ropd = new ResourceOperationParameterDeclaration();
    ropd.setParamType("query");
    SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes.toSwaggerType(qp
        .getType());
    ropd.setType(swaggerTypeFormat.getType());
    ropd.setFormat(swaggerTypeFormat.getFormat());
    ropd.setName(qp.getName());
    ropd.setAllowMultiple(true);
    ropd.setDescription(qp.getDescription());
    ropd.setEnum_(qp.getEnumeration());
    ropd.setDefaultValue(qp.getDefaultValue());
    ropd.setRequired(qp.isRequired());
    rod.getParameters().add(ropd);
  }
}
origin: org.restlet.gae/org.restlet.ext.platform

if (Types.isPrimitiveType(type)) {
  SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes
      .toSwaggerType(type);
  tpd.getItems().setType(swaggerTypeFormat.getType());
  tpd.getItems().setFormat(swaggerTypeFormat.getFormat());
if (Types.isPrimitiveType(type)) {
  SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes
      .toSwaggerType(type);
  tpd.setType(swaggerTypeFormat.getType());
  tpd.setFormat(swaggerTypeFormat.getFormat());
origin: org.restlet.jse/org.restlet.ext.platform

if (Types.isPrimitiveType(itemsType)) {
  SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes
      .toSwaggerType(itemsType);
  items.setType(swaggerTypeFormat.getType());
  items.setFormat(swaggerTypeFormat.getFormat());
origin: org.restlet.gae/org.restlet.ext.platform

if (Types.isPrimitiveType(itemsType)) {
  SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes
      .toSwaggerType(itemsType);
  items.setType(swaggerTypeFormat.getType());
  items.setFormat(swaggerTypeFormat.getFormat());
origin: org.restlet.osgi/org.restlet.ext.platform

if (Types.isPrimitiveType(outRepr.getType())) {
  SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes
      .toSwaggerType(outRepr.getType());
  rod.getItems().setType(swaggerTypeFormat.getType());
  rod.getItems().setFormat(swaggerTypeFormat.getFormat());
origin: org.restlet.gae/org.restlet.ext.platform

if (Types.isPrimitiveType(outRepr.getType())) {
  SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes
      .toSwaggerType(outRepr.getType());
  rod.getItems().setType(swaggerTypeFormat.getType());
  rod.getItems().setFormat(swaggerTypeFormat.getFormat());
origin: org.restlet.jse/org.restlet.ext.platform

if (Types.isPrimitiveType(outRepr.getType())) {
  SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes
      .toSwaggerType(outRepr.getType());
  rod.getItems().setType(swaggerTypeFormat.getType());
  rod.getItems().setFormat(swaggerTypeFormat.getFormat());
origin: org.restlet.jee/org.restlet.ext.platform

if (Types.isPrimitiveType(outRepr.getType())) {
  SwaggerTypeFormat swaggerTypeFormat = SwaggerTypes
      .toSwaggerType(outRepr.getType());
  rod.getItems().setType(swaggerTypeFormat.getType());
  rod.getItems().setFormat(swaggerTypeFormat.getFormat());
org.restlet.ext.platform.internal.conversion.swagger.v1_2SwaggerTypestoSwaggerType

Javadoc

Converts Java types to Swagger types

Popular methods of SwaggerTypes

  • toDefinitionType
    Converts Swagger types to Java types

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getApplicationContext (Context)
  • Permission (java.security)
    Legacy security code; do not use.
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JPanel (javax.swing)
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now