/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }