Interface CombinedXmlValidationProfile

All Known Implementing Classes:
ChPpq1RequestValidationProfile, Hl7v3ValidationProfile

public interface CombinedXmlValidationProfile
Interface for combined (XML Schema + Schematron) validation profiles.
Author:
Dmytro Rud
  • Method Details

    • isValidRootElement

      boolean isValidRootElement(String rootElementName)
      Parameters:
      rootElementName - local name of root XML element of the document that is being validated.
      Returns:
      true when the given element name is acceptable, false otherwise
    • getXsdPath

      String getXsdPath(String rootElementName)
      Parameters:
      rootElementName - local name of root XML element of the document that is being validated (already checked for acceptance).
      Returns:
      path to XML Schema definition for the given XML root element, or null, when no XML Schema validation should be performed.
    • getSchematronPath

      String getSchematronPath(String rootElementName)
      Parameters:
      rootElementName - local name of root XML element of the document that is being validated. (already checked for acceptance).
      Returns:
      path to Schematron template for the given XML root element, or null, when no Schematron validation should be performed.
    • getCustomSchematronParameters

      Map<String,Object> getCustomSchematronParameters(String rootElementName)
      Parameters:
      rootElementName - local name of root XML element of the document that is being validated. (already checked for acceptance).
      Returns:
      a map containing custom Schematron validation parameters, or null, when such parameters are not necessary.