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