|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFragmentSpec
Common interface for all fragment specifications.
Fragment specifications are able of extracting specific sections or subtrees from a DOM node tree, according to the logic defined at the specific implementation.
Fragment specs have multiple uses. One of them is allowing the
TemplateEngine
to select a fragment of a template
to be processed (once read and parsed), discarding the rest of the template
and reducing the processing effort to executing just the wanted parts. See
TemplateEngine.process(String, org.thymeleaf.context.IContext, IFragmentSpec)
for more info.
Method Summary | |
---|---|
List<Node> |
extractFragment(Configuration configuration,
List<Node> nodes)
Executes the fragment specification against a list of nodes representing a DOM tree (or a set of trees), returning the extracted nodes. |
Method Detail |
---|
List<Node> extractFragment(Configuration configuration, List<Node> nodes)
Executes the fragment specification against a list of nodes representing a DOM tree (or a set of trees), returning the extracted nodes.
configuration
- the configuration object.nodes
- the list of nodes on which to apply extraction.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |