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