Class ValidatorAssertions
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.validate.ValidatorAssertions
Provides assertions for validators.
- Author:
- Jens Riemschneider
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidmetaDataAssert(boolean condition, ValidationMessage errorMessage, Object... details) Evaluates the condition and throws an exception if the condition is not met.
-
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.
-