org.thymeleaf.fragment
Class WholeFragmentSpec

Object
  extended by org.thymeleaf.fragment.WholeFragmentSpec
All Implemented Interfaces:
IFragmentSpec

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.

Since:
2.0.9
Author:
Daniel Fernández

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

INSTANCE

public static final WholeFragmentSpec INSTANCE

Singleton instance.

This instance is thread-safe.

Constructor Detail

WholeFragmentSpec

public WholeFragmentSpec()

Creates a new instance. In most cases INSTANCE can be used instead of creating new objects of this class.

Method Detail

extractFragment

public final List<Node> extractFragment(Configuration configuration,
                                        List<Node> nodes)
Description copied from interface: IFragmentSpec

Executes the fragment specification against a list of nodes representing a DOM tree (or a set of trees), returning the extracted nodes.

Specified by:
extractFragment in interface IFragmentSpec
Parameters:
configuration - the configuration object.
nodes - the list of nodes on which to apply extraction.
Returns:
the extracted nodes.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 The THYMELEAF team. All Rights Reserved.