class urn_perun_user_attribute_def_def_preferredMail extends UserAttributesModuleAbstract implements UserAttributesModuleImplApi {

	@Override
	public void checkAttributeSemantics(PerunSessionImpl sess, User user, Attribute attribute) throws WrongReferenceAttributeValueException {
		if (attribute.getValue() == null)
			throw new WrongReferenceAttributeValueException(attribute, null, user, null, "User preferred mail can't be set to null.");
	}

}