Class DictionaryServiceImpl
java.lang.Object
org.opencastproject.dictionary.regexp.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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.opencastproject.metadata.mpeg7.TextualcleanUpText(String text) Filter the text according to the rules defined by the dictionary implementation used.voidsetPattern(String p) voidupdated(Dictionary<String, ?> properties) Load configuration
-
Field Details
-
PATTERN_CONFIG_KEY
- See Also:
-
-
Constructor Details
-
DictionaryServiceImpl
public DictionaryServiceImpl()
-
-
Method Details
-
setPattern
-
getPattern
-
updated
Load configuration- Specified by:
updatedin interfaceorg.osgi.service.cm.ManagedService
-
cleanUpText
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:
cleanUpTextin interfaceorg.opencastproject.dictionary.api.DictionaryService- Returns:
- filtered text
-