Examples of IResourceErrorGroup


Examples of com.phloc.commons.error.IResourceErrorGroup

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

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

    if (errors.getAllErrors().containsOnlySuccess()) {
      return;
    }

    for (IResourceError next : errors.getAllErrors().getAllResourceErrors()) {
      Issue issue = theCtx.getOperationOutcome().addIssue();
      switch (next.getErrorLevel()) {
      case ERROR:
        issue.setSeverity(IssueSeverityEnum.ERROR);
        break;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.