Class BaseModelHintsImpl

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
Author:
Brian Wing Shun Chan, Tomas Polesovsky, Raymond Augé
  • Constructor Details

    • BaseModelHintsImpl

      public BaseModelHintsImpl()
    • BaseModelHintsImpl

      public BaseModelHintsImpl(boolean productionMode)
  • Method Details

    • 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