|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Objectorg.thymeleaf.standard.fragment.StandardDOMSelectorFragmentSpec
public final class StandardDOMSelectorFragmentSpec
Implementation of the IFragmentSpec interface that extracts fragments
of DOM trees using a DOMSelector object and applying a
StandardFragmentSignatureNodeReferenceChecker reference checker for looking for
th:fragment-based references.
The DOM selector instances used by these fragment specs are stored at the
expression cache (see ICacheManager.getExpressionCache()) using
as key DOMSelectorFragmentSpec.DOM_SELECTOR_EXPRESSION_PREFIX + selectorExpression.
Objects of this class are thread-safe.
| Constructor Summary | |
|---|---|
StandardDOMSelectorFragmentSpec(String selectorExpression)
Creates a new instance, specifying the expression to be used for a DOMSelector object to be created internally. |
|
| 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 |
getSelectorExpression()
|
String |
toString()
|
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StandardDOMSelectorFragmentSpec(String selectorExpression)
Creates a new instance, specifying the expression to be used for a
DOMSelector object to be created internally.
selectorExpression - the expression to be used for the DOM selector.| Method Detail |
|---|
public String getSelectorExpression()
public final List<Node> extractFragment(Configuration configuration,
List<Node> nodes)
IFragmentSpecExecutes the fragment specification against a list of nodes representing a DOM tree (or a set of trees), returning the extracted nodes.
extractFragment in interface IFragmentSpecconfiguration - 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 | |||||||||