Class CmsSearchFieldMapping

    • Field Summary

      Modifier and Type Field Description
      protected java.util.Locale m_locale
      The locale to extract content items in.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Two mappings are equal if the type and the parameter is equal.
      static java.util.Date getDefaultDateExpired()
      Returns the default expiration date, meaning the resource never expires.
      java.lang.String getDefaultValue()
      Returns the default value used for this field mapping in case no content is available.
      java.lang.String getParam()
      Returns the mapping parameter.
      java.lang.String getStringValue​(CmsObject cms, CmsResource res, I_CmsExtractionResult extractionResult, java.util.List<CmsProperty> properties, java.util.List<CmsProperty> propertiesSearched)
      Returns the String value extracted form the provided data according to the rules of this mapping type.
      CmsSearchFieldMappingType getType()
      Returns the mapping type.
      int hashCode()
      The hash code depends on the type and the parameter.
      void setDefaultValue​(java.lang.String defaultValue)
      Sets the default value for this field mapping in case no content is available.
      void setLocale​(java.util.Locale locale)
      Sets the locale, the mapping can examine when extracting the content.
      void setParam​(java.lang.String param)
      Sets the mapping parameter.
      void setType​(java.lang.String type)
      Sets the mapping type as a String.
      void setType​(CmsSearchFieldMappingType type)
      Sets the mapping type.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait