Package com.google.common.css
Class PrefixingSubstitutionMap
java.lang.Object
com.google.common.css.PrefixingSubstitutionMap
- All Implemented Interfaces:
MultipleMappingSubstitutionMap,SubstitutionMap,SubstitutionMap.Initializable
public class PrefixingSubstitutionMap
extends Object
implements MultipleMappingSubstitutionMap, SubstitutionMap.Initializable
A
SubstitutionMap implementation that prefixes the renamed CSS class names (provided by a
delegate substitution map).-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.common.css.MultipleMappingSubstitutionMap
MultipleMappingSubstitutionMap.ValueWithMappingsNested classes/interfaces inherited from interface com.google.common.css.SubstitutionMap
SubstitutionMap.Initializable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the string that should be substituted forkey.Like an ordinarySubstitutionMap, this returns a value to substitute for the specifiedkey.voidinitializeWithMappings(Map<String, String> newMappings)
-
Constructor Details
-
PrefixingSubstitutionMap
-
-
Method Details
-
initializeWithMappings
- Specified by:
initializeWithMappingsin interfaceSubstitutionMap.Initializable
-
get
Description copied from interface:SubstitutionMapGets the string that should be substituted forkey. The same value must be consistently returned for any particularkey, and the returned value must not be returned for any otherkeyvalue.- Specified by:
getin interfaceSubstitutionMap- Parameters:
key- the text to be replaced (never null)- Returns:
- the value to substitute for
key
-
getValueWithMappings
Description copied from interface:MultipleMappingSubstitutionMapLike an ordinarySubstitutionMap, this returns a value to substitute for the specifiedkey. This value is available asMultipleMappingSubstitutionMap.ValueWithMappings.value.Additionally, it also returns any renaming mappings that should be associated with this substitution. These mappings are available as
MultipleMappingSubstitutionMap.ValueWithMappings.mappings.- Specified by:
getValueWithMappingsin interfaceMultipleMappingSubstitutionMap
-