class InlineNotification implements IsElement {

    public void setType(final InlineNotificationType type) {
        Stream.of(InlineNotificationType.values()).forEach(availableType -> {
            removeCSSClass(alert, availableType.getCssClass());
            removeCSSClass(icon, availableType.getIcon());
        });
        addCSSClass(alert,
                    type.getCssClass());
        addCSSClass(icon,
                    type.getIcon());
    }

}