Tabnine Logo
LenientErrorHandler.setErrorOnInvalidValue
Code IndexAdd Tabnine to your IDE (free)

How to use
setErrorOnInvalidValue
method
in
ca.uhn.fhir.parser.LenientErrorHandler

Best Java code snippets using ca.uhn.fhir.parser.LenientErrorHandler.setErrorOnInvalidValue (Showing top 4 results out of 315)

origin: jamesagnew/hapi-fhir

@Override
public IBaseResource getResource() {
  if (myParsed == null) {
    IParser parser = getResourceAsStringEncoding().newParser(getFhirContext());
    LenientErrorHandler errorHandler = new LenientErrorHandler();
    errorHandler.setErrorOnInvalidValue(false);
    parser.setParserErrorHandler(errorHandler);
    myParsed = parser.parseResource(getResourceAsString());
  }
  return myParsed;
}
origin: jamesagnew/hapi-fhir

if (resourceEncoding != ResourceEncodingEnum.DEL) {
  IParser parser = resourceEncoding.newParser(getContext(theEntity.getFhirVersion()));
  parser.setParserErrorHandler(new LenientErrorHandler(false).setErrorOnInvalidValue(false));
origin: ca.uhn.hapi.fhir/hapi-fhir-base

@Override
public IBaseResource getResource() {
  if (myParsed == null) {
    IParser parser = getResourceAsStringEncoding().newParser(getFhirContext());
    LenientErrorHandler errorHandler = new LenientErrorHandler();
    errorHandler.setErrorOnInvalidValue(false);
    parser.setParserErrorHandler(errorHandler);
    myParsed = parser.parseResource(getResourceAsString());
  }
  return myParsed;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-jpaserver-base

if (resourceEncoding != ResourceEncodingEnum.DEL) {
  IParser parser = resourceEncoding.newParser(getContext(theEntity.getFhirVersion()));
  parser.setParserErrorHandler(new LenientErrorHandler(false).setErrorOnInvalidValue(false));
ca.uhn.fhir.parserLenientErrorHandlersetErrorOnInvalidValue

Javadoc

If set to false (default is true) invalid values will be logged. By default invalid attribute values cause this error handler to throw a DataFormatException (unlike other methods in this class which default to simply logging errors).

Note that empty values (e.g. "") will not lead to an error when this is set to true, only invalid values (e.g. a gender code of foo)

Popular methods of LenientErrorHandler

  • <init>
    Constructor
  • createIncorrectJsonTypeMessage

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • startActivity (Activity)
  • setContentView (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Github Copilot alternatives
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