Class Interpolator
- java.lang.Object
-
- org.apache.sling.resourceresolver.impl.mapping.Interpolator
-
public class Interpolator extends Object
Replace place holders in a string
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Interpolator.Provider
The value for the replacement is returned by this provider
-
Field Summary
Fields Modifier and Type Field Description static char
DIRECTIVES_SEPARATOR
static char
DIRECTIVES_VALUE_SEPARATOR
static char
END
static char
ESCAPE
static char
NAME_SEPARATOR
static String
START
-
Constructor Summary
Constructors Constructor Description Interpolator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object
replace(String value, Interpolator.Provider provider)
Replace all place holders
-
-
-
Field Detail
-
END
public static final char END
- See Also:
- Constant Field Values
-
START
public static final String START
- See Also:
- Constant Field Values
-
NAME_SEPARATOR
public static final char NAME_SEPARATOR
- See Also:
- Constant Field Values
-
DIRECTIVES_SEPARATOR
public static final char DIRECTIVES_SEPARATOR
- See Also:
- Constant Field Values
-
DIRECTIVES_VALUE_SEPARATOR
public static final char DIRECTIVES_VALUE_SEPARATOR
- See Also:
- Constant Field Values
-
ESCAPE
public static final char ESCAPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
replace
public static Object replace(String value, Interpolator.Provider provider)
Replace all place holders- Parameters:
value
- Value with place holdersprovider
- Provider for providing the values- Returns:
- Replaced object (or original value)
-
-