Package org.daisy.dotify.translator
Interface MarkerDictionary
-
- All Known Implementing Classes:
RegexMarkerDictionary
,SimpleMarkerDictionary
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface MarkerDictionary
Provides an interface for marker dictionaries. A marker dictionary resolves text markers based on the contents of the supplied string.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Marker
getMarkersFor(String str, TextAttribute attributes)
Gets the markers that apply to the specified string.
-
-
-
Method Detail
-
getMarkersFor
Marker getMarkersFor(String str, TextAttribute attributes) throws MarkerNotFoundException, MarkerNotCompatibleException
Gets the markers that apply to the specified string.- Parameters:
str
- the string to find markers forattributes
- the attributes for the string- Returns:
- returns markers that apply to the input
- Throws:
MarkerNotFoundException
- if no markers apply to the supplied stringMarkerNotCompatibleException
- if the markers cannot be applied to the attribute structure
-
-