Tabnine Logo
PrimitiveType.get
Code IndexAdd Tabnine to your IDE (free)

How to use
get
method
in
com.palantir.conjure.spec.PrimitiveType

Best Java code snippets using com.palantir.conjure.spec.PrimitiveType.get (Showing top 6 results out of 315)

origin: palantir/conjure

  @Override
  public Boolean visitPrimitive(PrimitiveType value) {
    return value.get() == PrimitiveType.Value.ANY;
  }
}
origin: palantir/conjure

  @Override
  public Boolean visitPrimitive(PrimitiveType value) {
    return value.get() == PrimitiveType.Value.BINARY;
  }
}
origin: com.palantir.conjure/conjure-generator-common

  @Override
  public Boolean visitPrimitive(PrimitiveType value) {
    return value.get() == PrimitiveType.Value.BINARY;
  }
}
origin: com.palantir.conjure/conjure-generator-common

  @Override
  public Boolean visitPrimitive(PrimitiveType value) {
    return value.get() == PrimitiveType.Value.ANY;
  }
}
origin: palantir/conjure

private static Optional<TypeName> resolveReferenceType(Type type) {
  if (type.accept(TypeVisitor.IS_REFERENCE)) {
    return Optional.of(type.accept(TypeVisitor.REFERENCE));
  } else if (type.accept(TypeVisitor.IS_PRIMITIVE)) {
    return Optional.of(
        TypeName.of(type.accept(TypeVisitor.PRIMITIVE).get().name(), ""));
  }
  return Optional.empty();
}
origin: palantir/conjure

  @Override
  public void validate(EndpointDefinition definition, DealiasingTypeVisitor dealiasingTypeVisitor) {
    definition.getArgs().stream()
        .filter(entry -> entry.getParamType().accept(ParameterTypeVisitor.IS_PATH)
            || entry.getParamType().accept(ParameterTypeVisitor.IS_QUERY))
        .forEach(entry -> {
          Either<TypeDefinition, Type> conjureType = dealiasingTypeVisitor.dealias(entry.getType());
          boolean isValid = conjureType.fold(
              typeDefinition -> true,
              type -> !type.accept(TypeVisitor.IS_PRIMITIVE)
                  || type.accept(TypeVisitor.PRIMITIVE).get() != PrimitiveType.Value.BEARERTOKEN
          );
          Preconditions.checkState(isValid,
              "Path or query parameters of type 'bearertoken' are not allowed as this "
                  + "would introduce a security vulnerability: \"%s\"",
              entry.getArgName());
        });
  }
}
com.palantir.conjure.specPrimitiveTypeget

Popular methods of PrimitiveType

  • valueOf

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • JCheckBox (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • 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