congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
FhirValidator.addOrRemoveValidator
Code IndexAdd Tabnine to your IDE (free)

How to use
addOrRemoveValidator
method
in
ca.uhn.fhir.validation.FhirValidator

Best Java code snippets using ca.uhn.fhir.validation.FhirValidator.addOrRemoveValidator (Showing top 4 results out of 315)

origin: jamesagnew/hapi-fhir

/**
 * Should the validator validate the resource against the base schema (the schema provided with the FHIR distribution itself)
 * 
 * @return Returns a referens to <code>this<code> for method chaining
 */
public synchronized  FhirValidator setValidateAgainstStandardSchema(boolean theValidateAgainstStandardSchema) {
  addOrRemoveValidator(theValidateAgainstStandardSchema, SchemaBaseValidator.class, new SchemaBaseValidator(myContext));
  return this;
}
origin: jamesagnew/hapi-fhir

/**
 * Should the validator validate the resource against the base schematron (the schematron provided with the FHIR distribution itself)
 * 
 * @return Returns a referens to <code>this<code> for method chaining
 */
public synchronized FhirValidator setValidateAgainstStandardSchematron(boolean theValidateAgainstStandardSchematron) {
  if (theValidateAgainstStandardSchematron && !ourPhPresentOnClasspath) {
    throw new IllegalArgumentException(myContext.getLocalizer().getMessage(I18N_KEY_NO_PH_ERROR));
  }
  if (!theValidateAgainstStandardSchematron && !ourPhPresentOnClasspath) {
    return this;
  }
  Class<? extends IValidatorModule> cls = SchematronProvider.getSchematronValidatorClass();
  IValidatorModule instance = SchematronProvider.getSchematronValidatorInstance(myContext);
  addOrRemoveValidator(theValidateAgainstStandardSchematron, cls, instance);
  return this;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-base

/**
 * Should the validator validate the resource against the base schema (the schema provided with the FHIR distribution itself)
 * 
 * @return Returns a referens to <code>this<code> for method chaining
 */
public synchronized  FhirValidator setValidateAgainstStandardSchema(boolean theValidateAgainstStandardSchema) {
  addOrRemoveValidator(theValidateAgainstStandardSchema, SchemaBaseValidator.class, new SchemaBaseValidator(myContext));
  return this;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-base

/**
 * Should the validator validate the resource against the base schematron (the schematron provided with the FHIR distribution itself)
 * 
 * @return Returns a referens to <code>this<code> for method chaining
 */
public synchronized FhirValidator setValidateAgainstStandardSchematron(boolean theValidateAgainstStandardSchematron) {
  if (theValidateAgainstStandardSchematron && !ourPhPresentOnClasspath) {
    throw new IllegalArgumentException(myContext.getLocalizer().getMessage(I18N_KEY_NO_PH_ERROR));
  }
  if (!theValidateAgainstStandardSchematron && !ourPhPresentOnClasspath) {
    return this;
  }
  Class<? extends IValidatorModule> cls = SchematronProvider.getSchematronValidatorClass();
  IValidatorModule instance = SchematronProvider.getSchematronValidatorInstance(myContext);
  addOrRemoveValidator(theValidateAgainstStandardSchematron, cls, instance);
  return this;
}
ca.uhn.fhir.validationFhirValidatoraddOrRemoveValidator

Popular methods of FhirValidator

  • validateWithResult
    Validates a resource instance returning a ca.uhn.fhir.validation.ValidationResult which contains the
  • registerValidatorModule
    Add a new validator module to this validator. You may register as many modules as you like at any ti
  • setValidateAgainstStandardSchema
    Should the validator validate the resource against the base schema (the schema provided with the FHI
  • setValidateAgainstStandardSchematron
    Should the validator validate the resource against the base schematron (the schematron provided with
  • <init>
    Constructor (this should not be called directly, but rather FhirContext#newValidator() should be cal
  • applyDefaultValidators
  • haveValidatorOfType
  • unregisterValidatorModule
    Removes a validator module from this validator. You may register as many modules as you like, and re

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • compareTo (BigDecimal)
  • setContentView (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Collectors (java.util.stream)
  • JButton (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for Android Studio
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