Examples of DOMSelector

  • Attribute/index modifiers:
  • Direct selectors:
  • Specific features:
  • Objects of this class are thread-safe.

    @author Daniel Fernández @since 2.0.0

    Examples of org.thymeleaf.dom.DOMSelector



        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

    Examples of org.thymeleaf.dom.DOMSelector



        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
    Copyright © 2018 www.massapi.com. 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.