org.broadleafcommerce.core.web.processor
Class HeadProcessor

java.lang.Object
  extended by org.thymeleaf.processor.AbstractProcessor
      extended by org.thymeleaf.processor.element.AbstractElementProcessor
          extended by org.thymeleaf.processor.element.AbstractFragmentHandlingElementProcessor
              extended by org.broadleafcommerce.core.web.processor.HeadProcessor
All Implemented Interfaces:
Comparable<org.thymeleaf.processor.IProcessor>, org.thymeleaf.processor.IProcessor

public class HeadProcessor
extends org.thymeleaf.processor.element.AbstractFragmentHandlingElementProcessor

A Thymeleaf processor that will include the standard head element. It will also set the following variables for use by the head fragment.

Author:
apazzolini

Field Summary
static String FRAGMENT_ATTR_NAME
           
protected  String HEAD_PARTIAL_PATH
           
 
Constructor Summary
HeadProcessor()
          Sets the name of this processor to be used in Thymeleaf template
 
Method Summary
protected  org.thymeleaf.fragment.FragmentAndTarget getFragmentAndTarget(org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element, boolean substituteInclusionNode)
           
 int getPrecedence()
           
protected  boolean getSubstituteInclusionNode(org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element)
           
 
Methods inherited from class org.thymeleaf.processor.element.AbstractFragmentHandlingElementProcessor
doAdditionalElementProcessing, processElement
 
Methods inherited from class org.thymeleaf.processor.element.AbstractElementProcessor
doProcess, getMatcher
 
Methods inherited from class org.thymeleaf.processor.AbstractProcessor
compareTo, getMessage, getMessageForProcessor, getMessageForTemplate, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FRAGMENT_ATTR_NAME

public static final String FRAGMENT_ATTR_NAME
See Also:
Constant Field Values

HEAD_PARTIAL_PATH

protected String HEAD_PARTIAL_PATH
Constructor Detail

HeadProcessor

public HeadProcessor()
Sets the name of this processor to be used in Thymeleaf template

Method Detail

getPrecedence

public int getPrecedence()
Specified by:
getPrecedence in class org.thymeleaf.processor.AbstractProcessor

getSubstituteInclusionNode

protected boolean getSubstituteInclusionNode(org.thymeleaf.Arguments arguments,
                                             org.thymeleaf.dom.Element element)
Specified by:
getSubstituteInclusionNode in class org.thymeleaf.processor.element.AbstractFragmentHandlingElementProcessor

getFragmentAndTarget

protected org.thymeleaf.fragment.FragmentAndTarget getFragmentAndTarget(org.thymeleaf.Arguments arguments,
                                                                        org.thymeleaf.dom.Element element,
                                                                        boolean substituteInclusionNode)
Specified by:
getFragmentAndTarget in class org.thymeleaf.processor.element.AbstractFragmentHandlingElementProcessor


Copyright © 2013. All Rights Reserved.