Class MacroExtractor

  • All Implemented Interfaces:
    Extractor2

    public class MacroExtractor
    extends Object
    implements Extractor2
    Extractor that indexes macro usages on a content entity object * @since 7.17
    • Constructor Detail

      • MacroExtractor

        public MacroExtractor​(XhtmlContent xhtmlContent,
                              com.atlassian.renderer.v2.macro.MacroManager macroManager)
    • Method Detail

      • extractText

        public StringBuilder extractText​(Object searchable)
        In the context of macro extraction this method is not needed. Therefore, it returns an empty string buffer.
        Specified by:
        extractText in interface Extractor2
        Parameters:
        searchable - a searchable object
        Returns:
        a buffer of text
      • extractFields

        public Collection<FieldDescriptor> extractFields​(Object searchable)
        Extract macros from the searchable object.
        Specified by:
        extractFields in interface Extractor2
        Parameters:
        searchable - a searchable object
        Returns:
        collection of fields extracted from the searchable object