org.thymeleaf.standard.processor.attr
Class StandardReplaceFragmentAttrProcessor

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.StandardReplaceFragmentAttrProcessor
All Implemented Interfaces:
Comparable<IProcessor>, IProcessor

public class StandardReplaceFragmentAttrProcessor
extends AbstractStandardFragmentHandlingAttrProcessor

Similar to th:include, but instead of adding the specified template fragment as a child of this element, it will replace this element with the template fragment.

Since:
2.1.0
Author:
Daniel Fernández

Field Summary
static String ATTR_NAME
           
static int ATTR_PRECEDENCE
           
static String FRAGMENT_ATTR_NAME
           
 
Constructor Summary
StandardReplaceFragmentAttrProcessor()
           
 
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

StandardReplaceFragmentAttrProcessor

public StandardReplaceFragmentAttrProcessor()
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.