Class Interpolator
java.lang.Object
org.apache.sling.resourceresolver.impl.mapping.Interpolator
Replace place holders in a string
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe value for the replacement is returned by this provider -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charstatic final charstatic final charstatic final charstatic final charstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Objectreplace(String value, Interpolator.Provider provider) Replace all place holders
-
Field Details
-
END
public static final char END- See Also:
-
START
- See Also:
-
NAME_SEPARATOR
public static final char NAME_SEPARATOR- See Also:
-
DIRECTIVES_SEPARATOR
public static final char DIRECTIVES_SEPARATOR- See Also:
-
DIRECTIVES_VALUE_SEPARATOR
public static final char DIRECTIVES_VALUE_SEPARATOR- See Also:
-
ESCAPE
public static final char ESCAPE- See Also:
-
-
Constructor Details
-
Interpolator
public Interpolator()
-
-
Method Details
-
replace
Replace all place holders- Parameters:
value- Value with place holdersprovider- Provider for providing the values- Returns:
- Replaced object (or original value)
-