use of org.ovirt.engine.ui.uicommonweb.validation.NoSpecialCharactersWithDotValidation in project ovirt-engine by oVirt.
the class VmInterfaceModel method validate.
public boolean validate() {
getName().validateEntity(new IValidation[] { new NotEmptyValidation(), new NoSpecialCharactersWithDotValidation() });
getNicType().validateSelectedItem(new IValidation[] { new NotEmptyValidation() });
getProfile().validateSelectedItem(new IValidation[] { new VnicProfileValidation(getNicType().getSelectedItem()) });
getMAC().setIsValid(true);
if (getMAC().getIsChangable()) {
getMAC().validateEntity(new IValidation[] { new NotEmptyValidation(), new UnicastMacAddressValidation() });
}
validateNetworkFilterParameters();
return getName().getIsValid() && getNicType().getIsValid() && getMAC().getIsValid() && getProfile().getIsValid() && getNetworkFilterParameterListModel().getIsValid();
}
Aggregations