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

How to use
setAllowMultiple
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.setAllowMultiple (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.modelResourceOperationParameterDeclarationsetAllowMultiple

Popular methods of ResourceOperationParameterDeclaration

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

Popular in Java

  • Updating database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • setScale (BigDecimal)
  • Menu (java.awt)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JComboBox (javax.swing)
  • Top PhpStorm plugins
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