org.thymeleaf.standard.processor.attr
Class StandardIncludeFragmentAttrProcessor

Object
  extended by org.thymeleaf.processor.AbstractProcessor
      extended by org.thymeleaf.processor.attr.AbstractAttrProcessor
          extended by org.thymeleaf.processor.attr.AbstractFragmentHandlingAttrProcessor
              extended by org.thymeleaf.standard.processor.attr.AbstractStandardFragmentHandlingAttrProcessor
                  extended by org.thymeleaf.standard.processor.attr.StandardIncludeFragmentAttrProcessor
All Implemented Interfaces:
Comparable<IProcessor>, IProcessor

public class StandardIncludeFragmentAttrProcessor
extends AbstractStandardFragmentHandlingAttrProcessor

Specifies another template and the fragment within that other template to include at this point, eg:

<div th:include="templateName :: fragmentName"><div>

The above will find the template named templateName, and add the fragment named fragmentName as a child of this element.

Since:
2.0.9
Author:
Daniel Fernández

Field Summary
static String ATTR_NAME
           
static int ATTR_PRECEDENCE
           
static String FRAGMENT_ATTR_NAME
           
 
Constructor Summary
StandardIncludeFragmentAttrProcessor()
           
 
Method Summary
protected  String getFragmentSignatureUnprefixedAttributeName(Arguments arguments, Element element, String attributeName, String attributeValue)
           
 int getPrecedence()
           
protected  boolean getRemoveHostNode(Arguments arguments, Element element, String attributeName, String attributeValue)
           
 
Methods inherited from class org.thymeleaf.standard.processor.attr.AbstractStandardFragmentHandlingAttrProcessor
computeFragment
 
Methods inherited from class org.thymeleaf.processor.attr.AbstractFragmentHandlingAttrProcessor
processAttribute
 
Methods inherited from class org.thymeleaf.processor.attr.AbstractAttrProcessor
doProcess, getMatcher
 
Methods inherited from class org.thymeleaf.processor.AbstractProcessor
compareTo, getMessage, getMessageForProcessor, getMessageForTemplate, process
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_PRECEDENCE

public static final int ATTR_PRECEDENCE
See Also:
Constant Field Values

ATTR_NAME

public static final String ATTR_NAME
See Also:
Constant Field Values

FRAGMENT_ATTR_NAME

public static final String FRAGMENT_ATTR_NAME
See Also:
Constant Field Values
Constructor Detail

StandardIncludeFragmentAttrProcessor

public StandardIncludeFragmentAttrProcessor()
Method Detail

getPrecedence

public int getPrecedence()
Specified by:
getPrecedence in class AbstractProcessor

getFragmentSignatureUnprefixedAttributeName

protected String getFragmentSignatureUnprefixedAttributeName(Arguments arguments,
                                                             Element element,
                                                             String attributeName,
                                                             String attributeValue)
Specified by:
getFragmentSignatureUnprefixedAttributeName in class AbstractStandardFragmentHandlingAttrProcessor

getRemoveHostNode

protected boolean getRemoveHostNode(Arguments arguments,
                                    Element element,
                                    String attributeName,
                                    String attributeValue)
Specified by:
getRemoveHostNode in class AbstractFragmentHandlingAttrProcessor


Copyright © 2013 The THYMELEAF team. All Rights Reserved.