Class HtmlDataType.Data

    • Constructor Detail

      • Data

        public Data​(String html)
    • Method Detail

      • charAt

        public char charAt​(int index)
        Specified by:
        charAt in interface CharSequence
      • getSearchContentAttachments

        public Collection<SearchContentAttachment> getSearchContentAttachments()
        Description copied from interface: ISearchable
        Returns the search content attachments to be used for indexing this object.

        Must never return null. May return an empty collection if no attachment is to be used for indexing this object.

        Specified by:
        getSearchContentAttachments in interface ISearchable
        Returns:
        the search content attachments.
      • getSearchContentFields

        public List<SearchContentField> getSearchContentFields()
        Description copied from interface: ISearchable
        Returns the search content fields to be used for indexing this object.

        Note that the actual search content fields used are decided by the ISourceSearchContentFiller implementation used in the source. It may or may not use the fields returned by this method. This method provides only the default recommended search fields for this data.

        Specified by:
        getSearchContentFields in interface ISearchable
        Returns:
        the search content fields. Never returns null. May return an empty collection if no field is to be used for indexing this object.
      • getDisplayString

        public String getDisplayString​(IRenderer renderer)
                                throws PortalException
        Description copied from interface: IRenderable
        Returns the string to be displayed for representing this instance, when a short display is required.
        Specified by:
        getDisplayString in interface IRenderable
        Parameters:
        renderer - the renderer object that will use the returned render data.
        Returns:
        the string to be used to friendly display this instance.
        Throws:
        PortalException