public class ModelHintsUtil
extends Object
Constructor and Description |
---|
ModelHintsUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
buildCustomValidatorName(String validatorName) |
static Map<String,String> |
getDefaultHints(String model) |
static Object |
getFieldsElement(String model,
String field) |
static Map<String,String> |
getHints(String model,
String field) |
static int |
getMaxLength(String model,
String field) |
static ModelHints |
getModelHints() |
static List<String> |
getModels() |
static Tuple |
getSanitizeTuple(String model,
String field) |
static List<Tuple> |
getSanitizeTuples(String model) |
static String |
getType(String model,
String field) |
static List<Tuple> |
getValidators(String model,
String field) |
static String |
getValue(String model,
String field,
String name,
String defaultValue) |
static boolean |
hasField(String model,
String field) |
static boolean |
isCustomValidator(String validatorName) |
static boolean |
isLocalized(String model,
String field) |
static void |
read(ClassLoader classLoader,
InputStream inputStream) |
static void |
read(ClassLoader classLoader,
String source) |
void |
setModelHints(ModelHints modelHints) |
static String |
trimString(String model,
String field,
String value) |
public static String buildCustomValidatorName(String validatorName)
public static Map<String,String> getDefaultHints(String model)
public static Object getFieldsElement(String model, String field)
public static Map<String,String> getHints(String model, String field)
public static int getMaxLength(String model, String field)
public static ModelHints getModelHints()
public static List<String> getModels()
public static Tuple getSanitizeTuple(String model, String field)
public static List<Tuple> getSanitizeTuples(String model)
public static String getType(String model, String field)
public static List<Tuple> getValidators(String model, String field)
public static String getValue(String model, String field, String name, String defaultValue)
public static boolean hasField(String model, String field)
public static boolean isCustomValidator(String validatorName)
public static boolean isLocalized(String model, String field)
public static void read(ClassLoader classLoader, InputStream inputStream) throws Exception
Exception
public static void read(ClassLoader classLoader, String source) throws Exception
Exception
public static String trimString(String model, String field, String value)
public void setModelHints(ModelHints modelHints)