|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.thymeleaf.fragment.WholeFragmentSpec
public final class WholeFragmentSpec
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.
Field Summary | |
---|---|
static WholeFragmentSpec |
INSTANCE
Singleton instance. |
Constructor Summary | |
---|---|
WholeFragmentSpec()
Creates a new instance. |
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. |
String |
toString()
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final WholeFragmentSpec INSTANCE
Singleton instance.
This instance is thread-safe.
Constructor Detail |
---|
public WholeFragmentSpec()
Creates a new instance. In most cases INSTANCE
can be used
instead of creating new objects of this class.
Method Detail |
---|
public final 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.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |