| Package | Description |
|---|---|
| org.carrot2.labs.smartsprites.css |
SmartSprites Ant task.
|
| Modifier and Type | Method and Description |
|---|---|
static List<CssProperty> |
CssSyntaxUtils.extractProperties(String text)
Extracts CSS properties from the provided
String. |
static List<CssProperty> |
CssSyntaxUtils.extractRules(String text,
MessageLog messageLog)
Extracts CSS properties from the provided
String and logs warnings to the
provided MessageLog. |
static Map<String,CssProperty> |
CssSyntaxUtils.propertiesAsMap(Collection<CssProperty> rules)
Converts the provided collection of CSS properties to a
Map with keys being
property names and values being CssProperty objects. |
| Modifier and Type | Method and Description |
|---|---|
static String |
CssSyntaxUtils.getValue(Map<String,CssProperty> rules,
String property)
Returns the value of a CSS property if it exists,
null otherwise. |
static boolean |
CssSyntaxUtils.hasNonBlankValue(Map<String,CssProperty> properties,
String propertyName)
Returns
true if the the provided map contains a property with the
specified name that has a non-blank value. |
static Map<String,CssProperty> |
CssSyntaxUtils.propertiesAsMap(Collection<CssProperty> rules)
Converts the provided collection of CSS properties to a
Map with keys being
property names and values being CssProperty objects. |
Copyright © 2013 Carrot Search s.c.. All Rights Reserved.