public final class FieldUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ALL_EXPRESSION |
static String |
ALL_FIELDS |
static String |
GLOBAL_EXPRESSION |
Modifier and Type | Method and Description |
---|---|
static List<DetailedError> |
detailedErrors(org.thymeleaf.Configuration configuration,
org.thymeleaf.context.IProcessingContext processingContext) |
static List<String> |
errors(org.thymeleaf.Arguments arguments,
String field) |
static List<String> |
errors(org.thymeleaf.Configuration configuration,
org.thymeleaf.context.IProcessingContext processingContext) |
static List<String> |
errors(org.thymeleaf.Configuration configuration,
org.thymeleaf.context.IProcessingContext processingContext,
String field) |
static org.springframework.web.servlet.support.BindStatus |
getBindStatus(org.thymeleaf.Arguments arguments,
String expression,
boolean allowAllFields)
Deprecated.
Deprecated in 2.1.0.
Use
getBindStatusFromParsedExpression(org.thymeleaf.Configuration, org.thymeleaf.context.IProcessingContext, boolean, String)
or getBindStatus(org.thymeleaf.Configuration, org.thymeleaf.context.IProcessingContext, String)
instead. Will be removed in 3.0. |
static org.springframework.web.servlet.support.BindStatus |
getBindStatus(org.thymeleaf.Configuration configuration,
org.thymeleaf.context.IProcessingContext processingContext,
boolean optional,
String expression) |
static org.springframework.web.servlet.support.BindStatus |
getBindStatus(org.thymeleaf.Configuration configuration,
org.thymeleaf.context.IProcessingContext processingContext,
String expression) |
static org.springframework.web.servlet.support.BindStatus |
getBindStatus(org.thymeleaf.Configuration configuration,
org.thymeleaf.context.IProcessingContext processingContext,
String expression,
boolean allowAllFields)
Deprecated.
Deprecated in 2.1.0.
Use
getBindStatusFromParsedExpression(org.thymeleaf.Configuration, org.thymeleaf.context.IProcessingContext, boolean, String)
or getBindStatus(org.thymeleaf.Configuration, org.thymeleaf.context.IProcessingContext, String)
instead. Will be removed in 3.0. |
static org.springframework.web.servlet.support.BindStatus |
getBindStatusFromParsedExpression(org.thymeleaf.Configuration configuration,
org.thymeleaf.context.IProcessingContext processingContext,
boolean optional,
boolean useSelectionAsRoot,
String expression) |
static org.springframework.web.servlet.support.BindStatus |
getBindStatusFromParsedExpression(org.thymeleaf.Configuration configuration,
org.thymeleaf.context.IProcessingContext processingContext,
boolean useSelectionAsRoot,
String expression) |
static List<String> |
globalErrors(org.thymeleaf.Configuration configuration,
org.thymeleaf.context.IProcessingContext processingContext) |
static boolean |
hasAnyErrors(org.thymeleaf.Arguments arguments) |
static boolean |
hasAnyErrors(org.thymeleaf.Configuration configuration,
org.thymeleaf.context.IProcessingContext processingContext) |
static boolean |
hasErrors(org.thymeleaf.Arguments arguments,
String field) |
static boolean |
hasErrors(org.thymeleaf.Configuration configuration,
org.thymeleaf.context.IProcessingContext processingContext,
String field) |
static boolean |
hasGlobalErrors(org.thymeleaf.Arguments arguments) |
static boolean |
hasGlobalErrors(org.thymeleaf.Configuration configuration,
org.thymeleaf.context.IProcessingContext processingContext) |
static String |
idFromName(String fieldName) |
public static final String ALL_FIELDS
public static final String GLOBAL_EXPRESSION
public static final String ALL_EXPRESSION
public static boolean hasErrors(org.thymeleaf.Arguments arguments, String field)
public static boolean hasAnyErrors(org.thymeleaf.Arguments arguments)
arguments
- argumentspublic static boolean hasGlobalErrors(org.thymeleaf.Arguments arguments)
arguments
- argumentspublic static boolean hasErrors(org.thymeleaf.Configuration configuration, org.thymeleaf.context.IProcessingContext processingContext, String field)
public static boolean hasAnyErrors(org.thymeleaf.Configuration configuration, org.thymeleaf.context.IProcessingContext processingContext)
public static boolean hasGlobalErrors(org.thymeleaf.Configuration configuration, org.thymeleaf.context.IProcessingContext processingContext)
public static List<String> errors(org.thymeleaf.Configuration configuration, org.thymeleaf.context.IProcessingContext processingContext, String field)
public static List<String> errors(org.thymeleaf.Configuration configuration, org.thymeleaf.context.IProcessingContext processingContext)
public static List<String> globalErrors(org.thymeleaf.Configuration configuration, org.thymeleaf.context.IProcessingContext processingContext)
public static List<DetailedError> detailedErrors(org.thymeleaf.Configuration configuration, org.thymeleaf.context.IProcessingContext processingContext)
configuration
- configurationprocessingContext
- processingContext@Deprecated public static org.springframework.web.servlet.support.BindStatus getBindStatus(org.thymeleaf.Arguments arguments, String expression, boolean allowAllFields)
getBindStatusFromParsedExpression(org.thymeleaf.Configuration, org.thymeleaf.context.IProcessingContext, boolean, String)
or getBindStatus(org.thymeleaf.Configuration, org.thymeleaf.context.IProcessingContext, String)
instead. Will be removed in 3.0.arguments
- argumentsexpression
- expressionallowAllFields
- allowAllFields@Deprecated public static org.springframework.web.servlet.support.BindStatus getBindStatus(org.thymeleaf.Configuration configuration, org.thymeleaf.context.IProcessingContext processingContext, String expression, boolean allowAllFields)
getBindStatusFromParsedExpression(org.thymeleaf.Configuration, org.thymeleaf.context.IProcessingContext, boolean, String)
or getBindStatus(org.thymeleaf.Configuration, org.thymeleaf.context.IProcessingContext, String)
instead. Will be removed in 3.0.configuration
- configurationprocessingContext
- processingContextexpression
- expressionallowAllFields
- allowAllFieldspublic static org.springframework.web.servlet.support.BindStatus getBindStatus(org.thymeleaf.Configuration configuration, org.thymeleaf.context.IProcessingContext processingContext, String expression)
public static org.springframework.web.servlet.support.BindStatus getBindStatus(org.thymeleaf.Configuration configuration, org.thymeleaf.context.IProcessingContext processingContext, boolean optional, String expression)
configuration
- configurationprocessingContext
- processingContextoptional
- optionalexpression
- expressionpublic static org.springframework.web.servlet.support.BindStatus getBindStatusFromParsedExpression(org.thymeleaf.Configuration configuration, org.thymeleaf.context.IProcessingContext processingContext, boolean useSelectionAsRoot, String expression)
configuration
- configurationprocessingContext
- processingContextuseSelectionAsRoot
- useSelectionAsRootexpression
- expressionpublic static org.springframework.web.servlet.support.BindStatus getBindStatusFromParsedExpression(org.thymeleaf.Configuration configuration, org.thymeleaf.context.IProcessingContext processingContext, boolean optional, boolean useSelectionAsRoot, String expression)
configuration
- configurationprocessingContext
- processingContextoptional
- optionaluseSelectionAsRoot
- useSelectionAsRootexpression
- expressionCopyright © 2016 The THYMELEAF team. All rights reserved.