Package org.thymeleaf.dom

Examples of org.thymeleaf.dom.DOMSelector$INodeReferenceChecker




    public final List<Node> extractFragment(final Configuration configuration, final List<Node> nodes) {

        DOMSelector selector = null;
        ICache<String,Object> expressionCache = null;
       
        final ICacheManager cacheManager = configuration.getCacheManager();
        if (cacheManager != null) {
            expressionCache = cacheManager.getExpressionCache();
            if (expressionCache != null) {
                selector = (DOMSelector) expressionCache.get(this.domSelectorCacheKey);
            }
        }
       
        if (selector == null) {
            selector = new DOMSelector(this.selectorExpression);
            if (expressionCache != null) {
                expressionCache.put(this.domSelectorCacheKey, selector);
            }
        }
       
        final List<Node> extraction = selector.select(nodes, this.referenceChecker);
        if (extraction == null || extraction.size() == 0) {
            return null;
        }
           
       
View Full Code Here




    public final List<Node> extractFragment(final Configuration configuration, final List<Node> nodes) {

        DOMSelector selector = null;
        ICache<String,Object> expressionCache = null;
       
        final ICacheManager cacheManager = configuration.getCacheManager();
        if (cacheManager != null) {
            expressionCache = cacheManager.getExpressionCache();
            if (expressionCache != null) {
                selector = (DOMSelector) expressionCache.get(this.domSelectorCacheKey);
            }
        }
       
        if (selector == null) {
            selector = new DOMSelector(this.selectorExpression);
            if (expressionCache != null) {
                expressionCache.put(this.domSelectorCacheKey, selector);
            }
        }

        final DOMSelector.INodeReferenceChecker referenceChecker = getReferenceChecker(configuration);

        final List<Node> extraction = selector.select(nodes, referenceChecker);
        if (extraction == null || extraction.size() == 0) {
            return null;
        }
           
       
View Full Code Here

TOP

Related Classes of org.thymeleaf.dom.DOMSelector$INodeReferenceChecker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.