Codota Logo
DocumentResolver
Code IndexAdd Codota to your IDE (free)

How to use
DocumentResolver
in
io.github.swagger2markup.internal.resolver

Best Java code snippets using io.github.swagger2markup.internal.resolver.DocumentResolver (Showing top 13 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: Swagger2Markup/swagger2markup

nameColumnBuilder.add(boldText(markupDocBuilder, crossReference(markupDocBuilder, securityDocumentResolver.apply(securityKey), securityKey, securityKey)));
scopeColumnBuilder.add(Joiner.on(",").join(securityEntry.getValue()));
origin: Swagger2Markup/swagger2markup

String refName = ((RefParameter) parameter).getSimpleRef();
type = new RefType(definitionDocumentResolver.apply(refName), new ObjectType(refName, null /* FIXME, not used for now */));
origin: Swagger2Markup/swagger2markup

  return new RefType(definitionDocumentResolver.apply(refName), refType);
} else if (model instanceof ArrayModel) {
  ArrayModel arrayModel = ((ArrayModel) model);
origin: Swagger2Markup/swagger2markup

    type = new ObjectType(refProperty.getTitle(), null); // FIXME : Workaround for https://github.com/swagger-api/swagger-parser/issues/177
  else
    type = new RefType(definitionDocumentResolver.apply(refProperty.getSimpleRef()), new ObjectType(refProperty.getSimpleRef(), null /* FIXME, not used for now */));
} else if (property instanceof ArrayProperty) {
  ArrayProperty arrayProperty = (ArrayProperty) property;
origin: org.tomitribe/swagger2markup

public Type getType(DocumentResolver definitionDocumentResolver) {
  if (schema.get$ref() != null) {
    String refName = RefUtils.computeSimpleRef(schema.get$ref());
    return type = new RefType(definitionDocumentResolver.apply(refName), new ObjectType(refName, null));
  } else {
    return ModelUtils.getType(schema, context.getSwagger().getComponents().getSchemas(),
                 definitionDocumentResolver);
  }
}
origin: org.tomitribe/swagger2markup

/**
 * Retrieves the type of a parameter, or otherwise null
 *
 * @param definitionDocumentResolver the definition document resolver
 * @return the type of the parameter, or otherwise null
 */
private Type getType(DocumentResolver definitionDocumentResolver) {
  Validate.notNull(parameter, "parameter must not be null!");
  Type type;
  if (parameter.get$ref() != null) {
    String refName = RefUtils.computeSimpleRef(parameter.get$ref());
    type = new RefType(definitionDocumentResolver.apply(refName), new ObjectType(refName, null));
  } else {
    Schema serializableParameter = parameter.getSchema();
    @SuppressWarnings("unchecked")
    List<String> enums = serializableParameter.getEnum();
    if (CollectionUtils.isNotEmpty(enums)) {
      type = new EnumType(serializableParameter.getName(), enums);
    } else {
      type = new BasicType(serializableParameter.getType(), serializableParameter.getName(), serializableParameter.getFormat());
    }
    if (serializableParameter.getType().equals("array")) {
      String collectionFormat = serializableParameter.getFormat();
      type = new ArrayType(serializableParameter.getName(), new PropertyAdapter(serializableParameter).getType(definitionDocumentResolver), collectionFormat);
    }
  }
  return type;
}
origin: io.github.swagger2markup/swagger2markup

nameColumnBuilder.add(boldText(markupDocBuilder, crossReference(markupDocBuilder, securityDocumentResolver.apply(securityKey), securityKey, securityKey)));
scopeColumnBuilder.add(Joiner.on(",").join(securityEntry.getValue()));
origin: org.tomitribe/swagger2markup

nameColumnBuilder.add(boldText(markupDocBuilder, crossReference(markupDocBuilder, securityDocumentResolver.apply(securityKey), securityKey, securityKey)));
scopeColumnBuilder.add(Joiner.on(",").join(securityEntry.getValue()));
origin: io.github.swagger2markup/swagger2markup

String refName = ((RefParameter) parameter).getSimpleRef();
type = new RefType(definitionDocumentResolver.apply(refName), new ObjectType(refName, null /* FIXME, not used for now */));
origin: org.tomitribe/swagger2markup

  return new RefType(definitionDocumentResolver.apply(refName), refType);
} else if (model instanceof ArraySchema) {
  ArraySchema arrayModel = ((ArraySchema) model);
origin: io.github.swagger2markup/swagger2markup

  return new RefType(definitionDocumentResolver.apply(refName), refType);
} else if (model instanceof ArrayModel) {
  ArrayModel arrayModel = ((ArrayModel) model);
origin: org.tomitribe/swagger2markup

if (property.get$ref() != null) {
  String ref = computeSimpleRef(property.get$ref());
  type = new RefType(definitionDocumentResolver.apply(ref), new ObjectType(ref, null  /*FIXME, not used for now */));
} else if (property instanceof ArraySchema) {
  ArraySchema arrayProperty = (ArraySchema) property;
origin: io.github.swagger2markup/swagger2markup

    type = new ObjectType(refProperty.getTitle(), null); // FIXME : Workaround for https://github.com/swagger-api/swagger-parser/issues/177
  else
    type = new RefType(definitionDocumentResolver.apply(refProperty.getSimpleRef()), new ObjectType(refProperty.getSimpleRef(), null /* FIXME, not used for now */));
} else if (property instanceof ArrayProperty) {
  ArrayProperty arrayProperty = (ArrayProperty) property;
io.github.swagger2markup.internal.resolverDocumentResolver

Javadoc

A functor to return the document part of an inter-document cross-references, depending on the context.

Most used methods

  • apply

Popular in Java

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now