public final class WholeFragmentSpec extends Object implements IFragmentSpec
Implementation of IFragmentSpec
that simply returns
whole templates, this is the same nodes used as input with
no modification, traversing or selection of any kind.
Objects of this class are thread-safe.
Modifier and Type | Field and Description |
---|---|
static WholeFragmentSpec |
INSTANCE
Singleton instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
String |
toString() |
public static final WholeFragmentSpec INSTANCE
Singleton instance.
This instance is thread-safe.
public List<Node> extractFragment(Configuration configuration, List<Node> nodes)
IFragmentSpec
Executes the fragment specification against a list of nodes representing a DOM tree (or a set of trees), returning the extracted nodes.
extractFragment
in interface IFragmentSpec
configuration
- the configuration object.nodes
- the list of nodes on which to apply extraction.Copyright © 2017 The THYMELEAF team. All rights reserved.