class SpringInputGeneralFieldTagProcessor
        extends AbstractSpringFieldTagProcessor {


    // HTML4 input types
    public static final String TEXT_INPUT_TYPE_ATTR_VALUE = "text";
    public static final String HIDDEN_INPUT_TYPE_ATTR_VALUE = "hidden";
    // HTML5-specific input types
    public static final String DATETIME_INPUT_TYPE_ATTR_VALUE = "datetime";
    public static final String DATETIMELOCAL_INPUT_TYPE_ATTR_VALUE = "datetime-local";
    public static final String DATE_INPUT_TYPE_ATTR_VALUE = "date";
    public static final String MONTH_INPUT_TYPE_ATTR_VALUE = "month";
    public static final String TIME_INPUT_TYPE_ATTR_VALUE = "time";
    public static final String WEEK_INPUT_TYPE_ATTR_VALUE = "week";
    public static final String NUMBER_INPUT_TYPE_ATTR_VALUE = "number";
    public static final String RANGE_INPUT_TYPE_ATTR_VALUE = "range";
    public static final String EMAIL_INPUT_TYPE_ATTR_VALUE = "email";
    public static final String URL_INPUT_TYPE_ATTR_VALUE = "url";
    public static final String SEARCH_INPUT_TYPE_ATTR_VALUE = "search";
    public static final String TEL_INPUT_TYPE_ATTR_VALUE = "tel";
    public static final String COLOR_INPUT_TYPE_ATTR_VALUE = "color";


    private static final String[] ALL_TYPE_ATTR_VALUES =
            new String[] {
                    null,
                    TEXT_INPUT_TYPE_ATTR_VALUE,
                    HIDDEN_INPUT_TYPE_ATTR_VALUE,
                    DATETIME_INPUT_TYPE_ATTR_VALUE,
                    DATETIMELOCAL_INPUT_TYPE_ATTR_VALUE,
                    DATE_INPUT_TYPE_ATTR_VALUE,
                    MONTH_INPUT_TYPE_ATTR_VALUE,
                    TIME_INPUT_TYPE_ATTR_VALUE,
                    WEEK_INPUT_TYPE_ATTR_VALUE,
                    NUMBER_INPUT_TYPE_ATTR_VALUE,
                    RANGE_INPUT_TYPE_ATTR_VALUE,
                    EMAIL_INPUT_TYPE_ATTR_VALUE,
                    URL_INPUT_TYPE_ATTR_VALUE,
                    SEARCH_INPUT_TYPE_ATTR_VALUE,
                    TEL_INPUT_TYPE_ATTR_VALUE,
                    COLOR_INPUT_TYPE_ATTR_VALUE
            };




    public SpringInputGeneralFieldTagProcessor(final String dialectPrefix) {
        super(dialectPrefix, INPUT_TAG_NAME, TYPE_ATTR_NAME, ALL_TYPE_ATTR_VALUES, true);
    }




    @Override
    protected void doProcess(final ITemplateContext context,
                             final IProcessableElementTag tag,
                             final AttributeName attributeName, final String attributeValue,
                             final IThymeleafBindStatus bindStatus, final IElementTagStructureHandler structureHandler) {<FILL_FUNCTION_BODY>}



    private static boolean applyConversion(final String type) {
        return !(type != null && ("number".equalsIgnoreCase(type) || "range".equalsIgnoreCase(type)));
    }


}


        String name = bindStatus.getExpression();
        name = (name == null? "" : name);

        final String id = computeId(context, tag, name, false);

        // Thanks to precedence, this should have already been computed
        final String type = tag.getAttributeValue(this.typeAttributeDefinition.getAttributeName());

        // Apply the conversions (editor), depending on type (no conversion for "number" and "range"
        // Also, no escaping needed as attribute values are always escaped by default
        final String value =
                applyConversion(type)?
                        SpringValueFormatter.getDisplayString(bindStatus.getValue(), bindStatus.getEditor(), true) :
                        SpringValueFormatter.getDisplayString(bindStatus.getActualValue(), true);

        StandardProcessorUtils.setAttribute(structureHandler, this.idAttributeDefinition, ID_ATTR_NAME, id); // No need to escape: this comes from an existing 'id' or from a token
        StandardProcessorUtils.setAttribute(structureHandler, this.nameAttributeDefinition, NAME_ATTR_NAME, name); // No need to escape: this is a java-valid token

        StandardProcessorUtils.setAttribute(
                structureHandler, this.valueAttributeDefinition, VALUE_ATTR_NAME, RequestDataValueProcessorUtils.processFormFieldValue(context, name, value, type));

    
<methods>public void <init>(java.lang.String, java.lang.String, java.lang.String, java.lang.String[], boolean) ,public void setAttributeDefinitions(org.thymeleaf.engine.AttributeDefinitions) <variables>public static final java.lang.String ATTR_NAME,public static final int ATTR_PRECEDENCE,protected static final java.lang.String CHECKED_ATTR_NAME,protected static final java.lang.String DISABLED_ATTR_NAME,protected static final java.lang.String ID_ATTR_NAME,protected static final java.lang.String INPUT_TAG_NAME,protected static final java.lang.String MULTIPLE_ATTR_NAME,protected static final java.lang.String NAME_ATTR_NAME,protected static final java.lang.String OPTION_TAG_NAME,protected static final java.lang.String SELECTED_ATTR_NAME,protected static final java.lang.String SELECT_TAG_NAME,private static final org.thymeleaf.templatemode.TemplateMode TEMPLATE_MODE,protected static final java.lang.String TEXTAREA_TAG_NAME,protected static final java.lang.String TYPE_ATTR_NAME,protected static final java.lang.String VALUE_ATTR_NAME,protected org.thymeleaf.engine.AttributeDefinition checkedAttributeDefinition,protected org.thymeleaf.engine.AttributeDefinition disabledAttributeDefinition,private final non-sealed java.lang.String discriminatorAttrName,private final non-sealed java.lang.String[] discriminatorAttrValues,private org.thymeleaf.engine.AttributeDefinition discriminatorAttributeDefinition,protected org.thymeleaf.engine.AttributeDefinition idAttributeDefinition,protected org.thymeleaf.engine.AttributeDefinition multipleAttributeDefinition,protected org.thymeleaf.engine.AttributeDefinition nameAttributeDefinition,private final non-sealed boolean removeAttribute,protected org.thymeleaf.engine.AttributeDefinition selectedAttributeDefinition,protected org.thymeleaf.engine.AttributeDefinition typeAttributeDefinition,protected org.thymeleaf.engine.AttributeDefinition valueAttributeDefinition