Package com.google.common.css
Class SplittingSubstitutionMap
java.lang.Object
com.google.common.css.SplittingSubstitutionMap
- All Implemented Interfaces:
MultipleMappingSubstitutionMap,SubstitutionMap,SubstitutionMap.Initializable
public class SplittingSubstitutionMap
extends Object
implements MultipleMappingSubstitutionMap, SubstitutionMap.Initializable
The CSS class substitution map which splits CSS class names on the "-" (dash)
character and processes them separately using 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
-
SplittingSubstitutionMap
-
-
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
-