Class DictionaryServiceImpl

java.lang.Object
org.opencastproject.dictionary.regexp.DictionaryServiceImpl
All Implemented Interfaces:
DictionaryService, org.osgi.service.cm.ManagedService

public class DictionaryServiceImpl extends Object implements DictionaryService, org.osgi.service.cm.ManagedService
This dictionary service implementation applies a pattern to an input string - as many times as it matches - and returns the matches, separated by a space character.
  • Field Details

  • Constructor Details

    • DictionaryServiceImpl

      public DictionaryServiceImpl()
  • Method Details

    • setPattern

      public void setPattern(String p)
    • getPattern

      public String getPattern()
    • updated

      public void updated(Dictionary<String,?> properties)
      Load configuration
      Specified by:
      updated in interface org.osgi.service.cm.ManagedService
    • cleanUpText

      public Textual cleanUpText(String text)
      Filter the text according to the rules defined by the dictionary implementation used. This implementation uses a regular expression to find matching terms.
      Specified by:
      cleanUpText in interface DictionaryService
      Returns:
      filtered text