Tabnine Logo
ResourceOperationParameterDeclaration.setFormat
Code IndexAdd Tabnine to your IDE (free)

How to use
setFormat
method
in
org.restlet.ext.platform.internal.conversion.swagger.v1_2.model.ResourceOperationParameterDeclaration

Best Java code snippets using org.restlet.ext.platform.internal.conversion.swagger.v1_2.model.ResourceOperationParameterDeclaration.setFormat (Showing top 8 results out of 315)

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.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.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.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

/**
 * 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);
  }
}
org.restlet.ext.platform.internal.conversion.swagger.v1_2.modelResourceOperationParameterDeclarationsetFormat

Popular methods of ResourceOperationParameterDeclaration

  • <init>
  • getDefaultValue
  • getDescription
  • getEnum_
  • getFormat
  • getItems
  • getName
  • getParamType
  • getType
  • isAllowMultiple
  • isRequired
  • setAllowMultiple
  • isRequired,
  • setAllowMultiple,
  • setDefaultValue,
  • setDescription,
  • setEnum_,
  • setItems,
  • setName,
  • setParamType,
  • setRequired

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • JFileChooser (javax.swing)
  • JList (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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