Tabnine Logo
RamlTranslator.getPathVariable
Code IndexAdd Tabnine to your IDE (free)

How to use
getPathVariable
method
in
org.restlet.ext.platform.internal.conversion.raml.RamlTranslator

Best Java code snippets using org.restlet.ext.platform.internal.conversion.raml.RamlTranslator.getPathVariable (Showing top 8 results out of 315)

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

/**
 * Returns the list of
 * {@link org.restlet.ext.platform.internal.model.PathVariable} as defined
 * by the given {@link org.raml.model.Resource}.
 * 
 * @param resource
 *            The given resource.
 * @return The list of
 *         {@link org.restlet.ext.platform.internal.model.PathVariable} as
 *         defined by the given {@link org.raml.model.Resource}.
 */
private static List<PathVariable> getPathVariables(
    org.raml.model.Resource resource) {
  List<PathVariable> pathVariables = new ArrayList<>();
  for (Entry<String, UriParameter> entry : resource.getUriParameters()
      .entrySet()) {
    pathVariables
        .add(getPathVariable(entry.getKey(), entry.getValue()));
  }
  if (resource.getParentResource() != null) {
    pathVariables
        .addAll(getPathVariables(resource.getParentResource()));
  }
  return pathVariables;
}
origin: org.restlet.gae/org.restlet.ext.platform

for (Entry<String, UriParameter> entry : raml.getBaseUriParameters()
    .entrySet()) {
  rootPathVariables.add(getPathVariable(entry.getKey(),
      entry.getValue()));
origin: org.restlet.gae/org.restlet.ext.platform

/**
 * Returns the list of
 * {@link org.restlet.ext.platform.internal.model.PathVariable} as defined
 * by the given {@link org.raml.model.Resource}.
 * 
 * @param resource
 *            The given resource.
 * @return The list of
 *         {@link org.restlet.ext.platform.internal.model.PathVariable} as
 *         defined by the given {@link org.raml.model.Resource}.
 */
private static List<PathVariable> getPathVariables(
    org.raml.model.Resource resource) {
  List<PathVariable> pathVariables = new ArrayList<>();
  for (Entry<String, UriParameter> entry : resource.getUriParameters()
      .entrySet()) {
    pathVariables
        .add(getPathVariable(entry.getKey(), entry.getValue()));
  }
  if (resource.getParentResource() != null) {
    pathVariables
        .addAll(getPathVariables(resource.getParentResource()));
  }
  return pathVariables;
}
origin: org.restlet.jse/org.restlet.ext.platform

for (Entry<String, UriParameter> entry : raml.getBaseUriParameters()
    .entrySet()) {
  rootPathVariables.add(getPathVariable(entry.getKey(),
      entry.getValue()));
origin: org.restlet.jse/org.restlet.ext.platform

/**
 * Returns the list of
 * {@link org.restlet.ext.platform.internal.model.PathVariable} as defined
 * by the given {@link org.raml.model.Resource}.
 * 
 * @param resource
 *            The given resource.
 * @return The list of
 *         {@link org.restlet.ext.platform.internal.model.PathVariable} as
 *         defined by the given {@link org.raml.model.Resource}.
 */
private static List<PathVariable> getPathVariables(
    org.raml.model.Resource resource) {
  List<PathVariable> pathVariables = new ArrayList<>();
  for (Entry<String, UriParameter> entry : resource.getUriParameters()
      .entrySet()) {
    pathVariables
        .add(getPathVariable(entry.getKey(), entry.getValue()));
  }
  if (resource.getParentResource() != null) {
    pathVariables
        .addAll(getPathVariables(resource.getParentResource()));
  }
  return pathVariables;
}
origin: org.restlet.osgi/org.restlet.ext.platform

for (Entry<String, UriParameter> entry : raml.getBaseUriParameters()
    .entrySet()) {
  rootPathVariables.add(getPathVariable(entry.getKey(),
      entry.getValue()));
origin: org.restlet.osgi/org.restlet.ext.platform

/**
 * Returns the list of
 * {@link org.restlet.ext.platform.internal.model.PathVariable} as defined
 * by the given {@link org.raml.model.Resource}.
 * 
 * @param resource
 *            The given resource.
 * @return The list of
 *         {@link org.restlet.ext.platform.internal.model.PathVariable} as
 *         defined by the given {@link org.raml.model.Resource}.
 */
private static List<PathVariable> getPathVariables(
    org.raml.model.Resource resource) {
  List<PathVariable> pathVariables = new ArrayList<>();
  for (Entry<String, UriParameter> entry : resource.getUriParameters()
      .entrySet()) {
    pathVariables
        .add(getPathVariable(entry.getKey(), entry.getValue()));
  }
  if (resource.getParentResource() != null) {
    pathVariables
        .addAll(getPathVariables(resource.getParentResource()));
  }
  return pathVariables;
}
origin: org.restlet.jee/org.restlet.ext.platform

for (Entry<String, UriParameter> entry : raml.getBaseUriParameters()
    .entrySet()) {
  rootPathVariables.add(getPathVariable(entry.getKey(),
      entry.getValue()));
org.restlet.ext.platform.internal.conversion.ramlRamlTranslatorgetPathVariable

Javadoc

Returns the org.restlet.ext.platform.internal.model.PathVariableas described by the given org.raml.model.parameter.UriParameter.

Popular methods of RamlTranslator

  • fillInputRepresentation
  • fillResources
  • getExampleFromPayLoad
    Returns an example in provided media Type of the entity in the given PayLoad.
  • getPathVariables
    Returns the list of org.restlet.ext.platform.internal.model.PathVariable as defined by the given org
  • getResource
    Returns the list of Resources nested under a given Resource.
  • getSamples
    Builds a sample map for each Representation of the Contract
  • getSecuritySchemes

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • getSharedPreferences (Context)
  • String (java.lang)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top 15 Vim Plugins
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