Class FragmentFinder
- java.lang.Object
-
- nz.net.ultraq.thymeleaf.layoutdialect.fragments.FragmentFinder
-
public class FragmentFinder extends Object
Searches for and returns layout dialect fragments within a given scope/element.- Author:
- zhanhb, Emanuel Rabina
-
-
Constructor Summary
Constructors Constructor Description FragmentFinder(String dialectPrefix)
Constructor, create a new fragment finder to search for fragments using the given prefix as the one configured for the layout dialect.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,List<IModel>>
findFragments(IModel model)
Find and return models for layout dialect fragments within the scope of the given model, without delving intolayout:include
orlayout:replace
elements, mapped by the name of each fragment.String
getDialectPrefix()
-
-
-
Constructor Detail
-
FragmentFinder
public FragmentFinder(String dialectPrefix)
Constructor, create a new fragment finder to search for fragments using the given prefix as the one configured for the layout dialect.- Parameters:
dialectPrefix
-
-
-
Method Detail
-
findFragments
public Map<String,List<IModel>> findFragments(IModel model)
Find and return models for layout dialect fragments within the scope of the given model, without delving intolayout:include
orlayout:replace
elements, mapped by the name of each fragment.- Parameters:
model
- Model whose events are to be searched.- Returns:
- Map of fragment names and their elements.
-
getDialectPrefix
public final String getDialectPrefix()
-
-