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