Class CssNameConverter
java.lang.Object
com.google.gwt.uibinder.attributeparsers.CssNameConverter
Converts css class names to a form safe to use as a Java identifier.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertName
(String className) convertSet
(Set<String> classNames)
-
Constructor Details
-
CssNameConverter
public CssNameConverter()
-
-
Method Details
-
convertName
- Parameters:
className
- a css class name- Returns:
- the same name in a form safe to use as a Java identifier
-
convertSet
- Parameters:
classNames
- css class names to convert- Returns:
- map of the same class names in a form safe for use as Java identifiers, with the order of the input set preserved
- Throws:
CssNameConverter.Failure
- on collisions due to conversions
-