public class CssNameConverter
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CssNameConverter.Failure
Thrown by
convertSet(Set) on name collision. |
Constructor and Description |
---|
CssNameConverter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
convertName(java.lang.String className) |
java.util.Map<java.lang.String,java.lang.String> |
convertSet(java.util.Set<java.lang.String> classNames) |
public java.lang.String convertName(java.lang.String className)
className
- a css class namepublic java.util.Map<java.lang.String,java.lang.String> convertSet(java.util.Set<java.lang.String> classNames) throws CssNameConverter.Failure
classNames
- css class names to convertCssNameConverter.Failure
- on collisions due to conversions