Liferay 6.1.2-ce-ga3

com.liferay.portal.model
Class ModelHintsImpl

java.lang.Object
  extended by com.liferay.portal.model.ModelHintsImpl
All Implemented Interfaces:
ModelHints

public class ModelHintsImpl
extends Object
implements ModelHints


Constructor Summary
ModelHintsImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
 String buildCustomValidatorName(String validatorName)
           
 Map<String,String> getDefaultHints(String model)
           
 Element getFieldsEl(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)
           
 boolean isCustomValidator(String validatorName)
           
 boolean isLocalized(String model, String field)
           
 void read(ClassLoader classLoader, String source)
           
 void setSAXReader(SAXReader saxReader)
           
 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
 

Constructor Detail

ModelHintsImpl

public ModelHintsImpl()
Method Detail

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

getFieldsEl

public Element getFieldsEl(String model,
                           String field)
Specified by:
getFieldsEl 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

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

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

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,
                 String source)
          throws Exception
Specified by:
read in interface ModelHints
Throws:
Exception

setSAXReader

public void setSAXReader(SAXReader saxReader)

trimString

public String trimString(String model,
                         String field,
                         String value)
Specified by:
trimString in interface ModelHints

Liferay 6.1.2-ce-ga3