Class CssNameConverter

java.lang.Object
com.google.gwt.uibinder.attributeparsers.CssNameConverter

public class CssNameConverter extends Object
Converts css class names to a form safe to use as a Java identifier.
  • Constructor Details

    • CssNameConverter

      public CssNameConverter()
  • Method Details

    • convertName

      public String convertName(String className)
      Parameters:
      className - a css class name
      Returns:
      the same name in a form safe to use as a Java identifier
    • convertSet

      public Map<String,String> convertSet(Set<String> classNames) throws CssNameConverter.Failure
      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