Class ModelResolveUtility
- java.lang.Object
-
- org.apache.sling.provisioning.model.ModelResolveUtility
-
public class ModelResolveUtility extends java.lang.Object
Helper methods for resolving variables and artifact versions in models.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
replace(Feature feature, java.lang.String v, ModelUtility.VariableResolver resolver)
Replace properties in the string.
-
-
-
Method Detail
-
replace
public static java.lang.String replace(Feature feature, java.lang.String v, ModelUtility.VariableResolver resolver)
Replace properties in the string.- Parameters:
feature
- The featurev
- The variable nameresolver
- Optional resolver- Returns:
- The value of the variable
- Throws:
java.lang.IllegalArgumentException
- If variable can't be found.
-
-