Class DictionaryServiceImpl

  • All Implemented Interfaces:
    org.opencastproject.dictionary.api.DictionaryService, org.osgi.service.cm.ManagedService

    public class DictionaryServiceImpl
    extends Object
    implements org.opencastproject.dictionary.api.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.
    • Constructor Detail

      • DictionaryServiceImpl

        public DictionaryServiceImpl()
    • Method Detail

      • 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 org.opencastproject.metadata.mpeg7.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 org.opencastproject.dictionary.api.DictionaryService
        Returns:
        filtered text