public void populate(FBValidation validation) throws FormBuilderException {
if (!(validation instanceof XORValidation)) {
throw new FormBuilderException(i18n.RepNotOfType(validation.getClass().getName(), "XORValidation"));
}
subValidations.clearItems();
XORValidation xor = (XORValidation) validation;
List<FBValidation> subVals = xor.getValidations();
for (FBValidation subVal : subVals) {
FBValidationItem item = createValidation(subVal);
subValidations.addItem(item);
}
}