org.thymeleaf.spring4.processor.attr
Class AbstractSpringFieldAttrProcessor

Object
  extended by org.thymeleaf.processor.AbstractProcessor
      extended by org.thymeleaf.processor.attr.AbstractAttrProcessor
          extended by org.thymeleaf.spring4.processor.attr.AbstractSpringFieldAttrProcessor
All Implemented Interfaces:
Comparable<org.thymeleaf.processor.IProcessor>, org.thymeleaf.processor.IProcessor
Direct Known Subclasses:
SpringInputCheckboxFieldAttrProcessor, SpringInputFileFieldAttrProcessor, SpringInputGeneralFieldAttrProcessor, SpringInputPasswordFieldAttrProcessor, SpringInputRadioFieldAttrProcessor, SpringOptionFieldAttrProcessor, SpringSelectFieldAttrProcessor, SpringTextareaFieldAttrProcessor

public abstract class AbstractSpringFieldAttrProcessor
extends org.thymeleaf.processor.attr.AbstractAttrProcessor

Since:
1.0
Author:
Daniel Fernández

Field Summary
static String ATTR_NAME
           
static int ATTR_PRECEDENCE
           
protected static String INPUT_TAG_NAME
           
protected static String INPUT_TYPE_ATTR_NAME
           
protected static String OPTION_TAG_NAME
           
protected static String SELECT_TAG_NAME
           
protected static String TEXTAREA_TAG_NAME
           
 
Constructor Summary
AbstractSpringFieldAttrProcessor(String attributeName, String hostTagName)
           
AbstractSpringFieldAttrProcessor(String attributeName, String hostTagName, Map<String,String> hostTagAttributes)
           
AbstractSpringFieldAttrProcessor(String attributeName, String hostTagName, String hostFilterAttributeName, String hostFilterAttributeValue)
           
 
Method Summary
protected  String computeId(org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element, String name, boolean sequence)
           
protected abstract  org.thymeleaf.processor.ProcessorResult doProcess(org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element, String attributeName, String attributeValue, org.springframework.web.servlet.support.BindStatus bindStatus, Map<String,Object> localVariables)
           
 int getPrecedence()
           
 org.thymeleaf.processor.ProcessorResult processAttribute(org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element, String attributeName)
           
 
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

INPUT_TAG_NAME

protected static final String INPUT_TAG_NAME
See Also:
Constant Field Values

SELECT_TAG_NAME

protected static final String SELECT_TAG_NAME
See Also:
Constant Field Values

OPTION_TAG_NAME

protected static final String OPTION_TAG_NAME
See Also:
Constant Field Values

TEXTAREA_TAG_NAME

protected static final String TEXTAREA_TAG_NAME
See Also:
Constant Field Values

INPUT_TYPE_ATTR_NAME

protected static final String INPUT_TYPE_ATTR_NAME
See Also:
Constant Field Values
Constructor Detail

AbstractSpringFieldAttrProcessor

public AbstractSpringFieldAttrProcessor(String attributeName,
                                        String hostTagName)

AbstractSpringFieldAttrProcessor

public AbstractSpringFieldAttrProcessor(String attributeName,
                                        String hostTagName,
                                        String hostFilterAttributeName,
                                        String hostFilterAttributeValue)

AbstractSpringFieldAttrProcessor

public AbstractSpringFieldAttrProcessor(String attributeName,
                                        String hostTagName,
                                        Map<String,String> hostTagAttributes)
Method Detail

getPrecedence

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

processAttribute

public final org.thymeleaf.processor.ProcessorResult processAttribute(org.thymeleaf.Arguments arguments,
                                                                      org.thymeleaf.dom.Element element,
                                                                      String attributeName)
Specified by:
processAttribute in class org.thymeleaf.processor.attr.AbstractAttrProcessor

doProcess

protected abstract org.thymeleaf.processor.ProcessorResult doProcess(org.thymeleaf.Arguments arguments,
                                                                     org.thymeleaf.dom.Element element,
                                                                     String attributeName,
                                                                     String attributeValue,
                                                                     org.springframework.web.servlet.support.BindStatus bindStatus,
                                                                     Map<String,Object> localVariables)

computeId

protected String computeId(org.thymeleaf.Arguments arguments,
                           org.thymeleaf.dom.Element element,
                           String name,
                           boolean sequence)


Copyright © 2013 The THYMELEAF team. All Rights Reserved.