Style extends AbstractAttribute implements GlobalAttributable, StateChangeInformer<CssProperty> { public void removeAllCssProperties() { final long stamp = lock.writeLock(); try { cssProperties.clear(); abstractCssPropertyClassObjects.clear(); super.removeAllFromAttributeValueMap(); } finally { lock.unlockWrite(stamp); } } Style();  Style(final String styles);  Style(final Map<String, String> styles);  Style(final CssProperty... cssProperties);  Style(final boolean important, final CssProperty... cssProperties); static void addSupportForNewCustomCssClass(final String cssName,
            final Class<?> cssClass); static void removeSupportOfCssClass(final Class<?> cssClass); static void removeSupportOfCssClasses(final Class<?>... cssClasses); void addCssProperties(final String cssProperties); boolean addCssProperties(final Map<String, String> cssProperties); boolean addCssProperty(final String cssName, final String cssValue); void addCssProperties(final boolean important,
            final CssProperty... cssProperties); List<CssProperty> addCssProperties(
            final CssProperty... cssProperties); @Deprecated List<CssProperty> addCssProperties(
            final Collection<? extends CssProperty> cssProperties); CssProperty addCssProperty(final CssProperty cssProperty); boolean removeCssProperty(final String cssName); boolean removeCssProperty(final String cssName,
            final String cssValue); boolean removeCssProperty(final CssProperty cssProperty); List<Boolean> removeCssProperties(
            final CssProperty... cssProperties); void removeAllCssProperties(); boolean contains(final CssProperty cssProperty); @Deprecated List<Boolean> removeCssProperties(
            final Collection<CssProperty> cssProperties); boolean markAsImportant(final String styleName); boolean markAsUnimportant(final String styleName); boolean isImportant(final CssProperty cssProperty); boolean isImportant(final String styleName); CssProperty getCssProperty(final String cssName); Collection<CssProperty> getCssProperties(); int getCssPropertiesSize(); boolean isCssPropertiesEmpty(); @Override void stateChanged(final CssProperty stateChangedObject); static Map<String, Class<?>> getSupportedCsspropertyClasses(); @Override String getAttributeValue();  }
@Test public void testRemoveAllCssProperties() { final Style style = new Style("color:green"); assertEquals("style=\"color:green;\"", style.toHtmlString()); assertEquals("color:green;", style.getAttributeValue()); assertEquals(1, style.getCssProperties().size()); style.removeAllCssProperties(); assertEquals("style", style.toHtmlString()); assertEquals("", style.getAttributeValue()); assertEquals(0, style.getCssProperties().size()); }