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

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

Best Java code snippets using ca.uhn.fhir.validation.FhirValidator.haveValidatorOfType (Showing top 6 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)
 */
public synchronized boolean isValidateAgainstStandardSchema() {
  return haveValidatorOfType(SchemaBaseValidator.class);
}
origin: jamesagnew/hapi-fhir

/**
 * Should the validator validate the resource against the base schema (the schema provided with the FHIR distribution itself)
 */
public synchronized boolean isValidateAgainstStandardSchematron() {
  if (!ourPhPresentOnClasspath) {
    // No need to ask since we dont have Ph-Schematron. Also Class.forname will complain
    // about missing ph-schematron import.
    return false;
  }
  Class<? extends IValidatorModule> cls = SchematronProvider.getSchematronValidatorClass();
  return haveValidatorOfType(cls);
}
origin: jamesagnew/hapi-fhir

private void addOrRemoveValidator(boolean theValidateAgainstStandardSchema, Class<? extends IValidatorModule> type, IValidatorModule theInstance) {
  if (theValidateAgainstStandardSchema) {
    boolean found = haveValidatorOfType(type);
    if (!found) {
      registerValidatorModule(theInstance);
    }
  } else {
    for (Iterator<IValidatorModule> iter = myValidators.iterator(); iter.hasNext();) {
      IValidatorModule next = iter.next();
      if (next.getClass().equals(type)) {
        unregisterValidatorModule(next);
      }
    }
  }
}
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)
 */
public synchronized boolean isValidateAgainstStandardSchema() {
  return haveValidatorOfType(SchemaBaseValidator.class);
}
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)
 */
public synchronized boolean isValidateAgainstStandardSchematron() {
  if (!ourPhPresentOnClasspath) {
    // No need to ask since we dont have Ph-Schematron. Also Class.forname will complain
    // about missing ph-schematron import.
    return false;
  }
  Class<? extends IValidatorModule> cls = SchematronProvider.getSchematronValidatorClass();
  return haveValidatorOfType(cls);
}
origin: ca.uhn.hapi.fhir/hapi-fhir-base

private void addOrRemoveValidator(boolean theValidateAgainstStandardSchema, Class<? extends IValidatorModule> type, IValidatorModule theInstance) {
  if (theValidateAgainstStandardSchema) {
    boolean found = haveValidatorOfType(type);
    if (!found) {
      registerValidatorModule(theInstance);
    }
  } else {
    for (Iterator<IValidatorModule> iter = myValidators.iterator(); iter.hasNext();) {
      IValidatorModule next = iter.next();
      if (next.getClass().equals(type)) {
        unregisterValidatorModule(next);
      }
    }
  }
}
ca.uhn.fhir.validationFhirValidatorhaveValidatorOfType

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
  • addOrRemoveValidator
  • applyDefaultValidators
  • 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 12 Jupyter Notebook extensions
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