| java.lang.Object nl.hippo.cms.brokenlinkchecker.util.Validation
Validation | public class Validation (Code) | |
A utility class to help with validation.
|
Constructor Summary | |
public | Validation()
The only and private constructor to prevent instantiation of this
class. |
Method Summary | |
public static boolean | assertTrue(boolean predicateResult, StringBuffer validationErrorMessage, String predicateErrorMessage)
Check if a predicate was true. |
Validation | public Validation()(Code) | |
The only and private constructor to prevent instantiation of this
class.
|
assertTrue | public static boolean assertTrue(boolean predicateResult, StringBuffer validationErrorMessage, String predicateErrorMessage)(Code) | |
Check if a predicate was true. If not add an error message to the
full error message.
Parameters: predicateResult - the result of the predicate. Parameters: validationErrorMessage - the full error message to which to append the errormessage if the predicate result is false . Parameters: predicateErrorMessage - the error message to append if the predicate result isfalse . true if the predicate was true,false otherwise. |
|
|