Package org.oclc.purl.dsdl.svrl

Examples of org.oclc.purl.dsdl.svrl.SchematronOutputType


  public void validateResource(ValidationContext<IResource> theCtx) {

    ISchematronResource sch = getSchematron(theCtx);
    StreamSource source = new StreamSource(new StringReader(theCtx.getXmlEncodedResource()));

    SchematronOutputType results = SchematronHelper.applySchematron(sch, source);
    if (results == null) {
      return;
    }

    IResourceErrorGroup errors = SchematronHelper.convertToResourceErrorGroup(results, theCtx.getFhirContext().getResourceDefinition(theCtx.getResource()).getBaseDefinition().getName());
View Full Code Here

TOP

Related Classes of org.oclc.purl.dsdl.svrl.SchematronOutputType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.