use of org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidation in project ovirt-engine by oVirt.
the class SetupNetworksBondModel method validate.
public boolean validate() {
getBond().validateSelectedItem(new IValidation[] { new NotEmptyValidation(), new LengthValidation(BusinessEntitiesDefinitions.HOST_NIC_NAME_LENGTH), new BondNameValidation() });
getCustomBondEditor().setIsValid(true);
if (getBondingOptions().getSelectedItem().getKey().equals(CUSTOM_BONDING_MODE)) {
getCustomBondEditor().validateEntity(new IValidation[] { new KeyValueFormatValidation() });
}
return getBond().getIsValid() && getCustomBondEditor().getIsValid();
}
Aggregations