public abstract class ValidatorAssertions extends Object
Modifier and Type | Method and Description |
---|---|
static void |
metaDataAssert(boolean condition,
ValidationMessage errorMessage,
Object... details)
Evaluates the condition and throws an exception if the condition is not met.
|
public static void metaDataAssert(boolean condition, ValidationMessage errorMessage, Object... details) throws XDSMetaDataException
condition
- the condition.errorMessage
- the error message for the exception.details
- objects required by the message text formatting.XDSMetaDataException
- if the validation failed.Copyright © 2018 Open eHealth Foundation. All rights reserved.