Interface ResultField

    • Method Detail

      • getId

        String getId()
        Get the result field ID.
        Returns:
        the result field ID.
      • getValue

        Object getValue​(Content content,
                        Locale defaultLocale)
        Get the value represented by this field in the given result content.
        Parameters:
        content - the result content.
        defaultLocale - the default locale for localized value if the content's language is null
        Returns:
        the content field value (cast to the appropriate object).
      • getFullValue

        default Object getFullValue​(Content content,
                                    Locale defaultLocale)
        Get the value represented by this field in the given result content.
        Parameters:
        content - the result content.
        defaultLocale - the default locale for localized value if the content's language is null
        Returns:
        the content field value (cast to the appropriate object).