Interface ContentReferenceParser<T extends ContentReference>

All Known Implementing Classes:
AbstractContentReferenceParser, EntityUriContentReferenceParser, WidgetConfigContentReferenceParser, WidgetTemplateContentReferenceParser

public interface ContentReferenceParser<T extends ContentReference>
Searches references in a html string. Implement this interface to provide your reference type and contribute the service point to nice2.optional.cms.ContentReferenceParsers.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the class of the references this parser extracts.
    parse(String html)
    Find the references in the given html string.
  • Method Details

    • getReferenceClass

      Class<T> getReferenceClass()
      Get the class of the references this parser extracts.
      Returns:
      the class of the references.
    • parse

      Set<T> parse(String html)
      Find the references in the given html string.
      Parameters:
      html - The html string to search.
      Returns:
      the found references.