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

How to use
setEnum_
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.setEnum_ (Showing top 4 results out of 315)

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

Popular methods of ResourceOperationParameterDeclaration

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Best IntelliJ 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