| Modifier and Type | Field and Description |
|---|---|
protected com.appslandia.common.formatters.FormatterProvider |
formatterProvider |
protected javax.validation.Validator |
validator |
| Constructor and Description |
|---|
ModelBinder() |
| Modifier and Type | Method and Description |
|---|---|
ModelState |
bindModel(javax.servlet.http.HttpServletRequest request,
Object model) |
ModelState |
bindModel(javax.servlet.http.HttpServletRequest request,
Object model,
Function<String,Boolean> excludePaths) |
static Class<?> |
getElementType(Type listGenericType) |
static String |
getErrorMessage(Resources resources,
javax.validation.ConstraintViolation<?> violation,
String fieldName) |
static String |
getErrorMessage(Resources resources,
String msgKey,
String fieldName) |
static String |
getLeafField(javax.validation.Path path,
StringBuilder propertyPath) |
static int |
getSubIndexProps(javax.servlet.http.HttpServletRequest request,
String propertyPath) |
static boolean |
hasSubProperties(javax.servlet.http.HttpServletRequest request,
String propertyPath) |
static Object |
parseArray(String[] paramValues,
Class<?> elementType,
com.appslandia.common.base.Out<String> parsedErrorMsg,
com.appslandia.common.formatters.Formatter formatter,
com.appslandia.common.base.FormatProvider formatProvider) |
static Object |
parseValue(String paramValue,
Class<?> targetType,
com.appslandia.common.base.Out<String> parsedErrorMsg,
com.appslandia.common.formatters.Formatter formatter,
com.appslandia.common.base.FormatProvider formatProvider) |
static long |
toBitMask(Object numberArray,
com.appslandia.common.base.Out<Boolean> result) |
void |
validateModel(Object model,
ModelState modelState,
ActionContext actionContext) |
@Inject protected com.appslandia.common.formatters.FormatterProvider formatterProvider
@Inject protected javax.validation.Validator validator
public ModelState bindModel(javax.servlet.http.HttpServletRequest request, Object model) throws Exception
Exceptionpublic ModelState bindModel(javax.servlet.http.HttpServletRequest request, Object model, Function<String,Boolean> excludePaths) throws Exception
Exceptionpublic void validateModel(Object model, ModelState modelState, ActionContext actionContext)
public static boolean hasSubProperties(javax.servlet.http.HttpServletRequest request,
String propertyPath)
public static int getSubIndexProps(javax.servlet.http.HttpServletRequest request,
String propertyPath)
public static String getLeafField(javax.validation.Path path, StringBuilder propertyPath)
public static String getErrorMessage(Resources resources, String msgKey, String fieldName)
public static String getErrorMessage(Resources resources, javax.validation.ConstraintViolation<?> violation, String fieldName)
public static Object parseArray(String[] paramValues, Class<?> elementType, com.appslandia.common.base.Out<String> parsedErrorMsg, com.appslandia.common.formatters.Formatter formatter, com.appslandia.common.base.FormatProvider formatProvider)
public static Object parseValue(String paramValue, Class<?> targetType, com.appslandia.common.base.Out<String> parsedErrorMsg, com.appslandia.common.formatters.Formatter formatter, com.appslandia.common.base.FormatProvider formatProvider)
public static long toBitMask(Object numberArray, com.appslandia.common.base.Out<Boolean> result)
Copyright © 2018. All rights reserved.