public interface FragmentTemplate extends Adaptable
Implementations of this interface allow to access the fragment template in a standardized way, independently of the actual content structure.
Each content fragment carries a copy of the template it was created from, hence it is independent from the original template (and from changes that happened there after the fragment was created).
Modifier and Type | Method and Description |
---|---|
ContentFragment |
createFragment(Resource parent,
java.lang.String name,
java.lang.String title)
Creates a fragment from this fragment template.
|
java.lang.String |
getDescription()
Gets a description for the template (if available).
|
java.util.Iterator<ElementTemplate> |
getElements()
Gets an iterator on the templates for predefined elements.
|
ElementTemplate |
getForElement(ContentElement element)
Gets the template for the specified content element.
|
VariationTemplate |
getForVariation(ContentVariation variation)
Gets the template for the specified global content variation.
|
java.util.Iterator<java.lang.String> |
getInitialAssociatedContent()
Gets an iterator on the initial references that form the associated content of the
fragment.
|
MetaDataDefinition |
getMetaDataDefinition()
Gets the meta data definition.
|
java.lang.String |
getThumbnailPath()
Gets the repository path to the template's thumbnail.
|
java.lang.String |
getTitle()
Gets the title of the template.
|
java.util.Iterator<VariationTemplate> |
getVariations()
Gets an iterator on the templates of predefined global variations.
|
java.lang.String getTitle()
java.lang.String getDescription()
java.lang.String getThumbnailPath()
ContentFragment createFragment(Resource parent, java.lang.String name, java.lang.String title) throws ContentFragmentException
parent
- The parent of the fragment to be createdname
- The name of the fragment to be createdtitle
- The title of the fragment to be createdContentFragmentException
- if the fragment could not be createdjava.util.Iterator<ElementTemplate> getElements()
ElementTemplate getForElement(ContentElement element)
element
- The content elementnull
if there is no template for the
specified elementjava.util.Iterator<VariationTemplate> getVariations()
VariationTemplate getForVariation(ContentVariation variation)
variation
- The content variationnull
if there is no template for the
specified variationjava.util.Iterator<java.lang.String> getInitialAssociatedContent()
MetaDataDefinition getMetaDataDefinition()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"