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

How to use
IResourceLoader
in
ca.uhn.fhir.validation

Best Java code snippets using ca.uhn.fhir.validation.IResourceLoader (Showing top 2 results out of 315)

origin: jamesagnew/hapi-fhir

private <T extends IBaseResource> T tryToLoad(Class<T> theType, IIdType theReference,
                               List<ValidationMessage> theMessages) {
  if (myResourceLoader == null) {
    theMessages.add(new ValidationMessage().setLevel(IssueSeverity.FATAL)
      .setMessage("No resource loader present, could not load " + theReference));
    return null;
  }
  try {
    T retVal = myResourceLoader.load(theType, theReference);
    if (retVal == null) {
      throw new IllegalStateException(
        "ResourceLoader returned null. This is a bug with the resourceloader. Reference was: " + theReference);
    }
    return retVal;
  } catch (ResourceNotFoundException e) {
    theMessages.add(new ValidationMessage().setLevel(IssueSeverity.FATAL)
      .setMessage("Reference could not be found: " + theReference));
    return null;
  }
}
origin: ca.uhn.hapi.fhir/hapi-fhir-validation

private <T extends IBaseResource> T tryToLoad(Class<T> theType, IIdType theReference,
                               List<ValidationMessage> theMessages) {
  if (myResourceLoader == null) {
    theMessages.add(new ValidationMessage().setLevel(IssueSeverity.FATAL)
      .setMessage("No resource loader present, could not load " + theReference));
    return null;
  }
  try {
    T retVal = myResourceLoader.load(theType, theReference);
    if (retVal == null) {
      throw new IllegalStateException(
        "ResourceLoader returned null. This is a bug with the resourceloader. Reference was: " + theReference);
    }
    return retVal;
  } catch (ResourceNotFoundException e) {
    theMessages.add(new ValidationMessage().setLevel(IssueSeverity.FATAL)
      .setMessage("Reference could not be found: " + theReference));
    return null;
  }
}
ca.uhn.fhir.validationIResourceLoader

Most used methods

  • load
    Load the latest version of a given resource

Popular in Java

  • Reading from database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • getSystemService (Context)
  • findViewById (Activity)
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Reference (javax.naming)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • 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