Enum Class OutputRenamingMapFormat

java.lang.Object
java.lang.Enum<OutputRenamingMapFormat>
com.google.common.css.OutputRenamingMapFormat
All Implemented Interfaces:
Serializable, Comparable<OutputRenamingMapFormat>, Constable

public enum OutputRenamingMapFormat extends Enum<OutputRenamingMapFormat>
Defines the values for the --output-renaming-map-format flag in Closure Stylesheets.
  • Enum Constant Details

    • CLOSURE_COMPILED

      public static final OutputRenamingMapFormat CLOSURE_COMPILED
      Reads/Writes the mapping as JSON, passed as an argument to goog.setCssNameMapping(). Designed for use with the Closure Library in compiled mode.
    • CLOSURE_COMPILED_BY_WHOLE

      public static final OutputRenamingMapFormat CLOSURE_COMPILED_BY_WHOLE
      Reads/Writes the mapping as JSON, passed as an argument to goog.setCssNameMapping() using the 'BY_WHOLE' mapping style. Designed for use with the Closure Library in compiled mode where the CSS name substitutions are taken as-is, which allows, e.g., using SimpleSubstitutionMap with class names containing hyphens.
    • CLOSURE_COMPILED_SPLIT_HYPHENS

      public static final OutputRenamingMapFormat CLOSURE_COMPILED_SPLIT_HYPHENS
      Before writing the mapping as CLOSURE_COMPILED, split the css name maps by hyphens and write out each piece individually. see CLOSURE_COMPILED
    • CLOSURE_UNCOMPILED

      public static final OutputRenamingMapFormat CLOSURE_UNCOMPILED
      Reads/Writes the mapping as JSON, assigned to the global JavaScript variable CLOSURE_CSS_NAME_MAPPING. Designed for use with the Closure Library in uncompiled mode.
    • JSON

      public static final OutputRenamingMapFormat JSON
      Reads/Writes the mapping as JSON.
    • PROPERTIES

      public static final OutputRenamingMapFormat PROPERTIES
      Reads/Writes the mapping from/in a .properties file format, such that it can be read by Properties.
    • JSCOMP_VARIABLE_MAP

      public static final OutputRenamingMapFormat JSCOMP_VARIABLE_MAP
      This is the current default behavior for output maps. Still used for legacy reasons.
  • Method Details