Class Hl7v3ValidationProfile

java.lang.Object
org.openehealth.ipf.commons.ihe.hl7v3.Hl7v3ValidationProfile
All Implemented Interfaces:
CombinedXmlValidationProfile

public class Hl7v3ValidationProfile extends Object implements CombinedXmlValidationProfile
Author:
Dmytro Rud
  • Field Details

  • Constructor Details

    • Hl7v3ValidationProfile

      public Hl7v3ValidationProfile(org.openehealth.ipf.commons.ihe.hl7v3.Hl7v3ValidationProfile.Row... rows)
  • Method Details

    • isValidRootElement

      public boolean isValidRootElement(String rootElementName)
      Specified by:
      isValidRootElement in interface CombinedXmlValidationProfile
      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

      public String getXsdPath(String rootElementName)
      Specified by:
      getXsdPath in interface CombinedXmlValidationProfile
      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

      public String getSchematronPath(String rootElementName)
      Specified by:
      getSchematronPath in interface CombinedXmlValidationProfile
      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

      public Map<String,Object> getCustomSchematronParameters(String rootElementName)
      Specified by:
      getCustomSchematronParameters in interface CombinedXmlValidationProfile
      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.