Package com.adobe.cq.testing.client
Interface ExperienceFragmentsClient.XFTemplate
-
- All Known Implementing Classes:
ExperienceFragmentsClient.XF_TEMPLATE
- Enclosing class:
- ExperienceFragmentsClient
public static interface ExperienceFragmentsClient.XFTemplateInterface with methods that all predefined XF templates from the XF_TEMPLATE must implement
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends ExperienceFragmentsClient.VariantComponents>
TgetComponents(ExperienceFragmentsClient xfClient, String variantPath)AExperienceFragmentsClient.VariantComponentssubclass object that can be used to configure the components defined in that templatebooleanisSocialTemplate()This template creates a social variantStringpath()Path to the templateList<String>tags()Template tagsStringvariantType()Template's cq:xfVariantType value
-
-
-
Method Detail
-
path
String path()
Path to the template- Returns:
- the path to the template
-
getComponents
<T extends ExperienceFragmentsClient.VariantComponents> T getComponents(ExperienceFragmentsClient xfClient, String variantPath)
AExperienceFragmentsClient.VariantComponentssubclass object that can be used to configure the components defined in that template- Type Parameters:
T- The subclass ofExperienceFragmentsClient.VariantComponentsto which the result should be casted to- Parameters:
xfClient- aExperienceFragmentsClientinstancevariantPath- the path to the experience fragment variant defined with this template- Returns:
- A
ExperienceFragmentsClient.VariantComponentssubclass object that can be used to configure the components defined in that template
-
isSocialTemplate
boolean isSocialTemplate()
This template creates a social variant- Returns:
trueif the template creates a social variant
-
variantType
String variantType()
Template's cq:xfVariantType value- Returns:
- the variant type
-
-