Class ValidatorAssertions

java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.validate.ValidatorAssertions

public abstract class ValidatorAssertions extends Object
Provides assertions for validators.
Author:
Jens Riemschneider
  • Method Details

    • metaDataAssert

      public static void metaDataAssert(boolean condition, ValidationMessage errorMessage, Object... details) throws XDSMetaDataException
      Evaluates the condition and throws an exception if the condition is not met.
      Parameters:
      condition - the condition.
      errorMessage - the error message for the exception.
      details - objects required by the message text formatting.
      Throws:
      XDSMetaDataException - if the validation failed.