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

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

Best Java code snippets using ca.uhn.fhir.validation.IValidatorModule (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.validationIValidatorModule

Javadoc

An individual validation module, which applies validation rules against resources and adds failure/informational messages as it goes. See Validation for a list of available modules. You may also create your own.

Most used methods

  • validateResource
    Validate the actual resource. The IValidationContext can be used to access the resource being valida

Popular in Java

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • getSystemService (Context)
  • runOnUiThread (Activity)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • String (java.lang)
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Table (org.hibernate.mapping)
    A relational table
  • Best IntelliJ 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