Liferay 6.1.2-ce-ga3

com.liferay.portal.model
Class ModelHintsUtil

java.lang.Object
  extended by com.liferay.portal.model.ModelHintsUtil

public class ModelHintsUtil
extends Object


Constructor Summary
ModelHintsUtil()
           
 
Method Summary
static String buildCustomValidatorName(String validatorName)
           
static Map<String,String> getDefaultHints(String model)
           
static Element getFieldsEl(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 boolean isCustomValidator(String validatorName)
           
static boolean isLocalized(String model, String field)
           
static void read(ClassLoader classLoader, String source)
           
 void setModelHints(ModelHints modelHints)
           
static 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

ModelHintsUtil

public ModelHintsUtil()
Method Detail

buildCustomValidatorName

public static String buildCustomValidatorName(String validatorName)

getDefaultHints

public static Map<String,String> getDefaultHints(String model)

getFieldsEl

public static Element getFieldsEl(String model,
                                  String field)

getHints

public static Map<String,String> getHints(String model,
                                          String field)

getMaxLength

public static int getMaxLength(String model,
                               String field)

getModelHints

public static ModelHints getModelHints()

getModels

public static List<String> getModels()

getSanitizeTuple

public static Tuple getSanitizeTuple(String model,
                                     String field)

getSanitizeTuples

public static List<Tuple> getSanitizeTuples(String model)

getType

public static String getType(String model,
                             String field)

getValidators

public static List<Tuple> getValidators(String model,
                                        String field)

isCustomValidator

public static boolean isCustomValidator(String validatorName)

isLocalized

public static boolean isLocalized(String model,
                                  String field)

read

public static void read(ClassLoader classLoader,
                        String source)
                 throws Exception
Throws:
Exception

trimString

public static String trimString(String model,
                                String field,
                                String value)

setModelHints

public void setModelHints(ModelHints modelHints)

Liferay 6.1.2-ce-ga3