com.liferay.portal.model
Class BaseModelHintsImpl
java.lang.Object
com.liferay.portal.model.BaseModelHintsImpl
- All Implemented Interfaces:
- ModelHints
- Direct Known Subclasses:
- DefaultModelHintsImpl
public abstract class BaseModelHintsImpl
- extends Object
- implements ModelHints
|
Method Summary |
void |
afterPropertiesSet()
|
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)
|
abstract ModelHintsCallback |
getModelHintsCallback()
|
abstract String[] |
getModelHintsConfigs()
|
List<String> |
getModels()
|
Tuple |
getSanitizeTuple(String model,
String field)
|
List<Tuple> |
getSanitizeTuples(String model)
|
abstract org.dom4j.io.SAXReader |
getSAXReader()
|
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)
|
void |
read(ClassLoader classLoader,
String source,
InputStream inputStream)
|
String |
trimString(String model,
String field,
String value)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseModelHintsImpl
public BaseModelHintsImpl()
afterPropertiesSet
public void afterPropertiesSet()
buildCustomValidatorName
public String buildCustomValidatorName(String validatorName)
- Specified by:
buildCustomValidatorName in interface ModelHints
getDefaultHints
public Map<String,String> getDefaultHints(String model)
- Specified by:
getDefaultHints in interface ModelHints
getFieldsElement
public Object getFieldsElement(String model,
String field)
- Specified by:
getFieldsElement in interface ModelHints
getHints
public Map<String,String> getHints(String model,
String field)
- Specified by:
getHints in interface ModelHints
getMaxLength
public int getMaxLength(String model,
String field)
- Specified by:
getMaxLength in interface ModelHints
getModelHintsCallback
public abstract ModelHintsCallback getModelHintsCallback()
getModelHintsConfigs
public abstract String[] getModelHintsConfigs()
getModels
public List<String> getModels()
- Specified by:
getModels in interface ModelHints
getSanitizeTuple
public Tuple getSanitizeTuple(String model,
String field)
- Specified by:
getSanitizeTuple in interface ModelHints
getSanitizeTuples
public List<Tuple> getSanitizeTuples(String model)
- Specified by:
getSanitizeTuples in interface ModelHints
getSAXReader
public abstract org.dom4j.io.SAXReader getSAXReader()
getType
public String getType(String model,
String field)
- Specified by:
getType in interface ModelHints
getValidators
public List<Tuple> getValidators(String model,
String field)
- Specified by:
getValidators in interface ModelHints
getValue
public String getValue(String model,
String field,
String name,
String defaultValue)
- Specified by:
getValue in interface ModelHints
hasField
public boolean hasField(String model,
String field)
- Specified by:
hasField in interface ModelHints
isCustomValidator
public boolean isCustomValidator(String validatorName)
- Specified by:
isCustomValidator in interface ModelHints
isLocalized
public boolean isLocalized(String model,
String field)
- Specified by:
isLocalized in interface ModelHints
read
public void read(ClassLoader classLoader,
InputStream inputStream)
throws Exception
- Specified by:
read in interface ModelHints
- Throws:
Exception
read
public void read(ClassLoader classLoader,
String source)
throws Exception
- Specified by:
read in interface ModelHints
- Throws:
Exception
read
public void read(ClassLoader classLoader,
String source,
InputStream inputStream)
throws Exception
- Throws:
Exception
trimString
public String trimString(String model,
String field,
String value)
- Specified by:
trimString in interface ModelHints