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

How to use
validateResource
method
in
ca.uhn.fhir.validation.IValidatorModule

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

origin: jamesagnew/hapi-fhir

/**
 * Validates a resource instance returning a {@link ca.uhn.fhir.validation.ValidationResult} which contains the results.
 *
 * @param theResource
 *           the resource to validate
 * @return the results of validation
 * @since 1.1
 */
public ValidationResult validateWithResult(String theResource) {
  Validate.notNull(theResource, "theResource must not be null");
  
  applyDefaultValidators();
  
  IValidationContext<IBaseResource> ctx = ValidationContext.forText(myContext, theResource);
  for (IValidatorModule next : myValidators) {
    next.validateResource(ctx);
  }
  return ctx.toResult();
}
origin: jamesagnew/hapi-fhir

/**
 * Validates a resource instance returning a {@link ca.uhn.fhir.validation.ValidationResult} which contains the results.
 *
 * @param theResource
 *           the resource to validate
 * @return the results of validation
 * @since 0.7
 */
public ValidationResult validateWithResult(IBaseResource theResource) {
  Validate.notNull(theResource, "theResource must not be null");
  
  applyDefaultValidators();
  
  IValidationContext<IBaseResource> ctx = ValidationContext.forResource(myContext, theResource);
  for (IValidatorModule next : myValidators) {
    next.validateResource(ctx);
  }
  return ctx.toResult();
}
origin: ca.uhn.hapi.fhir/hapi-fhir-base

/**
 * Validates a resource instance returning a {@link ca.uhn.fhir.validation.ValidationResult} which contains the results.
 *
 * @param theResource
 *           the resource to validate
 * @return the results of validation
 * @since 0.7
 */
public ValidationResult validateWithResult(IBaseResource theResource) {
  Validate.notNull(theResource, "theResource must not be null");
  
  applyDefaultValidators();
  
  IValidationContext<IBaseResource> ctx = ValidationContext.forResource(myContext, theResource);
  for (IValidatorModule next : myValidators) {
    next.validateResource(ctx);
  }
  return ctx.toResult();
}
origin: ca.uhn.hapi.fhir/hapi-fhir-base

/**
 * Validates a resource instance returning a {@link ca.uhn.fhir.validation.ValidationResult} which contains the results.
 *
 * @param theResource
 *           the resource to validate
 * @return the results of validation
 * @since 1.1
 */
public ValidationResult validateWithResult(String theResource) {
  Validate.notNull(theResource, "theResource must not be null");
  
  applyDefaultValidators();
  
  IValidationContext<IBaseResource> ctx = ValidationContext.forText(myContext, theResource);
  for (IValidatorModule next : myValidators) {
    next.validateResource(ctx);
  }
  return ctx.toResult();
}
ca.uhn.fhir.validationIValidatorModulevalidateResource

Javadoc

Validate the actual resource. The IValidationContext can be used to access the resource being validated, and is populated with the results.

Popular methods of IValidatorModule

    Popular in Java

    • Reactive rest calls using spring rest template
    • notifyDataSetChanged (ArrayAdapter)
    • getResourceAsStream (ClassLoader)
    • addToBackStack (FragmentTransaction)
    • RandomAccessFile (java.io)
      Allows reading from and writing to a file in a random-access manner. This is different from the uni-
    • URL (java.net)
      A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
    • Collections (java.util)
      This class consists exclusively of static methods that operate on or return collections. It contains
    • Iterator (java.util)
      An iterator over a sequence of objects, such as a collection.If a collection has been changed since
    • TreeSet (java.util)
      TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
    • JarFile (java.util.jar)
      JarFile is used to read jar entries and their associated data from jar files.
    • Top Sublime Text 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